9 std::cout <<
"FiducialFlag { "
10 <<
"fiducialFlag: " << fiducial_flag_ <<
", "
11 <<
"isFiducial: " << is_fiducial_ <<
", "
12 <<
"hasEcalHit: " << has_ecal_hit_ <<
", "
13 <<
"hasHcalHit: " << has_hcal_hit_ <<
", "
14 <<
"hasMinTrackerHits: " << has_min_tracker_hits_ <<
", "
15 <<
"hasMinEnergy: " << has_min_energy_ <<
" }" << std::endl;
17 for (
int i = 0; i < variables_.GetSize(); ++i) {
18 std::cout <<
"Element " << i <<
" : " << variables_[i] << std::endl;
25 has_ecal_hit_ =
false;
26 has_hcal_hit_ =
false;
27 has_min_tracker_hits_ =
false;
28 has_min_energy_ =
false;
30 for (
int i = 0; i < variables_.GetSize(); ++i) {
36 fiducial_flag_ = fiducial_flag;
38 if (nvar > variables_.GetSize()) {
44 if (element >= 0 && element < variables_.GetSize()) {
45 variables_[element] = value;
Class that holds truth-level fiduciality flags on the signal recoil electron.
Holds truth-level fiduciality flags on the signal recoil electron.
void Print() const
Print a description of this object.
void setAlgoVar(int element, double value)
Set an algorithm variable.
void Clear()
Reset the FiducialFlag object.
FiducialFlag()
Class constructor.
void setFiducialFlag(int fiducial_flag, int nvar)
Set fiduciality bit mask.