Improve Vertex handling in MCEventHeader#15147
Improve Vertex handling in MCEventHeader#15147jackal1-66 wants to merge 1 commit intoAliceO2Group:devfrom
Conversation
|
REQUEST FOR PRODUCTION RELEASES: This will add The following labels are available |
| if (mGens[mHeaderGeneratorIndex] != "extkinO2") { | ||
| mMCEventHeader.SetVertex(eventHeader->GetX(), eventHeader->GetY(), eventHeader->GetZ()); | ||
| } | ||
| mHeaderGeneratorIndex = -1; // reset header generator index for next event |
There was a problem hiding this comment.
wouldn't it here be simply possible to delegate to mGens[mHeaderGeneratorIndex]->updateHeader() to do whatever it has to do? The if looks a bit awkward.
ExtKinO2 is set as the only generator which preserves original vertex information. This is done both in basic usage and in Hybrid mode. A full reset of the underlying generator header in hybrid was needed, otherwise when using extkinO2/event-pools together with other generators some info where kept from one event to the other (no hard reset on base FairMCEventHeader class info).