]>
Commit | Line | Data |
---|---|---|
57537336 | 1 | #if !defined(__CINT__) || defined(__MAKECINT__) |
2 | ||
3 | #include "iostream.h" | |
4 | #include "TDatime.h" | |
5 | #include "TFile.h" | |
6 | #include "TString.h" | |
7 | #include "../STEER/AliRun.h" | |
8 | #include "../STEER/AliRunDigitizer.h" | |
9 | #include "ITS/AliITSDigitizer.h" | |
10 | #include "ITS/AliITS.h" | |
11 | #include "ITS/AliITSDetType.h" | |
12 | #include "ITS/AliITSresponseSDD.h" | |
13 | #include "TStopwatch.h" | |
14 | ||
15 | Int_t AliITSh2sd(TString hf="galice.root",TString sf="",TString opt=""); | |
16 | Int_t AliITSh2d(TString hf="galice.root",TString df="",TString opt=""); | |
17 | Int_t AliITSsd2d(TString df="galice.root",TString sf1="galice.root", | |
18 | TString sf2="",TString opt="") | |
19 | Int_t AliITSd2r(TString df="galice.root",TString rf="",TString opt=""); | |
20 | void grun(Int_t nevent=1, const char *config="Config.C"); | |
21 | ||
22 | #endif | |
23 | //#define DEBUG | |
24 | ||
25 | ||
26 | Int_t AliITSh2r(TString hf="galice.root",TString opt=""){ | |
27 | // Runs grun to create the file galice.root and then runs the | |
28 | // nessesary files to creat recpoints form that file. | |
29 | ||
30 | gROOT->LoadMacro("$(ALICE_ROOT)/macros/grun.C"); | |
31 | if(!opt.Contains("Nogrun")) grun(1,"Config.C"); | |
32 | if(opt.Contains("SDigit")){ | |
33 | gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSh2sd.C"); | |
34 | if(AliITSh2sd(hf,hf,opt)!=0){ | |
35 | cout << "Error AliITSh2sd failed" << endl; | |
36 | return 1; | |
37 | } // end if | |
38 | gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSsd2d.C"); | |
39 | if(AliITSsd2d(hf,hf,"",opt)!=0){ | |
40 | cout << "Error AliITSsd2d failed" << endl; | |
41 | return 2; | |
42 | } // end if | |
43 | }else{ | |
44 | gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSh2d.C"); | |
45 | if(AliITSh2d(hf,hf,opt)!=0){ | |
46 | cout << "Error AliITSh2d failed" << endl; | |
47 | return 3; | |
48 | } // end if | |
49 | } // end if | |
50 | gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSd2r.C"); | |
51 | if(AliITSd2r(hf,hf,opt)!=0){ | |
52 | cout << "Error AliITSd2r failed" << endl; | |
53 | return 4; | |
54 | } // end if | |
55 | return 0; | |
56 | } |