]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
read raw data
authorbnandi <bnandi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 17 Jun 2004 09:15:46 +0000 (09:15 +0000)
committerbnandi <bnandi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 17 Jun 2004 09:15:46 +0000 (09:15 +0000)
PMD/AliPMDRawDataRead.C [new file with mode: 0644]

diff --git a/PMD/AliPMDRawDataRead.C b/PMD/AliPMDRawDataRead.C
new file mode 100644 (file)
index 0000000..00d8591
--- /dev/null
@@ -0,0 +1,30 @@
+//
+void AliPMDRawDataRead()
+{
+  // To read PMD raw data
+
+  Int_t ievt = 0;
+  AliRawReaderFile reader(ievt);
+  AliPMDRawStream stream(&reader);
+
+  //  FILE *fpw2 = fopen("rawread2.txt","w");
+
+  while(stream.Next())
+    {
+      printf("%d %d %d %d\n",stream.GetModule(),stream.GetRow(),
+            stream.GetColumn(),stream.GetSignal());
+
+      Int_t det = stream.GetDetector();
+      Int_t smn = stream.GetSMN();
+      Int_t mcm = stream.GetMCM();
+      Int_t chno = stream.GetChannel();
+      Int_t row = stream.GetRow();
+      Int_t col = stream.GetColumn();
+      Int_t sig = stream.GetSignal();
+
+      //  fprintf(fpw2,"%d %d %d %d %d %d %d\n",det, smn, row, col,
+      //      mcm, chno, sig);
+
+    }
+
+}