12 float BaseEtaBin = 0.087;
14 for (
int it = 1; it <= 20; it++)
15 theBounds[it] = it * BaseEtaBin;
18 theBounds[23] = 2.043;
19 theBounds[24] = 2.172;
20 theBounds[25] = 2.322;
25 theBounds[30] = 3.305;
27 theBounds[32] = 3.655;
32 for (
int num = 1;
num <= NumberOfTowers;
num++) {
33 if (fabs(
eta) > theBounds[
num - 1]) {
39 if (fabs(
eta) >= theBounds[NumberOfTowers - 1])
46 for (
unsigned int i = 1;
i <= EtaBounds::NumberOfTowers;
i++)
56 int itow1 =
abs(etabounds.towerFromEta(l1.
eta));
57 int itow2 =
abs(etabounds.towerFromEta(l2.
eta));
60 if (itow1 == itow2 && l1.
cone < l2.
cone)
70 cout <<
"Cannot open input file " <<
infile << endl;
79 if (strcmp(
tag,
"ver:") == 0) {
80 cout <<
" NominalEfficiencyThresholds: " <<
infile <<
" comment: " <<
buffer << endl;
83 if (strcmp(
tag,
"loc:") == 0) {
87 if (strcmp(
tag,
"thr:") == 0) {
88 eb.eff_previous = eb.eff;
89 sscanf(
buffer,
"%*s %f %f", &eb.eff, &thr_val);
94 cout <<
"... done" << endl;
113 MapType::iterator ploc;
115 cout <<
"eta: " << (*ploc).first.eta <<
" icone: " << (*ploc).first.cone << endl;
116 ThresholdConstituents::iterator it;
117 for (it = (*ploc).second.begin(); it != (*ploc).second.end(); it++) {
118 cout <<
" eff: " << (*it).first.eff <<
" eff_previous: " << (*it).first.eff_previous
119 <<
" cut value: " << (*it).second << endl;
127 cout <<
"NominalEfficiencyThresholds: Problem:can't find location in the map :( " <<
location.eta <<
" "
128 <<
location.cone <<
" " << eff_thr << endl;
134 ThresholdConstituents::const_iterator it = (*ploc).second.find(eb);
135 if (it == (*ploc).second.end()) {
136 cout <<
"NominalEfficiencyThresholds: Problem:can't find threshold in the map :(" << endl;