File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Detectors/FIT/FT0/simulation/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments