1 #ifndef ALILOCALRHOPARAMETER_H 2 #define ALILOCALRHOPARAMETER_H 19 return (denom <= 0.) ? GetVal() : n*(
fLocalRho->Integral(phi-r, phi+r)/denom);
34 if (denom < 0)
return GetVal();
35 Double_t sum(0), sumWeight(0), weight(0);
37 if(gran%2 != 0) gran++;
39 gran = TMath::Nint(gran);
40 for(
Int_t i(0); i < gran; i++) {
43 weight = TMath::Sqrt(r*r-((r/(
double)gran)*(
double)i)*(r/(
double)gran)*(
double)i);
45 sum += TMath::Abs(weight *
fLocalRho->Integral(phi + (r/(
double)gran)*(
double)(i), phi + (r/(
double)gran)*(
double)(i+1)));
46 sum += TMath::Abs(weight *
fLocalRho->Integral(phi - (r/(
double)gran)*(
double)(i), phi - (r/(
double)gran)*(
double)(i+1)));
48 if(sumWeight>0) sum/=sumWeight;
50 return (
double)gran*n*(sum/denom);
56 return intError*absConst;
Double_t GetLocalVal(Double_t phi, Double_t r, Double_t n) const
Double_t GetLocalVal(Double_t phi, Double_t r) const
TF1 * GetLocalRho() const
Double_t GetLocalValInPhi(Double_t phi, Double_t r, Double_t n) const
Double_t GetLocalValInEtaPhi(Double_t phi, Double_t r, Double_t n, Int_t gran=20) const
Double_t GetLocalUncertainty(Double_t phi, Double_t r, Double_t n) const
Double_t GetLocalUncertainty(Double_t phi, Double_t r) const
AliLocalRhoParameter & operator=(const AliLocalRhoParameter &)