Skip to content

Commit

Permalink
fix in FT0 digitization (time wrt BC)
Browse files Browse the repository at this point in the history
  • Loading branch information
noferini committed Jan 4, 2025
1 parent 6374d89 commit 9343290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Detectors/FIT/FT0/simulation/src/Digitizer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ void Digitizer::process(const std::vector<o2::ft0::HitType>* hits,
// Subtract time-of-flight from hit time
const Float_t timeOfFlight = hit.GetPos().R() / o2::constants::physics::LightSpeedCm2NS;
const Float_t timeOffset = is_A_side ? params.hitTimeOffsetA : params.hitTimeOffsetC;
Double_t hit_time = hit.GetTime() - timeOfFlight + timeOffset;
Double_t hit_time = hit.GetTime() - timeOfFlight + timeOffset + mIntRecord.getTimeOffsetWrtBC();

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

0 comments on commit 9343290

Please sign in to comment.