38 for (
unsigned int hit = 0; hit < fInputEvent->GetNumberOfHits(); hit++) {
39 const TVector3& position = fInputEvent->GetPosition(hit);
40 const REST_HitType hitType = fInputEvent->GetType(hit);
41 const double energy = fInputEvent->GetEnergy(hit);
42 const double time = fInputEvent->GetTime(hit);
44 if (hitType != VETO) {
46 fOutputEvent->AddHit(position, energy, time, hitType);
53 double energyAttenuated = energy;
54 double timeDelayed = time;
55 for (
int p = 0; p < fReadout->GetNumberOfReadoutPlanes(); p++) {
56 auto [daqId, moduleId, channelId] = fReadout->GetHitsDaqChannelAtReadoutPlane(position, p);
60 auto channel = fReadout->GetReadoutChannelWithDaqID(daqId);
62 const bool isVeto = (channel->GetChannelType() ==
"veto");
65 cout <<
"TRestDetectorLightAttenuationProcess::ProcessEvent() - "
66 "channel type is not 'veto'. "
80 cerr <<
"TRestDetectorLightAttenuationProcess::ProcessEvent() - "
81 "no readout plane found for veto hit "
82 << position.X() <<
" " << position.Y() <<
" " << position.Z() <<
" with energy: " << energy
87 }
else if (count > 1) {
88 cerr <<
"TRestDetectorLightAttenuationProcess::ProcessEvent() - "
89 "more than one readout plane found for veto hit "
94 fOutputEvent->AddHit(position, energyAttenuated, timeDelayed, hitType);