|
ATLAS Offline Software
|
Go to the documentation of this file.
23 #define LOG std::cout << name() << ": "
49 p_MinET1 = parameter(
"MinET1").value();
50 p_MinET2 = parameter(
"MinET2").value();
51 p_EtaMin = parameter(
"EtaMin").value();
52 p_EtaMax = parameter(
"EtaMax").value();
53 p_HT = parameter(
"HT").value();
60 for(
int i=0;
i<2; ++
i) {
61 p_Ratio2[
i] = parameter(
"Ratio2",
i).value();
70 const std::vector<TCS::TOBArray *> &
output,
80 const std::vector<TCS::TOBArray *> &
output,
88 unsigned int sumET = 0;
98 if(
parType_t(std::abs(tob->eta())) > p_EtaMax )
continue;
99 if(
parType_t(std::abs(tob->eta())) < p_EtaMin )
continue;
100 if( tob->Et() <= p_MinET2 )
continue;
107 for(
unsigned int i=0;
i<numberOutputBits(); ++
i) {
109 bool accept = objC!=0 &&
met.Et() > p_MinET1 && 10*(
met.Et()*
met.Et()) >= p_Ratio2[
i]*sumET;
116 TRG_MSG_DEBUG(
"Decision " <<
i <<
": " << (
accept?
"pass":
"fail") <<
" HT = " << sumET <<
" XE = " <<
met.Et() );
StatusCode accept(const xAOD::Muon *mu)
static GenericTOB * createOnHeap(const GenericTOB &)
void setBit(unsigned int index, bool value)
virtual StatusCode process(const std::vector< TCS::TOBArray const * > &input, const std::vector< TCS::TOBArray * > &output, Decision &decison)
void defineParameter(const std::string &name, TCS::parType_t value)
virtual StatusCode processBitCorrect(const std::vector< TCS::TOBArray const * > &input, const std::vector< TCS::TOBArray * > &output, Decision &decison)
#define TCS_EXCEPTION(MSG)
virtual StatusCode initialize()
#define REGISTER_ALG_TCS(CLASS)
Ratio2(const std::string &name)
void setNumberOutputBits(unsigned int numberOutputBits)