Skip to content

Commit 0ad36ef

Browse files
committed
Fix: TF rough creation time should be milliseconds
1 parent 2142176 commit 0ad36ef

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Detectors/Raw/include/DetectorsRaw/HBFUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ struct HBFUtils : public o2::conf::ConfigurableParamHelper<HBFUtils> {
141141
// used for MC
142142
uint32_t orbitFirstSampled = 0; ///< 1st orbit sampled in the MC
143143
uint32_t maxNOrbits = 0xffffffff; ///< max number of orbits to accept, used in digit->raw conversion
144-
uint64_t startTime = 0; ///< absolute time corresponding to the start of the MC run
144+
uint64_t startTime = 0; ///< absolute time in ms corresponding to the start of the MC run
145145

146146
O2ParamDef(HBFUtils, "HBFUtils");
147147
};

Detectors/Raw/src/HBFUtilsInitializer.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ void HBFUtilsInitializer::addNewTimeSliceCallback(std::vector<o2::framework::Cal
134134
[offset = int64_t(hbfu.getFirstIRofTF({0, hbfu.orbitFirstSampled}).orbit), increment = int64_t(hbfu.nHBFPerTF),
135135
startTime = hbfu.startTime, orbitFirst = hbfu.orbitFirst](o2::header::DataHeader& dh, o2::framework::DataProcessingHeader& dph) {
136136
dh.firstTForbit = offset + increment * dh.tfCounter;
137-
dph.creation = startTime + (dh.firstTForbit - orbitFirst) * o2::constants::lhc::LHCOrbitMUS;
137+
dph.creation = startTime + (dh.firstTForbit - orbitFirst) * o2::constants::lhc::LHCOrbitMUS * 1.e-3;
138138
});
139139
}
140140
}});

0 commit comments

Comments
 (0)