From 00252d8fcb52c3387403b01fd4efb051d729dec6 Mon Sep 17 00:00:00 2001 From: masera Date: Tue, 11 Dec 2007 20:22:18 +0000 Subject: [PATCH] correct treatment of DDL header; modification needed to solve I/O problems; added comments requested by DAQ (F. Prino) --- ITS/ITSSDDBASda.cxx | 21 ++++++++++++++++++++- ITS/ITSSDDGAINda.cxx | 20 +++++++++++++++++++- ITS/ITSSDDINJda.cxx | 23 ++++++++++++++++++++++- 3 files changed, 61 insertions(+), 3 deletions(-) diff --git a/ITS/ITSSDDBASda.cxx b/ITS/ITSSDDBASda.cxx index 39a44cbeefb..4fc04825501 100644 --- a/ITS/ITSSDDBASda.cxx +++ b/ITS/ITSSDDBASda.cxx @@ -1,3 +1,15 @@ +/* +- Contact: - prino@to.infn.it +- Link: - +- Run Type: - +- DA Type: - LDC +- Number of events needed: 100 +- Input Files: - +- Output Files: - SDDbase_step1_mod*_sid*.data +- Trigger types used: +*/ + + ////////////////////////////////////////////////////////////////////////////// // Detector Algorithm for analysis of SDD baseline runs. // // // @@ -30,6 +42,8 @@ extern "C" { #include #include #include +#include +#include // AliRoot includes #include "AliRawReaderDate.h" @@ -43,6 +57,12 @@ int main(int argc, char **argv) { int status = 0; + // line added to solve IO problems + gROOT->GetPluginManager()->AddHandler("TVirtualStreamerInfo", + "*", + "TStreamerInfo", + "RIO", + "TStreamerInfo()"); /* log start of process */ printf("ITS SDD BASE algorithm program started\n"); @@ -146,7 +166,6 @@ int main(int argc, char **argv) { case PHYSICS_EVENT: // uncomment this line for test raw data printf(" event number = %i \n",iev); AliRawReader *rawReader = new AliRawReaderDate((void*)event); - rawReader->RequireHeader(kFALSE); rawReader->SelectEquipment(17,eqOffset+1,eqOffset+DDLrange); diff --git a/ITS/ITSSDDGAINda.cxx b/ITS/ITSSDDGAINda.cxx index c083a8570a2..3904c5ff1fc 100644 --- a/ITS/ITSSDDGAINda.cxx +++ b/ITS/ITSSDDGAINda.cxx @@ -1,3 +1,14 @@ +/* +- Contact: - prino@to.infn.it +- Link: - +- Run Type: - +- DA Type: - LDC +- Number of events needed: 100 +- Input Files: - SDDbase_step1_mod*_sid*.data +- Output Files: - SDDbase_mod*_sid*.data +- Trigger types used: +*/ + ////////////////////////////////////////////////////////////////////////////// // Detector Algorithm for analysis of SDD test pulse runs. // // // @@ -31,6 +42,8 @@ extern "C" { #include #include #include +#include +#include // AliRoot includes #include "AliRawReaderDate.h" @@ -43,6 +56,12 @@ int main(int argc, char **argv) { int status = 0; + // line added to solve IO problems + gROOT->GetPluginManager()->AddHandler("TVirtualStreamerInfo", + "*", + "TStreamerInfo", + "RIO", + "TStreamerInfo()"); /* log start of process */ printf("ITS SDD TP algorithm program started\n"); @@ -131,7 +150,6 @@ int main(int argc, char **argv) { case PHYSICS_EVENT: // uncomment this line for test raw data printf(" event number = %i \n",iev); AliRawReader *rawReader = new AliRawReaderDate((void*)event); - rawReader->RequireHeader(kFALSE); rawReader->SelectEquipment(17,eqOffset+1,eqOffset+DDLrange); Int_t evtyp=0; diff --git a/ITS/ITSSDDINJda.cxx b/ITS/ITSSDDINJda.cxx index 5840f4a63b5..4b3bffc10a0 100644 --- a/ITS/ITSSDDINJda.cxx +++ b/ITS/ITSSDDINJda.cxx @@ -1,3 +1,15 @@ +/* +- Contact: - prino@to.infn.it +- Link: - +- Run Type: - PHYSICS +- DA Type: - LDC +- Number of events needed: +- Input Files: - +- Output Files: - SDDinj_mod*_sid*.data +- Trigger types used: +*/ + + ////////////////////////////////////////////////////////////////////////////// // Detector Algorithm for analysis of SDD injector events. // // // @@ -28,6 +40,9 @@ extern "C" { #include #include #include +#include +#include + // AliRoot includes #include "AliRawReaderDate.h" @@ -41,6 +56,13 @@ int main(int argc, char **argv) { int status = 0; + // line added to solve IO problems + gROOT->GetPluginManager()->AddHandler("TVirtualStreamerInfo", + "*", + "TStreamerInfo", + "RIO", + "TStreamerInfo()"); + /* log start of process */ printf("ITS SDD INJ algorithm program started\n"); @@ -130,7 +152,6 @@ int main(int argc, char **argv) { case PHYSICS_EVENT: // uncomment this line for test raw data printf(" event number = %i \n",iev); AliRawReader *rawReader = new AliRawReaderDate((void*)event); - rawReader->RequireHeader(kFALSE); rawReader->SelectEquipment(17,eqOffset+1,eqOffset+DDLrange); UInt_t timeSt=rawReader->GetTimestamp(); -- 2.39.3