ATLAS Offline Software
PhysicsAnalysis
DerivationFramework
DerivationFrameworkMCTruth
src
TruthCollectionMakerTau.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 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
#include "
TauAnalysisTools/IBuildTruthTaus.h
"
14
// for TruthTausEvent
15
#include "
TauAnalysisTools/BuildTruthTaus.h
"
16
17
// Constructor
18
DerivationFramework::TruthCollectionMakerTau::TruthCollectionMakerTau
(
const
std::string&
t
,
19
const
std::string&
n
,
20
const
IInterface*
p
)
21
: base_class(
t
,
n
,
p
)
22
, m_buildTruthTaus(
"TauAnalysisTools::BuildTruthTaus/BuildTruthTaus"
)
23
{
24
declareProperty(
"BuildTruthTaus"
,
m_buildTruthTaus
);
25
}
26
27
// Destructor
28
DerivationFramework::TruthCollectionMakerTau::~TruthCollectionMakerTau
() {
29
}
30
31
// Athena initialize and finalize
32
StatusCode
DerivationFramework::TruthCollectionMakerTau::initialize
()
33
{
34
ATH_MSG_VERBOSE
(
"initialize() ..."
);
35
36
ATH_CHECK
( m_buildTruthTaus.retrieve() );
37
38
return
StatusCode::SUCCESS;
39
}
40
41
// Selection and collection creation
42
StatusCode
DerivationFramework::TruthCollectionMakerTau::addBranches
()
const
43
{
44
ATH_MSG_VERBOSE
(
"addBranches() ..."
);
45
46
// One call to build the truth tau collection
47
TauAnalysisTools::BuildTruthTaus::TruthTausEvent truthTausEvent;
48
ATH_CHECK
( m_buildTruthTaus->retrieveTruthTaus( truthTausEvent ) );
49
50
return
StatusCode::SUCCESS;
51
}
52
DerivationFramework::TruthCollectionMakerTau::~TruthCollectionMakerTau
~TruthCollectionMakerTau()
Definition:
TruthCollectionMakerTau.cxx:28
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition:
AthMsgStreamMacros.h:28
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:209
beamspotman.n
n
Definition:
beamspotman.py:729
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DerivationFramework::TruthCollectionMakerTau::initialize
StatusCode initialize()
Definition:
TruthCollectionMakerTau.cxx:32
ATH_CHECK
#define ATH_CHECK
Definition:
AthCheckMacros.h:40
BuildTruthTaus.h
IBuildTruthTaus.h
TruthCollectionMakerTau.h
DerivationFramework::TruthCollectionMakerTau::addBranches
virtual StatusCode addBranches() const
Definition:
TruthCollectionMakerTau.cxx:42
DerivationFramework::TruthCollectionMakerTau::TruthCollectionMakerTau
TruthCollectionMakerTau(const std::string &t, const std::string &n, const IInterface *p)
Definition:
TruthCollectionMakerTau.cxx:18
DerivationFramework::TruthCollectionMakerTau::m_buildTruthTaus
ToolHandle< TauAnalysisTools::IBuildTruthTaus > m_buildTruthTaus
Definition:
TruthCollectionMakerTau.h:31
Generated on Mon Sep 1 2025 21:23:17 for ATLAS Offline Software by
1.8.18