-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R3BEventHeader registration disabled on purpose? #1092
Comments
Yes, I guess that happens because the R3BEventHeader was not registered in the analysis macro: // Create run -------------------------------------------- Do you know how to improve this part? |
Hi, I would say just remove this line of code. In this way, the Is there any particular reason |
Hello For simulations we don't need the R3BEventHeader |
Hi, But FairRunAna is not for simulations. Instead FairRunSim is for simulations. |
This depends on how one wants to use the code. FairRunSim is for simulations and to generate the simulated data, but here one can select different options:
|
Hi, Yes, what you said is correct. But the point is that But I don't think it's correct to say because |
I use FairRunAna for exp. data analysis but also for simulated data to test the reconstruction algorithms because this way usually reduces the computing time. "FairRunAna doesn't need the event header" -> Ok, but we need the event header to get the information about the triggers, tpats, timestamp, etc. So if the event header is not there we will miss this very important information for data analysis. If we use FairRunOnline for unpacking data up to the Cal level and then we want to produce the Hit level without running the code again over the unpacking (just to reduce the computing time), we must use FairRunAna to move the data and this needs to propagate the event header as well. In the case of simulation, the propagation of the event header (FairMCEventHeader) is not so important, but I don't know if this could be important in the future ... |
Describe the bug
The
Register
virtual function ofR3BEventHeader
is overridden with empty function:R3BRoot/r3bbase/R3BEventHeader.h
Lines 56 to 58 in 56e3202
This causes the
FairRunAna
, which calls theregister
function automatically in theinit
function, fail to register the event header to theFairRootManager
. It also leads to the resultFairRootManager::GetObject
nullptr if the tasks try to obtain the event header withGetObject
function.I don't know whether this is done on purpose or it's just a bug?
If it's a bug, I suggest to remove the line above.
The text was updated successfully, but these errors were encountered: