Skip to content

Commit 235a546

Browse files
fix compilation and execution bug
1 parent d6271ec commit 235a546

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ void Digitizer::init()
6868
}
6969
}
7070

71-
const auto& digitizerParams = o2::iotof::DPLDigitizerParam::Instance();
72-
7371
LOG(info) << "Initializing IOTOF digitizer";
7472
LOG(info) << " Time resolution: " << digitizerParams.timeResolution * 1e3 << " ps";
7573
LOG(info) << " Charge threshold: " << digitizerParams.chargeThreshold << " electrons";
@@ -189,7 +187,7 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, int evID, int srcID)
189187
LOG(debug) << "Hit rejected by efficiency cut at pixel (row,col) = (" << rowIS << ", " << colIS << ")";
190188
continue;
191189
}
192-
double smearedTime = smearTime(hitTimeWrtBC, avgHitLocalX[irow][icol], avgHitLocalZ[irow][icol]);
190+
double smearedTime = smearTime(hitTimeWrtBC, avgHitLocalX[irow][icol] - xPixelCenter, avgHitLocalZ[irow][icol] - zPixelCenter);
193191

194192
const int nElectronsSampled = gRandom->Poisson(electronsPerStep * nEleResp);
195193
// Noise can be added here if needed

‎Steer/DigitizerWorkflow/src/IOTOFDigitizerSpec.cxx‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ class IOTOFDPLDigitizerTask : o2::base::BaseDPLDigitizer
6060

6161
mDigitizer.setGeometry(geom);
6262
mDigitizer.init();
63+
64+
mROMode = mDigitizer.isContinuous() ? o2::parameters::GRPObject::CONTINUOUS : o2::parameters::GRPObject::PRESENT;
6365
}
6466

6567
void run(framework::ProcessingContext& pc)
@@ -149,6 +151,9 @@ class IOTOFDPLDigitizerTask : o2::base::BaseDPLDigitizer
149151
pc.outputs().snapshot(Output{mOrigin, "DIGITSMC2ROF", 0}, dummyMC2ROF);
150152
}
151153

154+
LOG(info) << mID.getName() << ": Sending ROMode= " << mROMode << " to GRPUpdater";
155+
pc.outputs().snapshot(Output{mOrigin, "ROMode", 0}, mROMode);
156+
152157
timer.Stop();
153158
LOG(info) << "Digitization took " << timer.CpuTime() << "s";
154159

0 commit comments

Comments
 (0)