AliPhysics  e0babb4 (e0babb4)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliBaseMCWeights.cxx
Go to the documentation of this file.
1 
10 #include "AliBaseMCWeights.h"
11 #include "AliMCParticle.h"
12 #include "AliForwardUtil.h"
13 #include <iostream>
14 //____________________________________________________________________
17 {
18  if (&o == this) return *this;
19 
20  TObject::operator=(o);
21 
22  return *this;
23 }
24 //____________________________________________________________________
25 void
27 {}
28 #define PFV(N,VALUE) \
29  do { \
30  AliForwardUtil::PrintName(N); \
31  std::cout << (VALUE) << std::endl; } while(false)
32 
33 //____________________________________________________________________
34 void
36 {
37  PFV("MC weights", "Not specified");
38 }
39 
40 //____________________________________________________________________
42 AliBaseMCWeights::CalcWeight(const AliMCParticle* p,
43  Bool_t,
44  Double_t phiR,
45  Double_t b) const
46 {
47  if (!p) return 1;
48  return CalcWeight(p->Eta(), p->Pt(), p->Phi(), p->PdgCode(), phiR, b);
49 }
50 //____________________________________________________________________
51 //
52 // EOF
53 //
54 
#define PFV(N, VALUE)
double Double_t
Definition: External.C:58
virtual void Print(Option_t *option="") const
AliBaseMCWeights & operator=(const AliBaseMCWeights &o)
Various utilities used in PWGLF/FORWARD.
virtual void Init(TList *l)
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
virtual Double_t CalcWeight(const AliMCParticle *p, Bool_t isPrimary, Double_t phiR, Double_t b) const