1 #ifndef ALIPROTONFEEDDOWNANALYSIS_H
2 #define ALIPROTONFEEDDOWNANALYSIS_H
6 #include "AliCFContainer.h"
20 class AliExternalTrackParam;
23 class AliProtonAnalysisBase;
25 class AliProtonFeedDownAnalysis : public TObject
30 kAll = 0, //without protons reject the secondaries from hadronic inter.
34 kSelectedfromLambda = 4,
37 AliProtonFeedDownAnalysis();
38 //AliProtonFeedDownAnalysis(Int_t nbinsY, Float_t fLowY, Float_t fHighY,Int_t nbinsPt, Float_t fLowPt, Float_t fHighPt);
39 virtual ~AliProtonFeedDownAnalysis();
41 void SetBaseAnalysis(AliProtonAnalysisBase * const baseAnalysis) {fProtonAnalysisBase = baseAnalysis;}
42 AliProtonAnalysisBase *GetProtonAnalysisBaseObject() const {return fProtonAnalysisBase;}
44 void InitAnalysisHistograms(Int_t nbinsY, Float_t fLowY, Float_t fHighY, Int_t nbinsPt, Float_t fLowPt, Float_t fHighPt);
45 void Analyze(AliESDEvent *fESD, const AliESDVertex *vertex,AliStack *stack);
46 void Analyze(AliAODEvent *fAOD);
47 void Analyze(AliStack *stack);
49 AliCFContainer *GetProtonContainer() const {return fProtonContainer;}
50 AliCFContainer *GetAntiProtonContainer() const {return fAntiProtonContainer;}
52 void SetWeightFunction(TF1* weightfunction){fweightfunction=weightfunction;}
53 TF1* GetWeightFunction() const{return fweightfunction;}
54 TH2F* GetLambdaHist() const{return fLambda;}
55 TH2F* GetLambdaweightedHist() const{return fLambdaweighted;}
56 TH2F* GetAntiLambdaHist() const{return fAntiLambda;}
57 TH2F* GetAntiLambdaweightedHist() const{return fAntiLambdaweighted;}
59 AliProtonFeedDownAnalysis(const AliProtonFeedDownAnalysis&); // Not implemented
60 AliProtonFeedDownAnalysis& operator=(const AliProtonFeedDownAnalysis&); // Not implemented
62 AliProtonAnalysisBase *fProtonAnalysisBase;//base analysis object
63 Int_t LambdaIsMother(Int_t numbe, AliStack *stack);
64 Float_t GetWeightforProton(Int_t number, AliStack *stack);
65 Float_t GetWeightforLambda(Float_t pt);
67 Int_t fNBinsY; //number of bins in y or eta
68 Double_t fMinY, fMaxY; //min & max value of y or eta
69 Int_t fNBinsPt; //number of bins in pT
70 Double_t fMinPt, fMaxPt; //min & max value of pT
73 AliCFContainer *fProtonContainer; //container for protons
74 AliCFContainer *fAntiProtonContainer; //container for antiprotons
78 TH2F *fLambdaweighted;
80 TH2F *fAntiLambdaweighted;
82 ClassDef(AliProtonFeedDownAnalysis,2);