ATLAS Offline Software
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkMCTruth
src
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
10
#include "
DerivationFrameworkMCTruth/TruthCollectionMakerTau.h
"
11
12
// Tool header file
13
// for TruthTausEvent
14
#include "
TauAnalysisTools/BuildTruthTaus.h
"
15
16
// Athena initialize and finalize
17
StatusCode
DerivationFramework::TruthCollectionMakerTau::initialize
()
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
27
StatusCode
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
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition
AthMsgStreamMacros.h:28
BuildTruthTaus.h
TruthCollectionMakerTau.h
DerivationFramework::TruthCollectionMakerTau::initialize
virtual StatusCode initialize() override final
Definition
TruthCollectionMakerTau.cxx:17
DerivationFramework::TruthCollectionMakerTau::m_buildTruthTaus
PublicToolHandle< TauAnalysisTools::IBuildTruthTaus > m_buildTruthTaus
Definition
TruthCollectionMakerTau.h:29
DerivationFramework::TruthCollectionMakerTau::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition
TruthCollectionMakerTau.cxx:27
Generated on
for ATLAS Offline Software by
1.14.0