Skip to content
Snippets Groups Projects
Commit 99ff5f86 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch '23.0.9-SV1Flip_v2' into 'master'

Fix in SecVtxFinder name and adaption of BTagVrtSec to Flip

See merge request atlas/athena!58695
parents 227b84b5 9637a5af
No related branches found
No related tags found
No related merge requests found
......@@ -505,7 +505,7 @@ namespace InDet{
errorMatrix, Chi2PerTrk, TrkAtVrt, Chi2,
*state, true);
if(sc.isFailure()) continue;
if(projSV_PV(tmpVertex,primVrt,jetDir)<0.) continue; // Drop negative direction
if((projSV_PV(tmpVertex,primVrt,jetDir)<0. &&(!m_getNegativeTag)) || (projSV_PV(tmpVertex,primVrt,jetDir)>0. &&(m_getNegativeTag))) continue; // Drop negative direction
if(m_useTrackClassificator) Chi2 += trkRank[it]; // Remove preferably non-HF-tracks
......@@ -713,7 +713,7 @@ namespace InDet{
tmpVrt.fitVertex.y()-primVrt.y(),
tmpVrt.fitVertex.z()-primVrt.z());
tmpVrt.dRSVPV = jetDir.DeltaR(TLorentzVector(SVmPV, 1.)); //DeltaR SV-PV vs jet
if(tmpVrt.dRSVPV > m_coneForTag ) continue; // SV is outside of the jet cone
if( tmpVrt.dRSVPV > m_coneForTag && (!m_getNegativeTag) ) continue; // SV is outside of the jet cone
double jetVrtDir = SVmPV.Dot(jetDir.Vect());
double vPos = SVmPV.Dot(tmpVrt.momentum.Vect())/tmpVrt.momentum.Rho();
......
......@@ -44,6 +44,8 @@ def SV1TagCfg( flags, name = 'SV1Tag', scheme = '', useBTagFlagsDefaults = True,
'UseCHypo' : True,
'LikelihoodTool' : likelihood
}
if 'Flip' in name:
defaults['SecVxFinderName'] = 'SV1Flip'
for option in defaults:
options.setdefault(option, defaults[option])
acc.setPrivateTools(CompFactory.Analysis.SVTag(**options))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment