macro to convert Raw to Digits
authorbnandi <bnandi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Apr 2007 10:14:32 +0000 (10:14 +0000)
committerbnandi <bnandi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Apr 2007 10:14:32 +0000 (10:14 +0000)
PMD/AliPMDRaw2Digits.C [new file with mode: 0644]

diff --git a/PMD/AliPMDRaw2Digits.C b/PMD/AliPMDRaw2Digits.C
new file mode 100644 (file)
index 0000000..80b61aa
--- /dev/null
@@ -0,0 +1,35 @@
+// ----------------------------------------------------//
+//                                                     //
+//    This macro does Raw to SDigits                   //
+//                                                     //
+// ----------------------------------------------------//
+
+
+void AliPMDRaw2Digits(Int_t nevt = 1) 
+{
+  TStopwatch timer;
+  timer.Start();
+
+  // Open the AliRoot file
+
+  AliRunLoader *runLoader = AliRunLoader::Open("galice.root");
+  if (!runLoader)
+    {
+      cerr<<"Can't load RunLoader"<<endl;
+      return 1;
+    }
+
+  AliPMDRawToSDigits pmdr2sd;
+
+  Int_t ievt = 0;
+
+  for (ievt = 0; ievt < nevt; ievt++)
+    {
+      runLoader->GetEvent(ievt);
+      AliRawReaderFile reader(ievt);
+      pmdr2sd.Raw2Digits(runLoader, &reader);
+    }
+
+  timer.Stop();
+  timer.Print();
+}