7#include "FairRootManager.h"
11#include "TClonesArray.h"
27 fStoreTrackInfo(kTRUE),
35 : FairTask(name,iVerbose),
37 fInf(
ecalInf::GetInstance(fileGeo)),
42 fStoreTrackInfo(kTRUE),
65 FairRootManager* fManager = FairRootManager::Instance();
69 Warning(
"Init()",
"No data source for structure filler! Calorimeter structure will be empty.");
74 fListECALpts = (TClonesArray*)fManager->GetObject(
"EcalPointLite");
81 fManager->Register(
"EcalStructure",
"ECAL",
fStr, kFALSE);
112 cout <<
". Number of input MC points: ";
116 for(UInt_t j=0; j<n; j++)
119 cell=
fStr->
GetCell(pt->GetDetectorID(), ten, isPS);
128 for(UInt_t j=0; j<n; j++)
136 cellmc->
AddTrackEnergy(pt->GetTrackID(),pt->GetEnergyLoss(), pt->GetTime());
147 cout <<
"--> Event no. " <<
fEvent;
153 cout << endl << flush;
void AddTrackEnergy(Int_t num, Float_t energy, Float_t time=-1111)
void AddEnergy(Float_t energy)
virtual InitStatus Init()
Bool_t fInited
Internal event counter.
ecalStructure * InitPython(TClonesArray *litePoints)
TClonesArray * fListECALpts
virtual void Exec(Option_t *option, TClonesArray *litePoints)
virtual ~ecalStructureFiller()
void SetUseMC(Int_t mc=0)
ecalCell * GetCell(Float_t x, Float_t y) const
ClassImp(ecalContFact) ecalContFact