We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b83568d commit 4687600Copy full SHA for 4687600
1 file changed
MC/config/PWGUD/external/generator/GeneratorStarlight.C
@@ -337,6 +337,16 @@ class GeneratorStarlight_class : public Generator
337
return true;
338
}
339
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
350
protected:
351
float eCM = 5020; //CMS energy
352
int projA=208; //Beam
0 commit comments