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
:
AthAlgTool
(
t
,
n
,
p
)
22
, m_buildTruthTaus(
"TauAnalysisTools::BuildTruthTaus/BuildTruthTaus"
)
23
{
24
declareInterface<DerivationFramework::IAugmentationTool>(
this
);
25
declareProperty
(
"BuildTruthTaus"
,
m_buildTruthTaus
);
26
}
27
28
// Destructor
29
DerivationFramework::TruthCollectionMakerTau::~TruthCollectionMakerTau
() {
30
}
31
32
// Athena initialize and finalize
33
StatusCode
DerivationFramework::TruthCollectionMakerTau::initialize
()
34
{
35
ATH_MSG_VERBOSE
(
"initialize() ..."
);
36
37
ATH_CHECK
( m_buildTruthTaus.retrieve() );
38
39
return
StatusCode::SUCCESS;
40
}
41
42
// Selection and collection creation
43
StatusCode
DerivationFramework::TruthCollectionMakerTau::addBranches
()
const
44
{
45
ATH_MSG_VERBOSE
(
"addBranches() ..."
);
46
47
// One call to build the truth tau collection
48
TauAnalysisTools::BuildTruthTaus::TruthTausEvent truthTausEvent;
49
ATH_CHECK
( m_buildTruthTaus->retrieveTruthTaus( truthTausEvent ) );
50
51
return
StatusCode::SUCCESS;
52
}
53
DerivationFramework::TruthCollectionMakerTau::~TruthCollectionMakerTau
~TruthCollectionMakerTau()
Definition:
TruthCollectionMakerTau.cxx:29
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition:
AthCommonDataStore.h:145
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:210
beamspotman.n
n
Definition:
beamspotman.py:731
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:33
ATH_CHECK
#define ATH_CHECK
Definition:
AthCheckMacros.h:40
BuildTruthTaus.h
IBuildTruthTaus.h
TruthCollectionMakerTau.h
DerivationFramework::TruthCollectionMakerTau::addBranches
virtual StatusCode addBranches() const
Pass the thinning service
Definition:
TruthCollectionMakerTau.cxx:43
AthAlgTool
Definition:
AthAlgTool.h:26
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 Thu Nov 7 2024 21:31:05 for ATLAS Offline Software by
1.8.18