1 #ifndef ALIANALYSISTASKAFTERBURNER_H
2 #define ALIANALYSISTASKAFTERBURNER_H
4 /* Copyright(c) 1998-2010, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 //*************************************************************************
8 // AliAnalysisTaskSEHFv2 gives the needed tools for the D
10 // Authors: Giacomo Ortona, ortona@to.infn.it,
12 //*************************************************************************
21 class AliHFAfterBurner : public TObject
26 AliHFAfterBurner(Int_t decChannel);
28 virtual ~AliHFAfterBurner();
30 Double_t GetNewAngle(AliAODRecoDecayHF *d,TClonesArray *arrayMC);
31 Double_t NewtonMethodv2(Double_t phi,Double_t v2,Double_t phi0);
32 Double_t NewtonMethodv2(Double_t phi,Double_t v2){
33 return NewtonMethodv2(phi,v2,phi);}
34 void SetMCv2(Float_t v2sig,Float_t v2bkg);
35 Int_t CheckOrigin(const AliAODMCParticle* mcPart,TClonesArray *arrayMC) const;
36 Double_t GetPhi(Double_t phi,Float_t v2);
37 Float_t GetPhi02Pi(Float_t phi);
38 void SetPrecision(Bool_t prec){fPrecisionNewton=prec;}
39 void SetUseNewton(Bool_t newt){fUseNewton=newt;}
40 void SetDecChannel(Int_t decch);
41 void SetEventPlane(Double_t ep){fEventPlane=ep;}
43 void SetEventPlaneMethod(Int_t method);
45 Bool_t GetIsSignal() const {return fSignal;}
46 Double_t GetEventPlane() const {return fEventPlane;}
48 AliHFAfterBurner(const AliHFAfterBurner &source);
49 AliHFAfterBurner& operator=(const AliHFAfterBurner& source);
51 Float_t fSigv2; //v2 for signal
52 Float_t fBkgv2; //v2 for background
53 Bool_t fUseNewton; //Switch between Newton and fast methods
54 Double_t fPrecisionNewton;//precision to stop Newton method
55 Int_t fDecChannel; //D2H decay channel
56 Bool_t fSignal; //kTRUE if candidate is signal
57 Double_t fEventPlane; //event plane
58 Int_t fMethodEP; //switch between different EP method calculation
60 ClassDef(AliHFAfterBurner,1); // AliFlowAB class