ATLAS Offline Software
Loading...
Searching...
No Matches
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
21class ITHistSvc;
22// ROOT forward declarations
23class TTree;
24
25namespace 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
44 StatusCode createSimHitsTree();
46 StatusCode fillSimHitsTree();
47 //** Add information from HepMcParticleLink to TTree - common for all SimHit types */
49
51 std::string m_validationStream;
53 TTree *m_t_simHits;
55 int m_type;
56 int m_id;
59 float m_time;
60 float m_drift;
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
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual ~SimHitTreeCreator()
Destructor.
StatusCode fillSimHitsTree()
Fill the simhits tree - validation mode only.
SG::ReadHandleKey< SiHitCollection > m_bcmHits
virtual StatusCode execute() override final
Athena algorithm's interface method execute()
SG::ReadHandleKey< SiHitCollection > m_blmHits
SG::ReadHandleKey< TGCSimHitCollection > m_tgcHits
virtual StatusCode initialize() override final
Athena algorithm's interface method initialize()
SG::ReadHandleKey< RPCSimHitCollection > m_rpcHits
SG::ReadHandleKey< SiHitCollection > m_sctHits
std::string m_validationStream
validation THist stream name
SG::ReadHandleKey< MDTSimHitCollection > m_mdtHits
SG::ReadHandleKey< TRTUncompressedHitCollection > m_trtPileupHits
SimHitTreeCreator(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters.
SG::ReadHandleKey< SiHitCollection > m_pixPileupHits
SG::ReadHandleKey< SiHitCollection > m_pixHits
SG::ReadHandleKey< TRTUncompressedHitCollection > m_trtHits
ServiceHandle< ITHistSvc > m_thistSvc
the histogram service
SG::ReadHandleKey< SiHitCollection > m_sctPileupHits
SG::ReadHandleKey< CSCSimHitCollection > m_cscHits
StatusCode createSimHitsTree()
Create the simhits tree - validation mode only.
TTree * m_t_simHits
Validation output TTree (+variables)
void addHepMcParticleLinkInfoToTree(HepMcParticleLink &HMPL)
Property holding a SG store/key/clid from which a ReadHandle is made.
ISFParticleOrderedQueue.