44 std::string hname_accept =
"EnergyThreshold_accept_EtaPt_"+m_threshold->name();
45 bookHistMult(m_histAccept, hname_accept,
"Mult_"+ m_threshold->name(),
"E_{t} [GeV]", 200, 0, 1000);
47 hname_accept =
"EnergyThreshold_accept_counts_"+m_threshold->name();
48 bookHistMult(m_histAccept, hname_accept,
"Mult_"+m_threshold->name(),
"counts", 15, 0, 15);
65 if (m_threshold->type() ==
"jXE") {
76 jxe != jXEArray.
end();
79 bool passed = (*jxe)->Et2() >
std::pow(jXEThr.thrValue100MeV(), 2);
82 fillHist1D(m_histAccept[0], ((*jxe)->EtDouble()));
86 fillHist1D( m_histAccept[1], counting);
89 count.setSizeCount(counting);
93 else if (m_threshold->type() ==
"jTE") {
104 jte != jTEArray.
end();
107 bool passed = (*jte)->sumEt() > jTEThr.thrValue100MeV();
110 fillHist1D(m_histAccept[0], ((*jte)->sumEtDouble()));
114 fillHist1D( m_histAccept[1], counting);
117 count.setSizeCount(counting);
121 else if (m_threshold->type() ==
"gXE") {
132 gxe != gXEArray.
end();
135 bool passed = (*gxe)->Et2() >
std::pow(gXEThr.thrValue100MeV(), 2);
138 fillHist1D(m_histAccept[0], ((*gxe)->EtDouble()));
142 fillHist1D( m_histAccept[1], counting);
145 count.setSizeCount(counting);
149 else if (m_threshold->type() ==
"gTE") {
160 gte != gTEArray.
end();
163 bool passed = (*gte)->sumEt() > gTEThr.thrValue100MeV();
166 fillHist1D(m_histAccept[0], ((*gte)->sumEtDouble()));
170 fillHist1D( m_histAccept[1], counting);
173 count.setSizeCount(counting);
177 else { std::cout <<
"WARNING: threshold type " << m_threshold->type() <<
" not included in EnergyThreshold algorithm. Skipping." << std::endl; }