3 #include "FairRootManager.h"
4 #include "FairTrackParam.h"
9 #include "CbmEcalInf.h"
10 #include "CbmEcalStructure.h"
12 #include "TClonesArray.h"
33 new ((*fTrackPar)[
i]) FairTrackParam(tpar);
39 : FairTask(name, iVerbose)
49 FairRootManager* fManager = FairRootManager::Instance();
51 Fatal(
"Init",
"Can't find a Root Manager.");
54 fStsTracks = (TClonesArray*) fManager->GetObject(
"StsTrack");
56 Fatal(
"Init",
"Can't find an array of STS tracks.");
59 fStr = (CbmEcalStructure*) fManager->GetObject(
"EcalStructure");
61 Fatal(
"Init",
"Can't find calorimeter structure in the system");
64 fTrackPar =
new TClonesArray(
"FairTrackParam", 3000);
65 fManager->Register(
"EcalTrackParam",
68 IsOutputBranchPersistent(
"EcalTrackParam"));