13 const std::string&
name,
14 const IInterface*
parent) :
17 declareInterface<ICaloAffectedTool>(
this);
28 return StatusCode::SUCCESS;
37 if(!vAff)
return false;
39 static const float epsilon=1
e-6;
43 std::vector<CaloAffectedRegionInfo>::const_iterator reg1 = vAff->begin();
44 std::vector<CaloAffectedRegionInfo>::const_iterator reg2 = vAff->end();
45 for (;reg1 != reg2; ++reg1) {
50 if (problemType>=0 && (problem != problemType))
continue;
55 if ((layer_max>=layer_min) && (layermax < layer_min || layermin > layer_max))
continue;
71 if ((phimax >= phimin) && (phi2 >= phi1) && (phi2<phimin || phi1>phimax))
continue;
72 if ((phimax >= phimin) && (phi2 <= phi1) && (phi1>phimax && phi2<phimin))
continue;
73 if ((phimax <= phimin) && (phi2 >= phi1) && (phi1>phimax && phi2<phimin))
continue;
89 if(!vAff)
return false;
93 static const float epsilon=1
e-6;
99 std::vector<CaloAffectedRegionInfo>::const_iterator reg1 = vAff->begin();
100 std::vector<CaloAffectedRegionInfo>::const_iterator reg2 = vAff->end();
101 for (;reg1 != reg2; ++reg1) {
105 if (problemType>=0 && (problem != problemType))
continue;
112 float eta =
p->eta();
117 float phi =
p->phi();
121 if ((phimax >= phimin) && (phi2 >= phi1) && (phi2<phimin || phi1>phimax))
continue;
122 if ((phimax >= phimin) && (phi2 <= phi1) && (phi1>phimax && phi2<phimin))
continue;
123 if ((phimax <= phimin) && (phi2 >= phi1) && (phi1>phimax && phi2<phimin))
continue;
127 for (
int ilayer=layermin;ilayer<=layermax;ilayer++) {
128 layer_list.push_back(ilayer);
129 problem_list.push_back(problem);