SND@LHC Software
Loading...
Searching...
No Matches
hcalStructureFiller.h
Go to the documentation of this file.
1
13#ifndef HCALSTRUCTUREFILLER_H
14#define HCALSTRUCTUREFILLER_H
15
16#include "FairTask.h"
17#include "TString.h"
18#include "TVector3.h"
19
20class hcalInf;
21class hcalStructure;
22class TClonesArray;
23
24class hcalStructureFiller : public FairTask {
25
26public:
29
31 hcalStructureFiller(const char *name, const Int_t iVerbose=1, const char* fileGeo="hcal.geo");
32
34 virtual ~hcalStructureFiller();
35
37 virtual InitStatus Init();
38
40 virtual void Exec(Option_t* option);
41
43 virtual void Finish();
44
48 void SetUseMCPoints(Bool_t UseMCPoints);
49
51 void StoreTrackInformation(Bool_t storetrackinfo=kTRUE);
52 Bool_t GetStoreTrackInformation() const;
53
54 Bool_t GetUseMCPoints() const;
55 Bool_t GetUseSummableHits() const;
56 Bool_t GetUseHits() const;
57protected:
58
59private:
61 void SetParContainers();
63 void LoopForMCPoints();
65 hcalInf* fInf; //HCAL geometry container
66
67 TClonesArray* fListHCALpts; //HCAL MC points
68 Int_t fEvent;
69
71 Bool_t fInited;
74
78 TString fFileGeo;
79
82
83 ClassDef(hcalStructureFiller,1)
84
85};
86
87inline void hcalStructureFiller::SetUseMCPoints(Bool_t UseMCPoints)
88{
89 if (fInited) return;
90 fUseMCPoints=UseMCPoints;
91}
92
94{
95 return fUseMCPoints;
96}
97
98inline void hcalStructureFiller::StoreTrackInformation(Bool_t storetrackinfo)
99{
100 if (fInited) return;
101 fStoreTrackInfo=storetrackinfo;
102}
103
105{
106 return fStoreTrackInfo;
107}
108
110{
111 return fStr;
112}
113
114#endif
hcalStructureFiller(const hcalStructureFiller &)
Bool_t GetUseSummableHits() const
void StoreTrackInformation(Bool_t storetrackinfo=kTRUE)
TClonesArray * fListHCALpts
Bool_t GetStoreTrackInformation() const
hcalStructureFiller & operator=(const hcalStructureFiller &)
hcalStructure * GetStructure() const
Bool_t GetUseMCPoints() const
Bool_t fInited
Internal event counter.
void SetUseMCPoints(Bool_t UseMCPoints)
Bool_t GetUseHits() const
virtual void Exec(Option_t *option)
virtual InitStatus Init()