ATLAS Offline Software
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
11 
12 // Tool header file
14 // for TruthTausEvent
16 
17 // Constructor
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
29 }
30 
31 // Athena initialize and finalize
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
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