Compliance to AliSimulation framework
authorcheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 11 Jun 2004 14:09:44 +0000 (14:09 +0000)
committercheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 11 Jun 2004 14:09:44 +0000 (14:09 +0000)
VZERO/VZEROHits2Digits.C

index 20410900e99018d6d0a8fe46795dd6f40f7e0b8c..84dc177cdb126a7a26e18e85b02a4d5b579dbfd3 100644 (file)
@@ -14,6 +14,7 @@
 #include "TBranch.h"
 #include "TClonesArray.h"
 #include "TStopwatch.h"
+//#include "AliRunDigitizer.h"
 #include "AliVZERODigitizer.h"
 
 void VZEROHits2Digits() 
@@ -22,14 +23,15 @@ void VZEROHits2Digits()
   // Input file name
   Char_t *alifile = "galice.root";   
 
+  // Create the run digitizer 
+  AliRunDigitizer* manager = new AliRunDigitizer(1, 1);
+  manager->SetInputStream(0, alifile);
+  manager->SetOutputFile("H2Dfile");
+
   // Create the VZERO digitizer 
-  AliVZERODigitizer *manager = new AliVZERODigitizer();
+  new AliVZERODigitizer(manager);
 
-  // Open the AliRoot file
-  manager->OpengAliceFile(alifile);
-                                                   
   // Create the digits
-
-  manager->Exec();
+  manager->Exec("");
 
 }