Skip to content

Commit fa4e6de

Browse files
committed
make timing response independent for different pixels (dt from stepping neglected)
1 parent 60e8cae commit fa4e6de

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎Detectors/Upgrades/ALICE3/IOTOF/simulation/src/Digitizer.cxx‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "IOTOFSimulation/Digitizer.h"
2020
#include "IOTOFSimulation/DPLDigitizerParam.h"
2121
#include "DetectorsRaw/HBFUtils.h"
22+
#include "CommonConstants/PhysicsConstants.h"
2223

2324
#include <TCollection.h>
2425
#include <TFile.h>
@@ -135,7 +136,7 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, int evID, int srcID)
135136
double hitTime = hit.GetTime() * sec2ns; // convert to ns
136137
double eventTimeInBC = mEventTime.getTimeOffsetWrtBC(); // event time wrt bc
137138
double hitTimeWrtBC = hitTime + eventTimeInBC; // hit time wrt bc
138-
double smearedTime = smearTime(hitTimeWrtBC);
139+
// double smearedTime = smearTime(hitTimeWrtBC);
139140

140141
// Create the digit with time information
141142
o2::MCCompLabel label(hit.GetTrackID(), evID, srcID, false);
@@ -168,6 +169,8 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, int evID, int srcID)
168169
const int nElectronsSampled = gRandom->Poisson(electronsPerStep * nEleResp);
169170
// Noise can be added here if needed
170171

172+
double smearedTime = smearTime(hitTimeWrtBC);
173+
171174
registerDigits(chip, roFrameAbs, smearedTime, nROF,
172175
static_cast<uint16_t>(rowIS), static_cast<uint16_t>(colIS), nElectronsSampled, label);
173176
}
@@ -195,7 +198,6 @@ void Digitizer::stepping(const o2::itsmft::Hit& hit, float**& respMatrix, float*
195198
const auto& digitizerParams = o2::iotof::DPLDigitizerParam::Instance();
196199
auto stepVector = (xyzPositionEnd - xyzPositionStart) / digitizerParams.nSimSteps;
197200
xyzPositionStart = xyzPositionStart + stepVector * 0.5f; // center the start position in the middle of the step
198-
xyzPositionEnd = xyzPositionEnd - stepVector * 0.5f; // center the end position in the middle of the step
199201

200202
rowStart = -1;
201203
colStart = -1;

0 commit comments

Comments
 (0)