]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSSDigits2Digits.C
Added EDEFINE with the flags from Geant4
[u/mrichter/AliRoot.git] / ITS / AliITSSDigits2Digits.C
1 void AliITSSDigits2Digits(const char *filename = "galice.root"){
2     // This macro takes SDigits and produces Digits. No merging is done
3     // and only one galice.root file is used. 
4     // Dynamically link some shared libs 
5     TStopwatch timer;
6
7     if(gAlice){
8         delete gAlice;
9         gAlice = 0;
10     } // end if gAlice
11     cout << "Creating digits from summable digits for the ITS..." << endl;
12     AliRunDigitizer * manager = new AliRunDigitizer(1,1);
13     manager->SetInputStream(0,filename);
14     AliITSDigitizer *dITS  = new AliITSDigitizer(manager);
15     timer.Start();
16     manager->Exec("");
17     timer.Stop(); timer.Print();
18     delete dITS;
19 }