Correction of additional compilation errors from the first compilation trial.
[u/mrichter/AliRoot.git] / VZERO / VZEROHits2Digits.C
1 // ----------------------------------------------------//
2 //                                                     //
3 //       This macro does Hits to Digits                //
4 //                                                     //
5 // ----------------------------------------------------//
6
7 #include <stdlib.h>
8 #include "Riostream.h"
9 #include "TROOT.h"
10 #include "TFile.h"
11 #include "TNetFile.h"
12 #include "TRandom.h"
13 #include "TTree.h"
14 #include "TBranch.h"
15 #include "TClonesArray.h"
16 #include "TStopwatch.h"
17 #include "AliRunDigitizer.h"
18 #include "AliVZERODigitizer.h"
19
20 void VZEROHits2Digits() 
21 {
22    
23   // Input file name
24   Char_t *alifile = "galice.root";   
25
26   // Create the run digitizer 
27   AliRunDigitizer* manager = new AliRunDigitizer(1, 1);
28   manager->SetInputStream(0, alifile);
29   manager->SetOutputFile("H2Dfile");
30
31   // Create the VZERO digitizer 
32   new AliVZERODigitizer(manager);
33
34   // Create the digits
35   manager->Exec("");
36
37 }