1 #if !defined(__CINT__) || defined(__MAKECINT__)
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"
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");
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.
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;
38 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSsd2d.C");
39 if(AliITSsd2d(hf,hf,"",opt)!=0){
40 cout << "Error AliITSsd2d failed" << endl;
44 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSh2d.C");
45 if(AliITSh2d(hf,hf,opt)!=0){
46 cout << "Error AliITSh2d failed" << endl;
50 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSd2r.C");
51 if(AliITSd2r(hf,hf,opt)!=0){
52 cout << "Error AliITSd2r failed" << endl;