AliPhysics  ec7afe5 (ec7afe5)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliSimplePidWeights.h
Go to the documentation of this file.
1 #ifndef ALIROOT_ALISIMPLEPIDWEIGHTS
2 #define ALIROOT_ALISIMPLEPIDWEIGHTS
3 
12 #include "AliBaseMCWeights.h"
13 #include <TArrayI.h>
14 #include <TArrayD.h>
15 
24 {
25 public:
47  virtual ~AliSimplePidWeights() {}
60  virtual Double_t CalcWeight(Double_t eta,
61  Double_t pt,
62  Double_t phi,
63  Int_t id,
64  Double_t phiR,
65  Double_t b) const;
71  virtual void Init(TList* l);
79  virtual void AddPDGCode(Int_t pdg, Double_t weight, Bool_t anti=false);
85  virtual void Print(Option_t* option="") const;
86 private:
87  TArrayI fPdgs; // list of the particles to be weighted
88  TArrayD fWeights; // the weights
90 };
91 
92 #endif
93 // Local Variables:
94 // mode: C++
95 // End:
Int_t pdg
double Double_t
Definition: External.C:58
AliSimplePidWeights & operator=(const AliSimplePidWeights &o)
virtual Double_t CalcWeight(Double_t eta, Double_t pt, Double_t phi, Int_t id, Double_t phiR, Double_t b) const
virtual void Print(Option_t *option="") const
int Int_t
Definition: External.C:63
ClassDef(AliSimplePidWeights, 1)
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
virtual void AddPDGCode(Int_t pdg, Double_t weight, Bool_t anti=false)
virtual void Init(TList *l)