GSI Forum - RDF feed
https://forum.gsi.de/index.php
[FIXED] Produce ROOT file with FairRoot Structure
https://forum.gsi.de/index.phpindex.php?t=rview&goto=22371&th=6066#msg_22371
I have a ROOT file that contains probability distributions of different particles (e, mu, pi, k, p) stored in TClonesArray "branch named PidAlgoMl" (image 1), but I want it to be of the same structure of image 2, that is the branch "PidAlgoMl" inside folder "Pid" which is inside folder "cbmout". How to do this using PANDARoot or FairROOT classes.
Thank you very much in advance,
]]>wesmail2018-03-19T12:24:35-00:00Re: Produce ROOT file with FairRoot Structure
https://forum.gsi.de/index.phpindex.php?t=rview&goto=22374&th=6066#msg_22374
The correct way is shown, as example, in pid/PidClassifier/PndPidDrcAssociatorTask class, which is quite simple. You have to follow such structure, just change the name of the classes and the numbers you put inside.
cbmout.pid.XXX is not business of the developer if you use the suggested structure. Anyway, the line which write your container inside pid is:
]]>StefanoSpataro2018-03-19T12:42:33-00:00Re: Produce ROOT file with FairRoot Structure
https://forum.gsi.de/index.phpindex.php?t=rview&goto=22377&th=6066#msg_22377
thank you very much for your instant reply. I am aware of the associator task, but I don't know how to use it because at Init() method it tries to get the TClonesArray from the input file and I face the same problem ("PidAlgoMl is not in cbmout folder" because my file is not in the same RootFair structure) and crashes.
N.B I fill the TClonesArray in a python program independent of FairRoot package, but I can access FairRoot from python. How to use Register method independent from associator Task?!.
Thank you again,]]>wesmail2018-03-19T13:20:46-00:00Re: Produce ROOT file with FairRoot Structure
https://forum.gsi.de/index.phpindex.php?t=rview&goto=22381&th=6066#msg_22381
Other ways to fill TCAs, such us using python, are not using the fairroot tree and are not compatible. Register is a function of fairroot, then you cannot use it in python.]]>StefanoSpataro2018-03-19T13:26:27-00:00Re: Produce ROOT file with FairRoot Structure
https://forum.gsi.de/index.phpindex.php?t=rview&goto=22389&th=6066#msg_22389
Thanks again for your help ]]>Waleed Esmail2018-03-21T09:13:38-00:00