]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Using proper file IDs in DAs
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Feb 2008 17:13:17 +0000 (17:13 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Feb 2008 17:13:17 +0000 (17:13 +0000)
1. Adding comments to the header:
svn diff *da* | grep fileId
+fileId:   CE
+fileId:   pedestals
+fileId:   pulser

2. Using the fileID in correspondence the Preprocesor
svn diff *da* | grep FILE_ID
+#define FILE_ID "CE"
+  status=daqDA_FES_storeFile(RESULT_FILE,FILE_ID);
+#define FILE_ID "pedestals"
+   status=daqDA_FES_storeFile(RESULT_FILE,FILE_ID);
+#define FILE_ID "pulser"
+  status=daqDA_FES_storeFile(RESULT_FILE,FILE_ID);

3. Suppress error messages

TPC/TPCCEda.cxx
TPC/TPCPEDESTALda.cxx
TPC/TPCPULSERda.cxx

index 2a4a970c33c9af088b2b63e0a9c56999a3c6bb0f..0aa621338f074b494c13705228154c2735671bab 100644 (file)
@@ -8,6 +8,7 @@ DA Type: MON
 Number of events needed: 500
 Input Files: 
 Output Files: tpcCE.root, to be exported to the DAQ FXS
+fileId:   CE
 Trigger types used: PHYSICS_EVENT
 
 */
@@ -28,6 +29,7 @@ and save results in a file (named from RESULT_FILE define - see below).
 */
 
 #define RESULT_FILE "tpcCE.root"
+#define FILE_ID "CE"
 #define MAPPING_FILE "tpcMapping.root"
 
 
@@ -77,11 +79,10 @@ int main(int argc, char **argv) {
                                          "RIO",
                                          "TStreamerInfo()");
 
-  AliLog::SetClassDebugLevel("AliTPCRawStream",AliLog::kFatal);
-  AliLog::SetClassDebugLevel("AliRawReaderDate",AliLog::kFatal);
-  AliLog::SetClassDebugLevel("AliTPCAltroMapping",AliLog::kFatal);
-  AliLog::SetModuleDebugLevel("TPC",AliLog::kFatal);
-  AliLog::SetModuleDebugLevel("RAW",AliLog::kFatal);
+  AliLog::SetClassDebugLevel("AliTPCRawStream",-5);
+  AliLog::SetClassDebugLevel("AliRawReaderDate",-5);
+  AliLog::SetClassDebugLevel("AliTPCAltroMapping",-5);
+  AliLog::SetModuleDebugLevel("RAW",-5);
 
   int i,status;
   AliTPCmapper *mapping = 0;   // The TPC mapping
@@ -192,7 +193,7 @@ int main(int argc, char **argv) {
 
   /* store the result file on FES */
 
-  status=daqDA_FES_storeFile(RESULT_FILE,RESULT_FILE);
+  status=daqDA_FES_storeFile(RESULT_FILE,FILE_ID);
   if (status) {
     status = -2;
   }
index 47159a14bc9f9a20f2f153f5a2c3d867e88eef62..711014776b3d8fc5e1f5d9838c93ea3c8345601f 100644 (file)
@@ -8,6 +8,7 @@ DA Type: LDC
 Number of events needed: 100
 Input Files: 
 Output Files: tpcPedestal.root, to be exported to the DAQ FXS
+fileId:   pedestals    
 Trigger types used: CALIBRATION_EVENT
 
 */
@@ -31,6 +32,7 @@ and save results in a file (named from RESULT_FILE define - see below).
 */
 
 #define RESULT_FILE  "tpcPedestal.root"
+#define FILE_ID "pedestals"
 #define MAPPING_FILE "tpcMapping.root"
 #define AliDebugLevel() -1
 
@@ -82,11 +84,10 @@ int main(int argc, char **argv) {
   // Main for TPC pedestal detector algorithm
   //
 
-  AliLog::SetClassDebugLevel("AliTPCRawStream",AliLog::kFatal);
-  AliLog::SetClassDebugLevel("AliRawReaderDate",AliLog::kFatal);
-  AliLog::SetClassDebugLevel("AliTPCAltroMapping",AliLog::kFatal);
-  AliLog::SetModuleDebugLevel("TPC",AliLog::kFatal);
-  AliLog::SetModuleDebugLevel("RAW",AliLog::kFatal);
+  AliLog::SetClassDebugLevel("AliTPCRawStream",-5);
+  AliLog::SetClassDebugLevel("AliRawReaderDate",-5);
+  AliLog::SetClassDebugLevel("AliTPCAltroMapping",-5);
+  AliLog::SetModuleDebugLevel("RAW",-5);
 
   Bool_t timeAnalysis = kTRUE;
 
@@ -209,7 +210,7 @@ int main(int argc, char **argv) {
 
  /* store the result file on FES */
  
-   status=daqDA_FES_storeFile(RESULT_FILE,RESULT_FILE);
+   status=daqDA_FES_storeFile(RESULT_FILE,FILE_ID);
    if (status) {
      status = -2;
    }
index 16ba5676b8c65e45ce7a39d3dd1a2f97415e1753..122b17a3839b7161a88fd251dbb485dcfb05ff22 100644 (file)
@@ -8,6 +8,7 @@ DA Type: LDC
 Number of events needed: 100
 Input Files: 
 Output Files: tpcPulser.root, to be exported to the DAQ FXS
+fileId:   pulser
 Trigger types used: CALIBRATION_EVENT
 
 */
@@ -28,6 +29,7 @@ and save results in a file (named from RESULT_FILE define - see below).
 */
 
 #define RESULT_FILE "tpcPulser.root"
+#define FILE_ID "pulser"
 #define MAPPING_FILE "tpcMapping.root"
 #define AliDebugLevel() -1
 
@@ -71,11 +73,10 @@ and save results in a file (named from RESULT_FILE define - see below).
       Arguments: list of DATE raw data files
 */
 int main(int argc, char **argv) {
-  AliLog::SetClassDebugLevel("AliTPCRawStream",AliLog::kFatal);
-  AliLog::SetClassDebugLevel("AliRawReaderDate",AliLog::kFatal);
-  AliLog::SetClassDebugLevel("AliTPCAltroMapping",AliLog::kFatal);
-  AliLog::SetModuleDebugLevel("TPC",AliLog::kFatal);
-  AliLog::SetModuleDebugLevel("RAW",AliLog::kFatal);
+  AliLog::SetClassDebugLevel("AliTPCRawStream",-5);
+  AliLog::SetClassDebugLevel("AliRawReaderDate",-5);
+  AliLog::SetClassDebugLevel("AliTPCAltroMapping",-5);
+  AliLog::SetModuleDebugLevel("RAW",-5);
 
  gROOT->GetPluginManager()->AddHandler("TVirtualStreamerInfo",
                                          "*",
@@ -192,7 +193,7 @@ int main(int argc, char **argv) {
 
   /* store the result file on FES */
 
-  status=daqDA_FES_storeFile(RESULT_FILE,RESULT_FILE);
+  status=daqDA_FES_storeFile(RESULT_FILE,FILE_ID);
   if (status) {
     status = -2;
   }