ATLAS Offline Software
SimHitTreeCreator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ISF_ALGS_SIMHITTREECREATOR_H
6 #define ISF_ALGS_SIMHITTREECREATOR_H 1
7 // FrameWork includes
9 #include "GaudiKernel/ITHistSvc.h"
11 
12 // Hit Collection includes
19 
20 // THistogram service
21 class ITHistSvc;
22 // ROOT forward declarations
23 class TTree;
24 
25 namespace ISF {
26 
27  class SimHitTreeCreator : virtual public AthAlgorithm {
28 
29  public:
31  SimHitTreeCreator( const std::string& name, ISvcLocator* pSvcLocator );
32 
34  virtual ~SimHitTreeCreator();
35 
37  virtual StatusCode initialize() override final;
39  virtual StatusCode execute() override final;
40 
41  private:
42 
47  //** Add information from HepMcParticleLink to TTree - common for all SimHit types */
49 
51  std::string m_validationStream;
52 
53  TTree *m_t_simHits;
54  int m_pileup;
55  int m_type;
56  int m_id;
57  int m_mother;
58  int m_barcode;
59  float m_time;
60  float m_drift;
61  float m_edeposit;
62  float m_momentum;
63  float m_theta;
64  float m_phi;
65  float m_eta;
66 
67 
68  //Inner Detector
77 
78  //MuonSpectrometer
83  };
84 }
85 
86 #endif //> !ISF_ALGS_SIMHITTREECREATOR_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ISF::SimHitTreeCreator::m_pixHits
SG::ReadHandleKey< SiHitCollection > m_pixHits
Definition: SimHitTreeCreator.h:71
ISF::SimHitTreeCreator::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
the histogram service
Definition: SimHitTreeCreator.h:50
ISF::SimHitTreeCreator::m_drift
float m_drift
Definition: SimHitTreeCreator.h:60
ISF::SimHitTreeCreator::m_blmHits
SG::ReadHandleKey< SiHitCollection > m_blmHits
Definition: SimHitTreeCreator.h:70
ISF::SimHitTreeCreator::m_sctPileupHits
SG::ReadHandleKey< SiHitCollection > m_sctPileupHits
Definition: SimHitTreeCreator.h:75
ISF::SimHitTreeCreator::initialize
virtual StatusCode initialize() override final
Athena algorithm's interface method initialize()
Definition: SimHitTreeCreator.cxx:76
ISF::SimHitTreeCreator::m_sctHits
SG::ReadHandleKey< SiHitCollection > m_sctHits
Definition: SimHitTreeCreator.h:72
ISF::SimHitTreeCreator::m_rpcHits
SG::ReadHandleKey< RPCSimHitCollection > m_rpcHits
Definition: SimHitTreeCreator.h:80
CSCSimHitCollection.h
ISF::SimHitTreeCreator::~SimHitTreeCreator
virtual ~SimHitTreeCreator()
Destructor.
Definition: SimHitTreeCreator.cxx:72
ISF::SimHitTreeCreator::addHepMcParticleLinkInfoToTree
void addHepMcParticleLinkInfoToTree(HepMcParticleLink &HMPL)
Definition: SimHitTreeCreator.cxx:310
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
ISF::SimHitTreeCreator::SimHitTreeCreator
SimHitTreeCreator(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters.
Definition: SimHitTreeCreator.cxx:18
ISF::SimHitTreeCreator::m_pixPileupHits
SG::ReadHandleKey< SiHitCollection > m_pixPileupHits
Definition: SimHitTreeCreator.h:74
ISF::SimHitTreeCreator::m_edeposit
float m_edeposit
Definition: SimHitTreeCreator.h:61
ISF::SimHitTreeCreator::m_trtPileupHits
SG::ReadHandleKey< TRTUncompressedHitCollection > m_trtPileupHits
Definition: SimHitTreeCreator.h:76
ISF::SimHitTreeCreator::m_trtHits
SG::ReadHandleKey< TRTUncompressedHitCollection > m_trtHits
Definition: SimHitTreeCreator.h:73
AthAlgorithm.h
ISF::SimHitTreeCreator::createSimHitsTree
StatusCode createSimHitsTree()
Create the simhits tree - validation mode only.
Definition: SimHitTreeCreator.cxx:103
ISF::SimHitTreeCreator::m_eta
float m_eta
Definition: SimHitTreeCreator.h:65
ISF::SimHitTreeCreator::m_cscHits
SG::ReadHandleKey< CSCSimHitCollection > m_cscHits
Definition: SimHitTreeCreator.h:82
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ISF::SimHitTreeCreator::m_time
float m_time
Definition: SimHitTreeCreator.h:59
ISF::SimHitTreeCreator::m_momentum
float m_momentum
Definition: SimHitTreeCreator.h:62
RPCSimHitCollection.h
ISF::SimHitTreeCreator::m_id
int m_id
Definition: SimHitTreeCreator.h:56
AthAlgorithm
Definition: AthAlgorithm.h:47
ISF::SimHitTreeCreator::m_theta
float m_theta
Definition: SimHitTreeCreator.h:63
ISF::SimHitTreeCreator::m_barcode
int m_barcode
Definition: SimHitTreeCreator.h:58
ISF::SimHitTreeCreator::m_pileup
int m_pileup
Definition: SimHitTreeCreator.h:54
MDTSimHitCollection.h
ISF::SimHitTreeCreator::execute
virtual StatusCode execute() override final
Athena algorithm's interface method execute()
Definition: SimHitTreeCreator.cxx:97
ISF::SimHitTreeCreator::m_validationStream
std::string m_validationStream
validation THist stream name
Definition: SimHitTreeCreator.h:51
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ISF::SimHitTreeCreator
Definition: SimHitTreeCreator.h:27
ISF::SimHitTreeCreator::m_phi
float m_phi
Definition: SimHitTreeCreator.h:64
TGCSimHitCollection.h
ISF::SimHitTreeCreator::fillSimHitsTree
StatusCode fillSimHitsTree()
Fill the simhits tree - validation mode only.
Definition: SimHitTreeCreator.cxx:129
ISF::SimHitTreeCreator::m_mdtHits
SG::ReadHandleKey< MDTSimHitCollection > m_mdtHits
Definition: SimHitTreeCreator.h:79
TRTUncompressedHitCollection.h
ISF::SimHitTreeCreator::m_type
int m_type
Definition: SimHitTreeCreator.h:55
ISF::SimHitTreeCreator::m_mother
int m_mother
Definition: SimHitTreeCreator.h:57
ISF
ISFParticleOrderedQueue.
Definition: PrimaryParticleInformation.h:13
ISF::SimHitTreeCreator::m_bcmHits
SG::ReadHandleKey< SiHitCollection > m_bcmHits
Definition: SimHitTreeCreator.h:69
ISF::SimHitTreeCreator::m_tgcHits
SG::ReadHandleKey< TGCSimHitCollection > m_tgcHits
Definition: SimHitTreeCreator.h:81
ServiceHandle< ITHistSvc >
ISF::SimHitTreeCreator::m_t_simHits
TTree * m_t_simHits
Validation output TTree (+variables)
Definition: SimHitTreeCreator.h:53
SiHitCollection.h