AliPhysics  1168478 (1168478)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliForwardMultiplicityDistribution.cxx
Go to the documentation of this file.
1 
11 #include <TH1D.h>
13 
15 #if 0
16 ; // This is for Emacs - do not delete
17 #endif
18 //______________________________________________________________________
21 {
22  return new Bin(l, h);
23 }
24 //_____________________________________________________________________
25 Bool_t
27 {
29 }
30 
31 //=====================================================================
33  Int_t max)
34 {
35  //
36  // Define eta bin output histograms
37  //
39  TList* out = static_cast<TList*>(cont->FindObject(GetName()));
40  if (!out) return;
41  fHistPileUp = new TH1D("multPileUp", GetTitle(), max, -0.5, max-.5);
42  out->Add(fHistPileUp);
43 }
44 
45 //_____________________________________________________________________
47 Bin::Process(TH1D* dndetaForward,
48  TH1D* dndetaCentral,
49  TH1D* normForward,
50  TH1D* normCentral,
51  TH1D* mc,
52  Double_t ipZ,
53  Bool_t pileup,
54  Bool_t selectedTrigger,
55  Bool_t isMCNSD,
56  Bool_t isESDNSD,
57  const AliAODEvent& aodevent,
58  Double_t minIPz,
59  Double_t maxIPz)
60 {
61  //
62  // Process a single eta bin
63  //
64  if (!selectedTrigger) return;
65  if (ipZ < minIPz || ipZ > maxIPz) return;
66 
67  Double_t mcMult, mcErr, statErr, sysErr;
68  Double_t mult = CalcMult(dndetaForward,
69  dndetaCentral,
70  normForward,
71  normCentral,
72  mc,
73  ipZ,
74  statErr,
75  sysErr,
76  mcMult,
77  mcErr);
78  if (pileup) fHistPileUp->Fill(mult);
79  else fHist ->Fill(mult);
80  if (mc) fHistMC ->Fill(mcMult);
81 }
82 
83 
84 
85 //_____________________________________________________________________
86 //
87 //
88 // EOF
virtual void Process(TH1D *dndetaForward, TH1D *dndetaCentral, TH1D *normForward, TH1D *normCentral, TH1D *mc, Double_t ipZ, Bool_t pileup, Bool_t selectedTrigger, Bool_t isMCNSDm, Bool_t isESDNSD, const AliAODEvent &aodevent, Double_t minIPz, Double_t maxIPz)
virtual Bool_t CheckEvent(const AliAODForwardMult &forward)
double Double_t
Definition: External.C:58
AliBaseMultTask::Bin * MakeBin(Double_t etaLow, Double_t etaHigh)
int Int_t
Definition: External.C:63
virtual void CreateOutputObjects(TList *cont, Int_t max)
Definition: External.C:212
virtual Bool_t CheckEvent(const AliAODForwardMult &fwd)
Task to do the multiplicity distibution.
const char * fwd
virtual void CreateOutputObjects(TList *cont, Int_t max)
bool Bool_t
Definition: External.C:53
ClassImp(AliForwardMultiplicityDistribution) AliBaseMultTask