1 #ifndef RecoEcal_EgammaCoreTools_EcalClusterTools_h
2 #define RecoEcal_EgammaCoreTools_EcalClusterTools_h
147 static double f00(
double r) {
return 1; }
148 static double f11(
double r) {
return r; }
149 static double f20(
double r) {
return 2.0*r*r-1.0; }
150 static double f22(
double r) {
return r*
r; }
151 static double f31(
double r) {
return 3.0*r*r*r - 2.0*
r; }
152 static double f33(
double r) {
return r*r*
r; }
153 static double f40(
double r) {
return 6.0*r*r*r*r-6.0*r*r+1.0; }
154 static double f42(
double r) {
return 4.0*r*r*r*r-3.0*r*
r; }
155 static double f44(
double r) {
return r*r*r*
r; }
156 static double f51(
double r) {
return 10.0*
pow(r,5)-12.0*
pow(r,3)+3.0*
r; }
157 static double f53(
double r) {
return 5.0*
pow(r,5) - 4.0*
pow(r,3); }
158 static double f55(
double r) {
return pow(r,5); }
166 for (
int i = 2;
i <=
n; ++
i) res *=
i;
180 static int deltaIEta(
int seed_ieta,
int rh_ieta);
181 static int deltaIPhi(
int seed_iphi,
int rh_iphi);
182 static std::vector<int>
getSeedPosition(std::vector<const EcalRecHit*>RH_ptrs);
183 static float getSumEnergy(std::vector<const EcalRecHit*>RH_ptrs);
184 static float computeWeight(
float eRH,
float energyTotal,
int weightedPositionMethod);
XYZVectorD XYZVector
spatial vector with cartesian internal representation
ESHandle< TrackerGeometry > geometry
Power< A, B >::type pow(const A &a, const B &b)