Skip to content

Commit f0a8120

Browse files
committed
ALICE3-TRK: fixing DigitROF setting
1 parent 167c823 commit f0a8120

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Detectors/Upgrades/ALICE3/TRK/simulation/src/Digitizer.cxx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ void Digitizer::process(const std::vector<Hit>* hits, int evID, int srcID)
131131
[hits](auto lhs, auto rhs) {
132132
return (*hits)[lhs].GetDetectorID() < (*hits)[rhs].GetDetectorID();
133133
});
134+
LOG(info) << "Processing " << nHits << " hits";
134135
for (int i : hitIdx) {
135136
processHit((*hits)[i], mROFrameMax, evID, srcID);
136137
}
@@ -185,8 +186,6 @@ void Digitizer::setEventTime(const o2::InteractionTimeRecord& irt)
185186
//_______________________________________________________________________
186187
void Digitizer::fillOutputContainer(uint32_t frameLast)
187188
{
188-
std::cout << "Entering fillOutputContainer " << std::endl;
189-
std::cout << "Digit size before fill: " << mDigits->size() << std::endl;
190189
// // fill output with digits from min.cached up to requested frame, generating the noise beforehand
191190
if (frameLast > mROFrameMax) {
192191
frameLast = mROFrameMax;
@@ -200,7 +199,6 @@ void Digitizer::fillOutputContainer(uint32_t frameLast)
200199

201200
// we have to write chips in RO increasing order, therefore have to loop over the frames here
202201
for (; mROFrameMin <= frameLast; mROFrameMin++) {
203-
std::cout << "Entering ROFrame " << mROFrameMin << std::endl;
204202
rcROF.setROFrame(mROFrameMin);
205203
rcROF.setFirstEntry(mDigits->size()); // start of current ROF in digits
206204

@@ -243,7 +241,7 @@ void Digitizer::fillOutputContainer(uint32_t frameLast)
243241
} else {
244242
rcROF.getBCData() = mEventTime; // RSTODO do we need to add trigger delay?
245243
}
246-
if (mROFRecords->size()) {
244+
if (mROFRecords) {
247245
mROFRecords->push_back(rcROF);
248246
}
249247
extra.clear(); // clear container for extra digits of the mROFrameMin ROFrame
@@ -279,7 +277,7 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, uint32_t& maxFr, int evID
279277
const int maxWarn = 10;
280278
static int warnNo = 0;
281279
if (warnNo < maxWarn) {
282-
LOG(info) << "Ignoring hit with time_in_event = " << timeInROF << " ns"
280+
LOG(warning) << "Ignoring hit with time_in_event = " << timeInROF << " ns"
283281
<< ((++warnNo < maxWarn) ? "" : " (suppressing further warnings)");
284282
}
285283
return;

0 commit comments

Comments
 (0)