44 std::string hname_accept =
"EnergyThreshold_accept_EtaPt_"+
m_threshold->name();
47 hname_accept =
"EnergyThreshold_accept_counts_"+
m_threshold->name();
76 jxe != jXEArray.
end();
79 bool passed = (*jxe)->Et2() > std::pow(jXEThr.thrValue100MeV(), 2);
89 count.setSizeCount(counting);
104 jte != jTEArray.
end();
107 bool passed = (*jte)->sumEt() > jTEThr.thrValue100MeV();
117 count.setSizeCount(counting);
132 gxe != gXEArray.
end();
135 bool passed = (*gxe)->Et2() > std::pow(gXEThr.thrValue100MeV(), 2);
145 count.setSizeCount(counting);
160 gte != gTEArray.
end();
163 bool passed = (*gte)->sumEt() > gTEThr.thrValue100MeV();
173 count.setSizeCount(counting);
177 else { std::cout <<
"WARNING: threshold type " <<
m_threshold->type() <<
" not included in EnergyThreshold algorithm. Skipping." << std::endl; }
#define REGISTER_ALG_TCS(CLASS)
CP::CorrectionCode getThreshold(Int_t &threshold, const std::string &trigger)
const std::string & name() const
void fillHist1D(const std::string &histName, double x)
void bookHistMult(std::vector< std::string > ®Name, const std::string &name, const std::string &title, const std::string &xtitle, const int binx, const int xmin, const int xmax)
std::vector< std::string > m_histAccept
CountingAlg(const std::string &name)
void setNumberOutputBits(unsigned int numberOutputBits)
data_t::const_iterator const_iterator
virtual StatusCode process(const TCS::InputTOBArray &input, Count &count) override final
virtual StatusCode processBitCorrect(const TCS::InputTOBArray &input, Count &count) override final
TrigConf::L1Threshold const * m_threshold
virtual StatusCode initialize() override
EnergyThreshold(const std::string &name)
const std::string process
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string