]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
A test macro for AliITSspdTestBeam TTask. This macro dumps the information
authornilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 26 Feb 2004 21:03:20 +0000 (21:03 +0000)
committernilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 26 Feb 2004 21:03:20 +0000 (21:03 +0000)
in a SPD test beam data file. Tested with SPD test beam 2002 run001dat

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

diff --git a/ITS/DumpspdTestBeamData.C b/ITS/DumpspdTestBeamData.C
new file mode 100644 (file)
index 0000000..1a524d7
--- /dev/null
@@ -0,0 +1,14 @@
+void DumpspdTestBeamData(const Char_t *filename,Int_t istart=0,Int_t iend=-1){
+    AliITSspdTestBeam *spd = new AliITSspdTestBeam(filename);
+    Int_t i;
+         //fstream *fp = new fstream("dumpedata.txt",io::out);
+
+    spd->Read();
+    spd->Decode();
+    if(iend<=0) iend = spd->GetNumberOfEvents();
+    for(i=istart;i<iend;i++){
+        cout << "********Event=" << i <<" *********"<< endl;
+        spd->PrintEventData(i);
+    } // end for
+         //fp->Close();
+}