/* TPC DA for online calibration Contact: Haavard.Helstrup@cern.ch Link: Run Type: PHYSICS_RUN STANDALONE DAQ DA Type: MON Number of events needed: 500 Input Files: Output Files: tpcCE.root, to be exported to the DAQ FXS Trigger types used: PHYSICS_EVENT */ /* TPCCEda.cxx - calibration algorithm for TPC Central Electrode events 10/06/2007 sylvain.chapeland@cern.ch : first version - clean skeleton based on DAQ DA case1 06/12/2007 haavard.helstrup@cern.ch : created CE DA based on pulser code contact: marian.ivanov@cern.ch This process reads RAW data from the files provided as command line arguments and save results in a file (named from RESULT_FILE define - see below). */ #define RESULT_FILE "tpcCE.root" #include #include "event.h" #include "monitor.h" #include #include // //Root includes // #include #include "TROOT.h" #include "TPluginManager.h" // //AliRoot includes // #include "AliRawReader.h" #include "AliRawReaderDate.h" #include "AliTPCRawStream.h" #include "AliTPCROC.h" #include "AliTPCCalROC.h" #include "AliTPCCalPad.h" #include "AliMathBase.h" #include "TTreeStream.h" // // TPC calibration algorithm includes // #include "AliTPCCalibCE.h" /* Main routine Arguments: list of DATE raw data files */ int main(int argc, char **argv) { gROOT->GetPluginManager()->AddHandler("TVirtualStreamerInfo", "*", "TStreamerInfo", "RIO", "TStreamerInfo()"); int i,status; AliTPCCalibCE calibCE; // pedestal and noise calibration if (argc<2) { printf("Wrong number of arguments\n"); return -1; } /* log start of process */ printf("TPC CE DA started - %s\n",__FILE__); /* set time bin range */ calibCE.SetRangeTime(800,940); /* declare monitoring program */ status=monitorDeclareMp( __FILE__ ); if (status!=0) { printf("monitorDeclareMp() failed : %s\n",monitorDecodeError(status)); return -1; } /* loop over RAW data files */ int nevents=0; for(i=1;i