AliPhysics  1909eaa (1909eaa)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AddTaskMultDists.C
Go to the documentation of this file.
1 
29 AddTaskMultDists(const char* trig = "V0AND",
30  Double_t vzMin = -4,
31  Double_t vzMax = 4,
32  Int_t lowCent = 0,
33  Int_t highCent = 0,
34  Int_t nBins = 400)
35 {
36  // Make our object. 2nd argumenent is absolute max Eta
37  // 3rd argument is absolute max Vz
40  // Set the Vertex Range to Use
41  task->SetIpZRange(vzMin, vzMax);
42  // Set the Trigger Mask to Use (INEL, NSD, ...)
43  task->SetTriggerMask(trig);
44  // Set the Centrality limits
45  task->SetCentrality(lowCent, highCent);
46  // Set the Number of Bins
47  task->SetNBins(nBins);
48 
49  //Add Full eta-ranges
50  task->AddBin(-3.4,5.1);
51 
52  //Add Symmetric eta bins.
53  Double_t limits[] = { 3.4, 3.0, 2.5, 2.4, 2.0, 1.5, 1.4, 1.0, 0.5, 0. };
54  Double_t* limit = limits;
55  while ((*limit) > 0.1) {
56  task->AddBin(-(*limit), +(*limit));
57  // task->AddBin(0,+(*limit));
58  // task->AddBin(0,-(*limit));
59  limit++;
60  }
61  // task->AddBin(0,5.0);
62  // task->AddBin(0,4.5);
63  // task->AddBin(0,4.0);
64  // task->AddBin(0,3.5);
65 
66  // Add 0.5 eta intervals
67  // for (Double_t l = -3; l < 5; l += 0.5) task->AddBin(l, l+.5);
68 
69  // Add 0.20 eta intervals
70  // for (Double_t l = -3; l < 5; l += 0.2) task->AddBin(l, l+.2);
71 
72  task->Connect();
73  return task;
74 }
75 
76 
77 //________________________________________________________________________
78 //
79 // EOF
80 //
double Double_t
Definition: External.C:58
void SetTriggerMask(UInt_t mask)
int Int_t
Definition: External.C:63
AliAnalysisTask * AddTaskMultDists(const char *trig="V0AND", Double_t vzMin=-4, Double_t vzMax=4, Int_t lowCent=0, Int_t highCent=0, Int_t nBins=400)
virtual Bool_t Connect(const char *sumFile=0, const char *resFile=0)
void AddBin(Double_t etaLow, Double_t etaHigh)