A very short macro showing how to do SDigits to Digits using
authornilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 20 Mar 2002 07:55:09 +0000 (07:55 +0000)
committernilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 20 Mar 2002 07:55:09 +0000 (07:55 +0000)
merging/digitization class.

ITS/AliITSsDigits2Digits.C [new file with mode: 0644]

diff --git a/ITS/AliITSsDigits2Digits.C b/ITS/AliITSsDigits2Digits.C
new file mode 100644 (file)
index 0000000..8b4643b
--- /dev/null
@@ -0,0 +1,17 @@
+void AliITSsDigits2Digits(const char *filename = "galice.root"){
+    // This macro takes SDigits and produces Digits. No merging is done
+    // and only one galice.root file is used. 
+    // Dynamically link some shared libs 
+    TStopwatch timer;
+
+    if(gAlice){
+       delete gAlice;
+       gAlice = 0;
+    } // end if gAlice
+    AliRunDigitizer * manager = new AliRunDigitizer(1,1);
+    manager->SetInputStream(0,filename);
+    AliITSDigitizer *dITS  = new AliITSDigitizer(manager);
+    timer.Start();
+    manager->Exec("");
+    timer.Stop(); timer.Print();
+}