Skip to content

Commit 63bc2e3

Browse files
noferinishahor02
authored andcommitted
fix in FT0 digitization (time wrt BC)
1 parent 84714d9 commit 63bc2e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Detectors/FIT/FT0/simulation/src/Digitizer.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ void Digitizer::process(const std::vector<o2::ft0::HitType>* hits,
220220
// Subtract time-of-flight from hit time
221221
const Float_t timeOfFlight = hit.GetPos().R() / o2::constants::physics::LightSpeedCm2NS;
222222
const Float_t timeOffset = is_A_side ? params.hitTimeOffsetA : params.hitTimeOffsetC;
223-
Double_t hit_time = hit.GetTime() - timeOfFlight + timeOffset;
223+
Double_t hit_time = hit.GetTime() - timeOfFlight + timeOffset + mIntRecord.getTimeOffsetWrtBC();
224224

225225
if (hit_time > 150) {
226226
continue; // not collect very slow particles
@@ -285,7 +285,7 @@ void Digitizer::storeBC(BCCache& bc,
285285
if (mCalibOffset) {
286286
miscalib = mCalibOffset->mTimeOffsets[ipmt];
287287
}
288-
int smeared_time = 1000. * (*cfd.particle - params.mCfdShift) * params.mChannelWidthInverse + miscalib + int(1000. * mIntRecord.getTimeOffsetWrtBC() * params.mChannelWidthInverse);
288+
int smeared_time = 1000. * (*cfd.particle - params.mCfdShift) * params.mChannelWidthInverse + miscalib; // + int(1000. * mIntRecord.getTimeOffsetWrtBC() * params.mChannelWidthInverse);
289289
bool is_time_in_signal_gate = (smeared_time > -params.mTime_trg_gate && smeared_time < params.mTime_trg_gate);
290290
float charge = measure_amplitude(channel_times) * params.mCharge2amp;
291291
float amp = is_time_in_signal_gate ? params.mMV_2_Nchannels * charge : 0;

0 commit comments

Comments
 (0)