|Re: Usage of FairLink [message #14640 is a reply to message #14639]
|Fri, 19 April 2013 13:59
Registered: May 2007
here are the answers to your questions:
1) The type inside the link is used to identify the branch inside a Tree where the data is stored.
The FairRootManager crates a unique ID for each branch which is stored in the FairLink. The constructor using a TString gets the branch name and translates it via the FairRootManager into the type while the constructor with an Int_t type gets this unique ID directly.
2 a) The bypass parameter allows to suppress links to intermediate steps which are not of interest. If one adds a link to FairMultiLinkedData with bypass = true then the links are stored where the given link is pointing to and not the link by itself.
2 b) The mult. parameter is used to create a weight if you use the links to retrieve MC data. For example if you want to know the MC track for a reconstructed track it might be, that the reconstructed track is merged from data of different MC tracks. Therefore you do not get a single MC track as a result but many. The weight parameter helps to sort the results by their significants.
As a user who is setting the links the parameter should be always 1.
I hope I could answer your questions.