macro to run event merging
authorbnandi <bnandi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 Jan 2004 04:32:44 +0000 (04:32 +0000)
committerbnandi <bnandi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 Jan 2004 04:32:44 +0000 (04:32 +0000)
PMD/AliPMDmerge.C [new file with mode: 0644]

diff --git a/PMD/AliPMDmerge.C b/PMD/AliPMDmerge.C
new file mode 100644 (file)
index 0000000..28a160c
--- /dev/null
@@ -0,0 +1,11 @@
+void AliPMDmerge()
+{
+  // This macro is for event merging
+  AliRunDigitizer * manager = new AliRunDigitizer(2,1);
+  manager->SetInputStream(0,"run1/galice.root");
+  manager->SetInputStream(1,"run2/bg.root");
+  manager->SetOutputFile("digits.root");
+  AliPMDDigitizer *dpmd  = new AliPMDDigitizer(manager);
+  manager->SetNrOfEventsToWrite(1);
+  manager->Exec("");
+}