}
//______________________________________________________________________________
AliHFAfterBurner::~AliHFAfterBurner(){
-
+ // destructor
}
//______________________________________________________________________________
Double_t AliHFAfterBurner::GetNewAngle(AliAODRecoDecayHF *d,TClonesArray *mcArray){
+ // modify the phi angle of teh tracks
Int_t lab=-1;
Int_t *pdgdaughters;
Int_t pdgmother=0;
}
//______________________________________________________________________________
Double_t AliHFAfterBurner::GetPhi(Double_t phi,Float_t v2){
+ // modifies the phi angle to after-burn the given v2
Double_t evplane = fEventPlane;
if(fUseNewton){
return NewtonMethodv2(phi,v2);
}
//______________________________________________________________________________
Double_t AliHFAfterBurner::NewtonMethodv2(Double_t phi,Double_t v2,Double_t phi0){
+ // modifies the phi angle to after-burn the given v2 using newton method
Double_t eventplane = fEventPlane;
Double_t phi1 = phi-(phi+v2*TMath::Sin(2.*(phi-eventplane))-phi0)/(1.+2.*v2*TMath::Cos(2.*(phi-eventplane)));
if(TMath::Abs(phi/phi1-1.)<fPrecisionNewton){
}
//______________________________________________________________________________
void AliHFAfterBurner::SetMCv2(Float_t v2sig,Float_t v2bkg){
+ // SetMCv2
if(v2sig>=0)fSigv2=v2sig;
if(v2bkg>=0)fBkgv2=v2bkg;
}
}
//________________________________________________________________________
Float_t AliHFAfterBurner::GetPhi02Pi(Float_t phi){
+ // get phi angle in the range 0 - 2*pi
Float_t result=phi;
while(result<0){
result=result+2.*TMath::Pi();
}
//________________________________________________________________________
void AliHFAfterBurner::SetDecChannel(Int_t decch){
+ // set the decay channel
if(decch>2){
AliWarning("Invalid decay channel");
return;
void SetEventPlane();
void SetEventPlaneMethod(Int_t method);
- Bool_t GetIsSignal(){return fSignal;}
- Double_t GetEventPlane(){return fEventPlane;}
+ Bool_t GetIsSignal() const {return fSignal;}
+ Double_t GetEventPlane() const {return fEventPlane;}
private:
AliHFAfterBurner(const AliHFAfterBurner &source);
AliHFAfterBurner& operator=(const AliHFAfterBurner& source);