7std::ostream& operator<<(std::ostream& o,
const FiducialFlag& c) {
8 return o <<
"FiducialFlag { " <<
"fiducialFlag: " << c.fiducial_flag_ <<
", "
9 <<
"isFiducial: " << c.is_fiducial_ <<
", "
10 <<
"hasEcalHit: " << c.has_ecal_hit_ <<
", "
11 <<
"hasHcalHit: " << c.has_hcal_hit_ <<
", "
12 <<
"hasMinTrackerHits: " << c.has_min_tracker_hits_ <<
", "
13 <<
"hasMinEnergy: " << c.has_min_energy_ <<
" }";
15 for (
int i = 0; i < c.variables_.GetSize(); ++i) {
16 std::cout <<
"Element " << i <<
" : " << c.variables_[i] << std::endl;
23 has_ecal_hit_ =
false;
24 has_hcal_hit_ =
false;
25 has_min_tracker_hits_ =
false;
26 has_min_energy_ =
false;
28 for (
int i = 0; i < variables_.GetSize(); ++i) {
34 fiducial_flag_ = fiducial_flag;
36 if (nvar > variables_.GetSize()) {
42 if (element >= 0 && element < variables_.GetSize()) {
43 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 setAlgoVar(int element, double value)
Set an algorithm variable.
void clear()
Reset the FiducialFlag object.
void setFiducialFlag(int fiducial_flag, int nvar)
Set fiduciality bit mask.