6 #include "StAddRunInfoMaker.h"
8 #include "StEvent/StEvent.h"
9 #include "StEvent/StRunInfo.h"
10 #include "StEvent/StEventInfo.h"
11 #include "StEvent/StEventSummary.h"
12 #include "StarClassLibrary/SystemOfUnits.h"
18 StAddRunInfoMaker::~StAddRunInfoMaker() {
30 if ( !event->runInfo() ) {
32 pRunInfo->setRunId( eventInfo->runId() );
33 pRunInfo->setProductionTime(20011007);
34 pRunInfo->setProductionVersion(
"P01hi");
35 pRunInfo->setCenterOfMassEnergy(130. * GeV);
36 pRunInfo->setBeamMassNumber(east, 197);
37 pRunInfo->setBeamMassNumber(west, 197);
38 pRunInfo->setBeamEnergy(east, 65. * GeV);
39 pRunInfo->setBeamEnergy(west, 65. * GeV);
43 pRunInfo->setMagneticField(event->summary()->magneticField());
45 event->setRunInfo(pRunInfo);
int Make()
add StRunInfo to StEvent
StAddRunInfoMaker(const char *name="addRunInfo")
Default constructor; get pointer to StMuDstMaker.