File indexing completed on 2025-08-05 08:09:08
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 namespace Fatras {
0012
0013 struct X0Limit {
0014
0015
0016
0017
0018 template <typename detector_t, typename particle_t>
0019 bool operator()(const detector_t &detector,
0020 const particle_t &particle) const {
0021 return particle.pathInX0() +
0022 detector.thickness() / detector.material().X0() >=
0023 particle.limitInX0();
0024 }
0025 };
0026
0027 struct L0Limit {
0028
0029
0030
0031
0032 template <typename detector_t, typename particle_t>
0033 bool operator()(const detector_t &detector,
0034 const particle_t &particle) const {
0035 return particle.pathInL0() +
0036 detector.thickness() / detector.material().L0() >=
0037 particle.limitInL0();
0038 }
0039 };
0040
0041 }