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  : 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
30 }
31 
32 // Athena initialize and finalize
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
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