GSI Forum - RDF feed
https://forum.gsi.de/index.php
Usage of FairLink
https://forum.gsi.de/index.phpindex.php?t=rview&goto=14639&th=3849#msg_14639
1. FairLink has several constructors. The basic difference is whether the object to be linked to is specified by branch name (TString) or type (Int_t). Is there some recommendation which one to use?
2. FairMultiLinkedData::AddLink (FairLink link, Bool_t bypass=kFALSE, Float_t mult=1.0): What is the meaning of bypass and mult?
Thanks in advance,
Volker]]>Volker Friese2013-04-19T11:15:28-00:00Re: Usage of FairLink
https://forum.gsi.de/index.phpindex.php?t=rview&goto=14640&th=3849#msg_14640
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.