21 #include <TClonesArray.h>
45 std::cout <<
"-E- FairMCMatchCreatorTask::Init: "
46 <<
"RootManager not instantiated!" << std::endl;
50 fMCLink =
new TClonesArray(
"FairMCEntry");
51 ioman->
Register(
"MCLink",
"MCInfo", fMCLink, kTRUE);
55 std::cout <<
"-I- FairMCMatchCreatorTask::Init: Initialization successfull" << std::endl;
60 InitStatus FairMCMatchCreatorTask::InitBranches()
66 std::cout <<
"-E- FairMCMatchCreatorTask::Init: "
67 <<
"RootManager not instantiated!" << std::endl;
72 for (
int i = NStages - 1; i > -1; i--) {
73 TClonesArray* myBranch =
77 std::cout <<
"-W- FairMCMatchCreatorTask::Init: "
95 Fatal(
"Exec",
"No fMCLinkDet");
105 for (
int j = 0; j < clArray->GetEntries(); j++) {
120 for (
int indStage = 0; indStage < myStage.
GetNEntries(); indStage++) {
123 new ((*fMCLink)[i])
FairMCEntry(myLink.GetLinks(), myLink.GetSource(), myLink.GetPos());
131 std::cout << std::endl;
virtual void Exec(Option_t *opt)
virtual InitStatus Init()
static FairRootManager * Instance()
ClassImp(FairEventBuilder)
virtual void SetParContainers()
TObject * GetObject(const char *BrName)
void SetElements(Int_t sourceType, int index, FairMultiLinkedData *links)
void SetFill(Bool_t fill)
virtual void InitDataStages()=0
void SetLoaded(Bool_t loaded)
Bool_t GetFill(void) const
Bool_t GetLoaded(void) const
FairMCEntry GetMCLink(Int_t index)
void Register(const char *name, const char *Foldername, TNamed *obj, Bool_t toFile)
Int_t GetStageId(void) const
void LoadInMCLists(TClonesArray *myLinkArray)
std::string GetBranchName(void) const
virtual ~FairMCMatchCreatorTask()
FairMCStage * GetMCStage(int index) const