Skip to content
Snippets Groups Projects
Commit d95b9a00 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia Committed by Atlas Nightlybuild
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

(cherry picked from commit 99ff5f86)

839cb40e Changing SecVtxFinder name to 'SV1Flip' in case of SV1Flip
c1d7648e Adapt BTagVrtSec for usage of Flip tagger
21e71348 Removing another cut in the SV Fitter which rejects SV1Flip vertices
163382c8 Removing another cut in the SV Fitter which rejects SV1Flip vertices
f13c9d15 Revert previous change
parent a4bd5735
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