return parList;
}
-//____________________________________________________________________________
+//____________________________________
void AliIsolationCut::InitParameters()
{
//Initialize the parameters of the analysis.
}
return ;
}
+
//Check if there is any particle inside cone with pt larger than fPtThreshold
- rad = TMath::Sqrt((eta-etaC)*(eta-etaC)+ (phi-phiC)*(phi-phiC));
+
+ rad = Radius(etaC, phiC, eta, phi);
if(rad < fConeSize){
if(bFillAOD) {
}
//Check if there is any particle inside cone with pt larger than fPtThreshold
- rad = TMath::Sqrt((eta-etaC)*(eta-etaC)+ (phi-phiC)*(phi-phiC));
+
+ rad = Radius(etaC, phiC, eta, phi);
+
if(rad < fConeSize){
if(bFillAOD) {
nclusterrefs++;
printf(" \n") ;
}
+
+//___________________________________________________________________________
+Float_t AliIsolationCut::Radius(const Float_t etaC, const Float_t phiC,
+ const Float_t eta , const Float_t phi) const
+{
+ // Calculate the distance to trigger from any particle
+
+ Float_t dEta = etaC-eta;
+ Float_t dPhi = phiC-phi;
+
+ if(TMath::Abs(dPhi) >= TMath::Pi())
+ dPhi = TMath::TwoPi()-TMath::Abs(dPhi);
+
+ return TMath::Sqrt( dEta*dEta + dPhi*dPhi );
+
+}
+
+
+