#include <hcalStructureFiller.h>
Definition at line 24 of file hcalStructureFiller.h.
◆ hcalStructureFiller() [1/3]
hcalStructureFiller::hcalStructureFiller |
( |
| ) |
|
Default constructor
Definition at line 19 of file hcalStructureFiller.cxx.
20 : FairTask(),
29{
30}
TClonesArray * fListHCALpts
Bool_t fInited
Internal event counter.
◆ hcalStructureFiller() [2/3]
hcalStructureFiller::hcalStructureFiller |
( |
const char * |
name, |
|
|
const Int_t |
iVerbose = 1 , |
|
|
const char * |
fileGeo = "hcal.geo" |
|
) |
| |
Standard constructor
Definition at line 34 of file hcalStructureFiller.cxx.
35 : FairTask(name,iVerbose),
44{
45}
static hcalInf * GetInstance(const char *filename)
◆ ~hcalStructureFiller()
hcalStructureFiller::~hcalStructureFiller |
( |
| ) |
|
|
virtual |
◆ hcalStructureFiller() [3/3]
◆ Exec()
void hcalStructureFiller::Exec |
( |
Option_t * |
option | ) |
|
|
virtual |
Executed task
Definition at line 124 of file hcalStructureFiller.cxx.
125{
127 if (fVerbose>0)
128 cout <<
"--> Event no. " <<
fEvent;
129
132
133 if (fVerbose>0)
134 cout << endl << flush;
135}
◆ Finish()
void hcalStructureFiller::Finish |
( |
| ) |
|
|
virtual |
◆ GetStoreTrackInformation()
Bool_t hcalStructureFiller::GetStoreTrackInformation |
( |
| ) |
const |
|
inline |
◆ GetStructure()
◆ GetUseHits()
Bool_t hcalStructureFiller::GetUseHits |
( |
| ) |
const |
◆ GetUseMCPoints()
Bool_t hcalStructureFiller::GetUseMCPoints |
( |
| ) |
const |
|
inline |
◆ GetUseSummableHits()
Bool_t hcalStructureFiller::GetUseSummableHits |
( |
| ) |
const |
◆ Init()
InitStatus hcalStructureFiller::Init |
( |
| ) |
|
|
virtual |
Initialization of the task
Definition at line 62 of file hcalStructureFiller.cxx.
63{
65 FairRootManager* fManager = FairRootManager::Instance();
66
68 {
69 Warning("Init()", "No data source for structure filler! Calorimeter structure will be empty.");
70
71 }
72
74 fListHCALpts = (TClonesArray*)fManager->GetObject(
"HcalPointLite");
75
76
80
81 fManager->Register(
"HcalStructure",
"HCAL",
fStr, kFALSE);
82 return kSUCCESS;
83}
void SetUseMC(Int_t mc=0)
◆ LoopForMCPoints()
void hcalStructureFiller::LoopForMCPoints |
( |
| ) |
|
|
private |
Loop over MCPoints
Loop over MCPoints hits and add them to modules
Definition at line 87 of file hcalStructureFiller.cxx.
88{
92 Int_t section;
93
95 if (fVerbose>0)
96 {
97 cout << ". Number of input MC points: ";
99 }
100
101 for(UInt_t j=0;
j<
n;
j++)
102 {
104 module=fStr->GetModule(pt->GetDetectorID(), section);
105 cout << section <<
" " <<
pt->GetEnergyLoss() << endl;
106 if (section==0)
107 module->AddEnergy(pt->GetEnergyLoss());
108 else
109 module->AddEnergy2(pt->GetEnergyLoss());
110 }
112 for(UInt_t j=0;
j<
n;
j++)
113 {
116 if (section==0)
118 else
120 }
121}
void AddTrackEnergy(Int_t num, Float_t energy)
void AddTrackEnergy2(Int_t num, Float_t energy)
hcalModule * GetModule(Float_t x, Float_t y) const
◆ operator=()
◆ SetParContainers()
void hcalStructureFiller::SetParContainers |
( |
| ) |
|
|
private |
◆ SetUseMCPoints()
void hcalStructureFiller::SetUseMCPoints |
( |
Bool_t |
UseMCPoints | ) |
|
|
inline |
◆ StoreTrackInformation()
void hcalStructureFiller::StoreTrackInformation |
( |
Bool_t |
storetrackinfo = kTRUE | ) |
|
|
inline |
◆ fEvent
Int_t hcalStructureFiller::fEvent |
|
private |
◆ fFileGeo
TString hcalStructureFiller::fFileGeo |
|
private |
◆ fInf
◆ fInited
Bool_t hcalStructureFiller::fInited |
|
private |
◆ fListHCALpts
TClonesArray* hcalStructureFiller::fListHCALpts |
|
private |
◆ fStoreTrackInfo
Bool_t hcalStructureFiller::fStoreTrackInfo |
|
private |
◆ fStr
◆ fUseMCPoints
Bool_t hcalStructureFiller::fUseMCPoints |
|
private |
The documentation for this class was generated from the following files: