SND@LHC Software
Loading...
Searching...
No Matches
ecalStructureFiller.h
Go to the documentation of this file.
1
13#ifndef ECALSTRUCTUREFILLER_H
14#define ECALSTRUCTUREFILLER_H
15
16#include "FairTask.h"
17#include "TString.h"
18#include "TVector3.h"
19
20class ecalInf;
21class ecalStructure;
22class TClonesArray;
23
24class ecalStructureFiller : public FairTask {
25
26public:
29
31 ecalStructureFiller(const char *name, const Int_t iVerbose=1, const char* fileGeo="ecal_FullMC.geo");
32
34 virtual ~ecalStructureFiller();
35
37 virtual InitStatus Init();
38
39 ecalStructure* InitPython(TClonesArray* litePoints);
40
42 virtual void Exec(Option_t* option,TClonesArray* litePoints);
43
45 virtual void Finish();
46
50 void SetUseMCPoints(Bool_t UseMCPoints);
51
53 void StoreTrackInformation(Bool_t storetrackinfo=kTRUE);
54 Bool_t GetStoreTrackInformation() const;
55
56 Bool_t GetUseMCPoints() const;
57 Bool_t GetUseSummableHits() const;
58 Bool_t GetUseHits() const;
59protected:
60
61private:
63 void SetParContainers();
65 void LoopForMCPoints();
67 ecalInf* fInf; //ECAL geometry container
68
69 TClonesArray* fListECALpts; // ECAL MC points
70 Int_t fEvent;
71
73 Bool_t fInited;
76
80 TString fFileGeo;
81
84
85 ClassDef(ecalStructureFiller,1)
86
87};
88
89inline void ecalStructureFiller::SetUseMCPoints(Bool_t UseMCPoints)
90{
91 if (fInited) return;
92 fUseMCPoints=UseMCPoints;
93}
94
96{
97 return fUseMCPoints;
98}
99
100inline void ecalStructureFiller::StoreTrackInformation(Bool_t storetrackinfo)
101{
102 if (fInited) return;
103 fStoreTrackInfo=storetrackinfo;
104}
105
107{
108 return fStoreTrackInfo;
109}
110
112{
113 return fStr;
114}
115
116#endif
Bool_t GetStoreTrackInformation() const
virtual InitStatus Init()
ecalStructureFiller & operator=(const ecalStructureFiller &)
Bool_t GetUseSummableHits() const
Bool_t fInited
Internal event counter.
ecalStructure * InitPython(TClonesArray *litePoints)
void StoreTrackInformation(Bool_t storetrackinfo=kTRUE)
ecalStructure * GetStructure() const
Bool_t GetUseMCPoints() const
Bool_t GetUseHits() const
TClonesArray * fListECALpts
ecalStructureFiller(const ecalStructureFiller &)
virtual void Exec(Option_t *option, TClonesArray *litePoints)
void SetUseMCPoints(Bool_t UseMCPoints)