8#ifndef RECON_EVENT_FIDUCIALFLAG_H_
9#define RECON_EVENT_FIDUCIALFLAG_H_
88 double getAlgoVar(
int element)
const {
return variables_[element]; }
96 return (variables_.GetSize() < 1) ? (0) : (variables_[0]);
105 return (variables_.GetSize() < 2) ? (0) : (variables_[1]);
114 return (variables_.GetSize() < 3) ? (0) : (variables_[2]);
123 return (variables_.GetSize() < 4) ? (0) : (variables_[3]);
132 return (variables_.GetSize() < 5) ? (0) : (variables_[4]);
165 has_min_tracker_hits_ = has_min_tracker_hits;
173 has_min_energy_ = has_min_energy;
185 int fiducial_flag_{0};
188 bool is_fiducial_{
false};
191 bool has_ecal_hit_{
false};
194 bool has_hcal_hit_{
false};
197 bool has_min_tracker_hits_{
false};
200 bool has_min_energy_{
false};
Holds truth-level fiduciality flags on the signal recoil electron.
void Print() const
Print a description of this object.
double getAlgoVar(int element) const
Return algorithm variable i (see algorithm code for details).
double getAlgoVar2() const
Return algorithm variable 2 (see algorithm code for details).
void setHasHcalHit(bool has_hcal_hit)
Set hcal hit flag.
double getAlgoVar4() const
Return algorithm variable 4 (see algorithm code for details).
int getFiducialFlag() const
Return fiducial flag bit mask.
bool isFiducial() const
Return true/false if event is fiducial.
void setAlgoVar(int element, double value)
Set an algorithm variable.
virtual ~FiducialFlag()=default
Class destructor.
void Clear()
Reset the FiducialFlag object.
bool hasMinTrackerHits() const
Return true/false if event has min.
void setHasMinTrackerHits(bool has_min_tracker_hits)
Set tracker hit flag.
bool hasMinEnergy() const
Return true/false if event has min.
bool hasEcalHit() const
Return true/false if event has ecal hit.
void setIsFiducial(bool is_fiducial)
Set fiduciality flag.
double getAlgoVar1() const
Return algorithm variable 1 (see algorithm code for details).
bool hasHcalHit() const
Return true/false if event has hcal hit.
FiducialFlag()
Class constructor.
double getAlgoVar0() const
Return algorithm variable 0 (see algorithm code for details).
void setFiducialFlag(int fiducial_flag, int nvar)
Set fiduciality bit mask.
void setHasEcalHit(bool has_ecal_hit)
Set ecal hit flag.
void setHasMinEnergy(bool has_min_energy)
Set recoil min.
double getAlgoVar3() const
Return algorithm variable 3 (see algorithm code for details).