73 static constexpr
double InvalidLength = std::numeric_limits<double>::lowest();
87 Shower(TVector3
const& dcosVtx,
88 TVector3
const& dcosVtxErr,
90 TVector3
const& xyzErr,
91 std::vector<double> TotalEnergy,
92 std::vector<double> TotalEnergyErr,
93 std::vector<double>
dEdx,
103 TVector3
const& dcosVtxErr,
105 TVector3
const& xyzErr,
106 std::vector<double> TotalEnergy,
107 std::vector<double> TotalEnergyErr,
108 std::vector<double>
dEdx,
138 void set_dedx(
const std::vector<double>& q) { fdEdx = q; }
151 const std::vector<double>&
Energy()
const;
152 const std::vector<double>&
EnergyErr()
const;
154 const std::vector<double>&
MIPEnergy()
const;
159 const std::vector<double>&
dEdx()
const;
160 const std::vector<double>&
dEdxErr()
const;
177 static_assert(InvalidLength < 0.0
f,
"Invalid length must be negative!");
178 static_assert(InvalidOpeningAngle < 0.0
f,
"Invalid opening angle must be negative!");
const std::vector< double > & dEdxErr() const
void set_start_point_err(const TVector3 &xyz_e)
const TVector3 & ShowerStart() const
void set_dedx_err(const std::vector< double > &q)
void set_direction_err(const TVector3 &dir_e)
std::vector< double > fTotalMIPEnergy
Calculated Energy per each plane.
Reconstruction base classes.
bool has_length() const
Returns whether the shower has a valid length.
const std::vector< double > & EnergyErr() const
std::vector< double > fdEdx
Calculated dE/dx per each plane.
std::vector< double > fSigmadEdx
Calculated dE/dx per each plane.
std::vector< double > fSigmaTotalMIPEnergy
Calculated Energy per each plane.
TVector3 fSigmaXYZstart
uncertainty on initial direction cosines
const std::vector< double > & Energy() const
void set_total_energy(const std::vector< double > &q)
friend bool operator<(const Shower &a, const Shower &b)
const TVector3 & ShowerStartErr() const
constexpr int kBogusI
obviously bogus integer value
void set_total_MIPenergy_err(const std::vector< double > &q)
std::vector< double > fTotalEnergy
Calculated Energy per each plane.
void set_total_energy_err(const std::vector< double > &q)
bool has_open_angle() const
Returns whether the shower has a valid opening angle.
static constexpr double InvalidLength
The magic constant indicating the invalidity of the shower length variable.
void set_id(const int id)
const std::vector< double > & MIPEnergyErr() const
void set_direction(const TVector3 &dir)
const std::vector< double > & dEdx() const
const std::vector< double > & MIPEnergy() const
static constexpr double InvalidOpeningAngle
The magic constant indicating the invalidity of the opening angle variable.
void set_length(const double &l)
void set_open_angle(const double &a)
TVector3 fDCosStart
direction cosines at start of shower
const TVector3 & DirectionErr() const
int fID
Default constructor.
TVector3 fSigmaDCosStart
uncertainty on initial direction cosines
const TVector3 & Direction() const
void set_total_best_plane(const int q)
void set_total_MIPenergy(const std::vector< double > &q)
double fOpenAngle
Opening angle [rad].
double fLength
Shower length [cm].
std::vector< double > fSigmaTotalEnergy
Calculated Energy per each plane.
friend std::ostream & operator<<(std::ostream &stream, Shower const &a)
TVector3 fXYZstart
direction cosines at start of shower
void set_start_point(const TVector3 &xyz)
Collection of Physical constants used in LArSoft.
Shower(TVector3 const &dcosVtx, TVector3 const &dcosVtxErr, TVector3 const &xyz, TVector3 const &xyzErr, std::vector< double > TotalEnergy, std::vector< double > TotalEnergyErr, std::vector< double > dEdx, std::vector< double > dEdxErr, int bestplane, int id=util::kBogusI)
void set_dedx(const std::vector< double > &q)