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=1e-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;
62 if ((
eta+deta)<etamin || (
eta-deta)>etamax)
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=1e-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();
113 if ((
eta+deta)<etamin || (
eta-deta)>etamax)
continue;
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);
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
std::vector< CaloAffectedRegionInfo > CaloAffectedRegionInfoVec
CaloPhiRange class declaration.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
float get_eta_max() const
get eta max of region
float get_phi_min() const
get phi min of region
int get_layer_max() const
get layer max of region
float get_eta_min() const
get eta min of region
int get_problem() const
get problem type
int get_layer_min() const
get layer min of region
float get_phi_max() const
get phi max of region
static double fix(double phi)
Class providing the definition of the 4-vector interface.