Skip to content

Commit 5e234aa

Browse files
shahor02davidrohr
authored andcommitted
Add run 1st orbit to GRP object
1 parent 8f0c9c4 commit 5e234aa

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

DataFormats/Parameters/include/DataFormatsParameters/GRPObject.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ class GRPObject
5252
timePoint getTimeEnd() const { return mTimeEnd; }
5353
void setTimeStart(timePoint t) { mTimeStart = t; }
5454
void setTimeEnd(timePoint t) { mTimeEnd = t; }
55+
56+
void setFirstOrbit(uint32_t o) { mFirstOrbit = o; }
57+
uint32_t getFirstOrbit() const { return mFirstOrbit; }
58+
5559
/// getters/setters for beams crossing angle (deviation from 0)
5660
o2::units::AngleRad_t getCrossingAngle() const { return mCrossingAngle; }
5761
void setCrossingAngle(o2::units::AngleRad_t v) { mCrossingAngle = v; }
@@ -137,6 +141,8 @@ class GRPObject
137141
timePoint mTimeStart = 0; ///< DAQ_time_start entry from DAQ logbook
138142
timePoint mTimeEnd = 0; ///< DAQ_time_end entry from DAQ logbook
139143

144+
uint32_t mFirstOrbit = 0; /// 1st orbit of the 1st TF, in the MC set at digitization // RS Not sure it will stay in GRP, may go to some CTP object
145+
140146
DetID::mask_t mDetsReadout; ///< mask of detectors which are read out
141147
DetID::mask_t mDetsContinuousRO; ///< mask of detectors read out in continuos mode
142148
DetID::mask_t mDetsTrigger; ///< mask of detectors which provide trigger
@@ -154,7 +160,7 @@ class GRPObject
154160
std::string mDataPeriod = ""; ///< name of the period
155161
std::string mLHCState = ""; ///< machine state
156162

157-
ClassDefNV(GRPObject, 2);
163+
ClassDefNV(GRPObject, 3);
158164
};
159165

160166
//______________________________________________

DataFormats/Parameters/src/GRPObject.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ void GRPObject::print() const
5050
printf("Start: %s", std::ctime(&t));
5151
t = mTimeEnd; // system_clock::to_time_t(mTimeEnd);
5252
printf("End : %s", std::ctime(&t));
53+
printf("1st orbit: %u\n", mFirstOrbit);
5354
printf("Beam0: Z:A = %3d:%3d, Energy = %.3f\n", getBeamZ(BeamClockWise), getBeamA(BeamClockWise),
5455
getBeamEnergyPerNucleon(BeamClockWise));
5556
printf("Beam1: Z:A = %3d:%3d, Energy = %.3f\n", getBeamZ(BeamAntiClockWise), getBeamA(BeamAntiClockWise),

0 commit comments

Comments
 (0)