Macro to launch digitization
authorcheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Mar 2004 12:48:38 +0000 (12:48 +0000)
committercheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Mar 2004 12:48:38 +0000 (12:48 +0000)
VZERO/VZEROHits2Digits.C [new file with mode: 0644]

diff --git a/VZERO/VZEROHits2Digits.C b/VZERO/VZEROHits2Digits.C
new file mode 100644 (file)
index 0000000..2041090
--- /dev/null
@@ -0,0 +1,35 @@
+// ----------------------------------------------------//
+//                                                     //
+//       This macro does Hits to Digits                //
+//                                                     //
+// ----------------------------------------------------//
+
+#include <stdlib.h>
+#include "Riostream.h"
+#include "TROOT.h"
+#include "TFile.h"
+#include "TNetFile.h"
+#include "TRandom.h"
+#include "TTree.h"
+#include "TBranch.h"
+#include "TClonesArray.h"
+#include "TStopwatch.h"
+#include "AliVZERODigitizer.h"
+
+void VZEROHits2Digits() 
+{
+   
+  // Input file name
+  Char_t *alifile = "galice.root";   
+
+  // Create the VZERO digitizer 
+  AliVZERODigitizer *manager = new AliVZERODigitizer();
+
+  // Open the AliRoot file
+  manager->OpengAliceFile(alifile);
+                                                   
+  // Create the digits
+
+  manager->Exec();
+
+}