ATLAS Offline Software
Loading...
Searching...
No Matches
TruthCollectionMakerTau.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6// TruthCollectionMakerTau.cxx
7// Create truth tau collection decorated with tau decay specific variables
8
9// Class header file
11
12// Tool header file
13// for TruthTausEvent
15
16// Athena initialize and finalize
18{
19 ATH_MSG_VERBOSE("initialize() ...");
20
21 ATH_CHECK( m_buildTruthTaus.retrieve() );
22
23 return StatusCode::SUCCESS;
24}
25
26// Selection and collection creation
27StatusCode DerivationFramework::TruthCollectionMakerTau::addBranches(const EventContext& ctx) const
28{
29 ATH_MSG_VERBOSE("addBranches() ...");
30
31 // One call to build the truth tau collection
32 TauAnalysisTools::BuildTruthTaus::TruthTausEvent truthTausEvent;
33 ATH_CHECK( m_buildTruthTaus->retrieveTruthTaus( truthTausEvent, ctx ) );
34
35 return StatusCode::SUCCESS;
36}
37
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
PublicToolHandle< TauAnalysisTools::IBuildTruthTaus > m_buildTruthTaus
virtual StatusCode addBranches(const EventContext &ctx) const override final