From 5355b2f1f7e1a1084cc8e98fb886f6c98a77b6e5 Mon Sep 17 00:00:00 2001 From: nilsen Date: Thu, 26 Feb 2004 21:03:20 +0000 Subject: [PATCH] A test macro for AliITSspdTestBeam TTask. This macro dumps the information in a SPD test beam data file. Tested with SPD test beam 2002 run001dat --- ITS/DumpspdTestBeamData.C | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ITS/DumpspdTestBeamData.C diff --git a/ITS/DumpspdTestBeamData.C b/ITS/DumpspdTestBeamData.C new file mode 100644 index 00000000000..1a524d7cf85 --- /dev/null +++ b/ITS/DumpspdTestBeamData.C @@ -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;iPrintEventData(i); + } // end for + //fp->Close(); +} -- 2.43.0