4 : _seed(0), _rando(new TRandom3(0))
34 bool isInFiducial =
true;
36 float r_point = std::sqrt( point.Y()*point.Y() + point.Z()*point.Z() );
51 float r_point = std::sqrt( point.Y()*point.Y() + point.Z()*point.Z() );
62 bool isInCalo =
false;
63 float r_point = std::sqrt( point.Y()*point.Y() + point.Z()*point.Z() );
76 bool isStopBetween =
false;
77 float r_point = std::sqrt( point.Y()*point.Y() + point.Z()*point.Z() );
100 float r_point = std::sqrt( point.Y()*point.Y() + point.Z()*point.Z() );
101 float theta_point = std::atan(r_point /
std::abs(point.X()) );
103 if( theta_point > theta ) isBarrel =
true;
110 if( !
isBarrel(point) ) isEndcap =
true;
119 float r_spoint = std::sqrt( spoint.Y()*spoint.Y() + spoint.Z()*spoint.Z() );
120 float r_epoint = std::sqrt( epoint.Y()*epoint.Y() + epoint.Z()*epoint.Z() );
bool isBarrel(const TVector3 &point)
bool isBremsstrahlung(const TVector3 &spoint, const int &pdg, const int &motherpdg)
TRandom3 * _rando
random generator
bool hasDecayedInCalo(const TVector3 &point)
bool PointInTPC(const TVector3 &point)
unsigned long int _seed
seed
bool isThroughCalo(const TVector3 &point)
void SetOrigin(double *origin)
bool isBackscatter(const TVector3 &spoint, const TVector3 &epoint)
bool PointInCalo(const TVector3 &point)
bool PointInFiducial(const TVector3 &point)
bool isEndcap(const TVector3 &point)
bool PointStopBetween(const TVector3 &point)
constexpr Point origin()
Returns a origin position with a point of the specified type.
double _origin[3]
coordinates of the origin