15 #ifndef FAIRMCMATCH_H_
16 #define FAIRMCMATCH_H_
35 typedef std::map<Int_t, FairMCStage*>::iterator
TListIterator;
55 void AddElement(Int_t sourceType,
int index, Int_t targetType,
int link);
57 void InitStage(Int_t type,
const std::string& fileName,
const std::string& branchName);
58 void InitStage(
const std::string& fileName,
const std::string& branchName =
"");
78 for (
int i = 0; i < index; i++) {
81 return (iter->second);
97 void CreateArtificialStage(Int_t stage,
const std::string& fileName =
"",
const std::string& branchName =
"");
103 void PrintInfo(std::ostream& out = std::cout) { out << *
this; }
117 Int_t fUltimateStage;
118 std::map<Int_t, FairMCStage*> fList;
126 FairMCResult GetMCInfoBackward(Int_t start, Int_t stop);
131 void AddToFinalStage(
FairLink link, Float_t mult);
132 void ClearFinalStage();
FairMCResult GetMCInfo(Int_t start, Int_t stop)
FairMCEntry GetEntry(Int_t type, int index)
void SetCommonWeightStages(Float_t weight)
void PrintInfo(std::ostream &out=std::cout)
FairMCMatch(const char *name, const char *title)
bool IsTypeInList(Int_t type)
virtual void SetPersistanceCheck(Bool_t check)
Controls if a persistance check of a link is done or not.
static FairRootManager * Instance()
void InitStage(Int_t type, const std::string &fileName, const std::string &branchName)
void SetElements(Int_t sourceType, int index, FairMultiLinkedData *links)
FairMCStage * GetMCStageType(TString branch)
friend std::ostream & operator<<(std::ostream &out, const FairMCMatch &match)
FairMCEntry GetMCInfoSingle(FairLink aLink, Int_t stop)
void CreateArtificialStage(const TString &branchName, const std::string &fileName="")
virtual void PrintInfo(std::ostream &out)
Bool_t GetLoaded(void) const
void RemoveStage(Int_t type)
FairMCStage * GetMCStageType(Int_t type)
std::map< Int_t, FairMCStage * >::iterator TListIterator
std::map< Int_t, FairMCStage * >::const_iterator TListIteratorConst
void AddElement(Int_t type, int index, FairLink link)
void LoadInMCLists(TClonesArray *myLinkArray)
FairMultiLinkedData FindLinksToStage(Int_t stage)
FairMCStage * GetMCStage(int index) const
Int_t GetBranchId(TString const &BrName)