Skip to content
Snippets Groups Projects
Commit 36bb4a71 authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'maparo-main-IDTPM-dev-v1' into 'main'

IDTPM: Fix technical efficiencies

See merge request atlas/athena!77813
parents e6f7b9c2 552498e2
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,12 @@ def TruthHitDecoratorAlgCfg( flags, name="InDetPhysValTruthDecoratorAlg", **kwar
kwargs.setdefault( "PixelClusterContainerName", "ITkPixelClusters" )
kwargs.setdefault( "SCTClusterContainerName", "ITkStripClusters" )
kwargs.setdefault( 'TruthParticleIndexDecoration', '' ) # FIXME - tech effs
# 'origTruthIndex' if flags.PhysVal.IDPVM.doTechnicalEfficiency else '' )
doTechEff = False
for trkAnaName in flags.PhysVal.IDTPM.trkAnaNames:
if getattr( flags.PhysVal.IDTPM, trkAnaName+".plotTechnicalEfficiencies" ):
doTechEff = True
break
kwargs.setdefault( 'TruthParticleIndexDecoration', 'origTruthIndex' if doTechEff else '' )
## To be eventually migrated to IDTPM if need be
acc.addEventAlgo( CompFactory.InDetPhysValTruthDecoratorAlg( name, **kwargs ) )
......@@ -141,4 +145,4 @@ def OfflineObjectDecoratorAlgCfg( flags, name="OfflineObjectDecoratorAlg", **kwa
def TruthDecoratorAlgCfg( flags, name="TruthDecoratorAlg", **kwargs ):
acc = ComponentAccumulator()
acc.addEventAlgo( CompFactory.IDTPM.TruthDecoratorAlg( name, **kwargs ) )
return acc
\ No newline at end of file
return acc
......@@ -73,7 +73,7 @@ StatusCode IDTPM::TrackAnalysisPlotsMgr::initialize()
/// Efficiency plots
if( m_trkAnaDefSvc->plotEfficiencies() ) {
m_plots_eff_vsTest = std::make_unique< EfficiencyPlots >(
this, "Tracks/Efficiencies", m_anaTag, m_trkAnaDefSvc->testTag() );
this, "Tracks/Efficiencies/Purities", m_anaTag, m_trkAnaDefSvc->testTag() );
m_plots_eff_vsRef = std::make_unique< EfficiencyPlots >(
this, "Tracks/Efficiencies", m_anaTag, m_trkAnaDefSvc->referenceTag(),
true, m_trkAnaDefSvc->hasFullPileupTruth() );
......@@ -86,7 +86,7 @@ StatusCode IDTPM::TrackAnalysisPlotsMgr::initialize()
/// Technical efficiency plots
if( m_trkAnaDefSvc->plotTechnicalEfficiencies()) {
m_plots_tech_eff_vsTest = std::make_unique< EfficiencyPlots >(
this, "Tracks/Efficiencies/Technical", m_anaTag, m_trkAnaDefSvc->testTag());
this, "Tracks/Efficiencies/Technical/Purities", m_anaTag, m_trkAnaDefSvc->testTag());
m_plots_tech_eff_vsRef = std::make_unique< EfficiencyPlots >(
this, "Tracks/Efficiencies/Technical", m_anaTag, m_trkAnaDefSvc->referenceTag(),
true, m_trkAnaDefSvc->hasFullPileupTruth() );
......
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