AliPhysics  86c65ee (86c65ee)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ProcessPythia.C
Go to the documentation of this file.
1 
19 void Short(Long64_t max,
20  Int_t type,
21  const char* ppEG,
22  UShort_t sNN)
23 {
24  ULong_t runNo = 0;
25  switch (sNN) {
26  case 900: runNo = 118506; break;
27  case 2760: runNo = 197669; break;
28  case 7000: runNo = 126407; break;
29  case 8000: runNo = 192708; break;
30  default:
31  Printf("No run number for sqrt{s}=%dGeV", sNN);
32  return;
33  }
34  TString pp(Form("%s_%09lu_100k.root", ppEG, runNo));
35  TString data(Form("ppExport/pp_%04hu_%s_coarse_empirical.root", sNN,
36  (type==0 ? "INEL" : "V0AND")));
37  TString tit(Form("pp %s @ #sqrt{#it{s}}=",(type==0 ? "INEL" : "NSD")));
38  if (sNN < 1000) tit.Append(Form("%dGeV", sNN));
39  else if ((sNN % 1000) == 0) tit.Append(Form("%dTeV",sNN/1000));
40  else tit.Append(Form("%.2fTeV",Float_t(sNN)/1000));
41 
42  ProcessFast(max, type, pp, data, tit);
43 }
44 
45 void PythiaMult(Long64_t max=-1) {
46  ProcessFast(max,2,"Pythia_000126407_PP_07000_100k.root",0,"Pythia_by_mult");
47 }
48 void Pythia0900(bool inel, Long64_t max=-1) { Short(max,inel,"Pythia", 900);}
49 void Pythia2760(bool inel, Long64_t max=-1) { Short(max,inel,"Pythia",2760);}
50 void Pythia7000(bool inel, Long64_t max=-1) { Short(max,inel,"Pythia",7000);}
51 void Pythia8000(bool inel, Long64_t max=-1) { Short(max,inel,"Pythia",8000);}
52 
53 void Pythia()
54 {
55  gROOT->LoadMacro("$ALICE_PHYSICS/PWGLF/FORWARD/analysis2/sim/ProcessFast.C+");
56  Pythia0900(true);
57  Pythia2760(true);
58  Pythia7000(true);
59  Pythia8000(true);
60  Pythia0900(false);
61  Pythia2760(false);
62  Pythia7000(false);
63  Pythia8000(false);
64 
65 }
66 
67 //
68 // EOF
69 //
70 
Bool_t ProcessFast(const char *url, const char *out, const char *opt="g")
Definition: ProcessEPos.C:11
long long Long64_t
Definition: External.C:43
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
void Short(Long64_t max, Int_t type, const char *ppEG, UShort_t sNN)
Definition: ProcessPythia.C:19
unsigned long ULong_t
Definition: External.C:38
void Pythia7000(bool inel, Long64_t max=-1)
Definition: ProcessPythia.C:50
void Pythia()
Definition: ProcessPythia.C:53
unsigned short UShort_t
Definition: External.C:28
void PythiaMult(Long64_t max=-1)
Definition: ProcessPythia.C:45
void Pythia8000(bool inel, Long64_t max=-1)
Definition: ProcessPythia.C:51
void Pythia0900(bool inel, Long64_t max=-1)
Definition: ProcessPythia.C:48
void Pythia2760(bool inel, Long64_t max=-1)
Definition: ProcessPythia.C:49