AliPhysics  5eaf189 (5eaf189)
AliPtEtaPidWeights.h
Go to the documentation of this file.
1 #ifndef ALIROOT_ALIPTETAPIDWEIGHTS
2 #define ALIROOT_ALIPTETAPIDWEIGHTS
3 
12 #include "AliBaseMCWeights.h"
13 #include <TArrayI.h>
14 #include <TList.h>
15 class TH2;
16 
25 {
26 public:
48  virtual ~AliPtEtaPidWeights() {}
61  virtual Double_t CalcWeight(Double_t eta,
62  Double_t pt,
63  Double_t phi,
64  Int_t id,
65  Double_t phiR,
66  Double_t b) const;
72  virtual void Init(TList* l);
82  virtual void AddPDGCode(Int_t pdg, TH2* weight);
88  virtual void Print(Option_t* option="") const;
89 private:
90  TArrayI fPdgs; // list of the particles to be weighted
91  TList fWeights; // the weights
92  ClassDef(AliPtEtaPidWeights,1);
93 };
94 
95 #endif
96 // Local Variables:
97 // mode: C++
98 // End:
virtual void Init(TList *l)
Int_t pdg
double Double_t
Definition: External.C:58
virtual Double_t CalcWeight(Double_t eta, Double_t pt, Double_t phi, Int_t id, Double_t phiR, Double_t b) const
int Int_t
Definition: External.C:63
virtual void Print(Option_t *option="") const
virtual void AddPDGCode(Int_t pdg, TH2 *weight)
Definition: External.C:220
const char Option_t
Definition: External.C:48
AliPtEtaPidWeights & operator=(const AliPtEtaPidWeights &o)