AliPhysics  a5cd6b6 (a5cd6b6)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DrawAll.C
Go to the documentation of this file.
1 
2 const char** PPSys() { return x;}
3 UShort_t* PPSNN() { return x;}
4 const char* PPTrg() { return x;}
5 const char* PASys() { return x;}
6 UShort_t* PASNN() { return x;}
7 const char* PATrg() { return x;}
8 const char* APTrg() { const char* x[] = { "CENTV0X", 0 }; return x;}
9 
10 
11 void DrawAll(UShort_t which=1)
12 {
13  const char* fwd = 0;
14  if (gSystem->Getenv("FWD"))
15  fwd = gSystem->Getenv("FWD");
16  else
17  fwd = gSystem->ExpandPathName("$ALICE_PHYSICS/PWGLF/FORWARD/analysis2");
18  gROOT->SetMacroPath(Form("%s/dndeta:%s", fwd, gROOT->GetMacroPath()));
19 
20  if (!gROOT->GetClass("Drawer")) gROOT->LoadMacro("Drawer.C+g");
21 
22  switch(which) {
23  case 1: {
24  const char* s[] = { "pp", 0 };
25  UShort_t e[] = { 900, 2760, 7000, 8000, 0 };
26  const char* t[] = { "INEL", "NSD", 0 };
27  Drawer::DrawAll(s, e, t, 0x1);
28  }
29  break;
30  case 2: {
31  const char* s[] = { "pPb", "Pbp", 0 };
32  UShort_t e[] = { 5023, 0 };
33  const char* t[] = { "CENTZNX", 0 };
34  Drawer::DrawAll(s, e, t, 0x1);
35  }
36  break;
37  case 3: {
38  const char* s[] = { "pPb", "Pbp", 0 };
39  UShort_t e[] = { 5023, 0 };
40  const char* t[] = { "CENTV0X", 0 };
41  Drawer::DrawAll(s, e, t, 0x1);
42  }
43  break;
44  case 4: {
45  const char* s[] = { "Pbp", 0 };
46  UShort_t e[] = { 5023, 0 };
47  const char* t[] = { "CENTV0C", 0 };
48  Drawer::DrawAll(s, e, t, 0x1);
49  }
50  break;
51  case 5: {
52  const char* s[] = { "pPb", "Pbp", 0 };
53  UShort_t e[] = { 5023, 0 };
54  const char* t[] = { "CENTV0M", 0 };
55  Drawer::DrawAll(s, e, t, 0x1);
56  }
57  break;
58  case 6: {
59  const char* s[] = { "pPb", "Pbp", 0 };
60  UShort_t e[] = { 5023, 0 };
61  const char* t[] = { "CENTV0M", "CENTZNX", "CENTV0C", 0 };
62  Drawer::DrawAll(s, e, t, 0x1);
63  }
64  break;
65  }
66 }
void DrawAll(UShort_t which=1)
Definition: DrawAll.C:11
const char * PASys()
Definition: DrawAll.C:5
UShort_t * PASNN()
Definition: DrawAll.C:6
const char * PATrg()
Definition: DrawAll.C:7
TSystem * gSystem
const char ** PPSys()
Definition: DrawAll.C:2
static void DrawAll(const char **syss, UShort_t *sNNs, const char **trgS, UShort_t flags=0x0)
Definition: Drawer.C:1527
UShort_t * PPSNN()
Definition: DrawAll.C:3
const char * APTrg()
Definition: DrawAll.C:8
const char * fwd
unsigned short UShort_t
Definition: External.C:28
const char * PPTrg()
Definition: DrawAll.C:4