Skip to content

Commit 643c99c

Browse files
committed
Cutoff very slow particles in TOF digitization
1 parent 7194b30 commit 643c99c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Detectors/TOF/simulation/src/Digitizer.cxx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,11 @@ int Digitizer::process(const std::vector<HitType>* hits, std::vector<Digit>* dig
108108
} // close if continuous
109109

110110
for (auto& hit : *hits) {
111-
//TODO: put readout window counting/selection
112-
111+
// TODO: put readout window counting/selection
112+
// neglect very slow particles (low energy neutrons)
113+
if (hit.GetTime() > 1000) { // 1 mus
114+
continue;
115+
}
113116
processHit(hit, mEventTime.getTimeOffsetWrtBC() + Geo::LATENCYWINDOW);
114117
} // end loop over hits
115118

0 commit comments

Comments
 (0)