Skip to content

Commit bab0f4c

Browse files
committed
Photon energy in header
1 parent b83568d commit bab0f4c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

MC/config/PWGUD/external/generator/GeneratorStarlight.C

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,16 @@ class GeneratorStarlight_class : public Generator
337337
return true;
338338
}
339339

340+
//Store couple of event informations to the MC event header
341+
void updateHeader(o2::dataformats::MCEventHeader* eventHeader)override
342+
{
343+
using Key = o2::dataformats::MCInfoKeys;
344+
345+
eventHeader->putInfo<std::string>(Key::generator, "STARlight");
346+
eventHeader->putInfo<std::string>(Key::processName, mSelectedConfiguration);
347+
eventHeader->putInfo<float>("photonEnergy", getPhotonEnergy());
348+
}
349+
340350
protected:
341351
float eCM = 5020; //CMS energy
342352
int projA=208; //Beam

0 commit comments

Comments
 (0)