]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Ped and Gain DAs update.
authorlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 15 Feb 2010 17:38:37 +0000 (17:38 +0000)
committerlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 15 Feb 2010 17:38:37 +0000 (17:38 +0000)
MUONTRKPEDda.ccx : messages coming from event decoding  written in DA_PED log file
MUONTRKGAINda.cxx : List of the 11 runs needed to validate calib. DA (OnLine) displayed in the header source file
AliMUONTrackerIO.cxx : bug correction
READMAmchda.txt : README update of the DAs

(Jean-Luc Charvet)

MUON/AliMUONTrackerIO.cxx
MUON/MUONTRKGAINda.cxx
MUON/MUONTRKPEDda.cxx
MUON/READMEmchda.txt

index 39f896ddc3078a9fee72d865571923b39aedd080..a99ba6163f4e1b12cf33005d728d8e2b73f6a7dc 100644 (file)
@@ -308,13 +308,6 @@ AliMUONTrackerIO::DecodeGains(const char* data, AliMUONVStore& gainStore,
           AliDebugClass(1,Form("runNumber is %d",runNumber));
         }            
       }
-      if ( sline.Contains("*  nInit =") )
-       {
-         sscanf(line,"//   *  nInit = %d  *  f1nbp = %d  *  f2nbp = %d",&nInit,&f1nbp,&f2nbp);
-         AliDebugClass(1,Form("nInit = %d",nInit));
-         AliDebugClass(1,Form("f1nbp = %d",f1nbp));
-         AliDebugClass(1,Form("f2nbp = %d",f2nbp));
-       }
       if ( sline.Contains("DAC values") )
       {
         nDAC = TString(sline(2,sline.Length()-2)).Atoi();
@@ -327,6 +320,19 @@ AliMUONTrackerIO::DecodeGains(const char* data, AliMUONVStore& gainStore,
             dac = new Int_t[nDAC];
             // skip two lines
             in.getline(line,1024);
+            sline = line;
+            if (!sline.Contains("*  nInit ="))
+            {
+              AliErrorClass("Improper format : was expecting nInit= line...");              
+            }
+            else
+            {
+              sscanf(line,"//   *  nInit = %d  *  f1nbp = %d  *  f2nbp = %d",&nInit,&f1nbp,&f2nbp);
+              AliDebugClass(1,Form("nInit = %d",nInit));
+              AliDebugClass(1,Form("f1nbp = %d",f1nbp));
+              AliDebugClass(1,Form("f2nbp = %d",f2nbp));
+            }
+            in.getline(line,1024);
             in.getline(line,1024);
             // then get run and dac values
             Int_t iDAC(0);
index d718d845e2ce3ea80754082a7436dda00704a6a2..76f9bb530079aee4117a67b8e0401f8e1ab48ada 100644 (file)
@@ -1,23 +1,23 @@
 /*
  Contact: Jean-Luc Charvet <jean-luc.charvet@cern.ch>
  Link: http://aliceinfo.cern.ch/static/Offline/dimuon/muon_html/README_mchda.html
- Reference Runs: 
ndex          Run
- 1             104525
- 2             104527
- 3             104528
- 4             104530
- 5             104531
- 6             104532
- 7             104533
- 8             104534
- 9             104535
- 10            104537
- 11            104539
+ Reference Runs: (station 3)
Index         Run
+ 1             109303
+ 2             109304
+ 3             109305
+ 4             109306
+ 5             109307
+ 6             109308
+ 7             109309
+ 8             109310
+ 9             109311
+ 10            109312
+ 11            109313
  Run Type: CALIBRATION
  DA Type: LDC
  Number of events needed: 400 events for each calibration run (11)
- Input Files:  /alice/cern.ch/user/j/jcharvet/mutrkcalibvalues and /alice/cern.ch/user/j/jcharvet/config_ldc-MTRK-S0-0
+ Input Files:  mutrkcalibvalues and config_ldc-MTRK-S3-0 in path : /afs/cern.ch/user/j/jcharvet/public/DA_validation
  Output Files: local dir (not persistent) -> MUONTRKGAINda.par   FXS -> run<#>_MCH_<ldc>_GAINS
  Trigger types used:
  */
@@ -41,7 +41,7 @@
 
 /*
  -------------------------------------------------------------------------
- 2010-01-13 New version: MUONTRKGAINda.cxx,v 1.5
+ 2010-02-15 New version: MUONTRKGAINda.cxx,v 1.5
  -------------------------------------------------------------------------
  
  Version for MUONTRKGAINda MUON tracking
index d248bacb0e22f33610fb5370cc8ca24a9e30b563..ea43d9561607bea3d70de3355d621ffd62cf9abf 100644 (file)
@@ -1,11 +1,11 @@
 /*
-  Contact: Jean-Luc Charvet <jean-luc.charvet@cern.ch>
+  Contact: Jean-Luc Charvet <jean-luc.charvet@cern.ch>  
   Link: http://aliceinfo.cern.ch/static/Offline/dimuon/muon_html/README_mchda.html
-  Reference Run: 104540
+  Reference Run: 109302 (station 3 only)
   Run Type: PEDESTAL
   DA Type: LDC
   Number of events needed: 400 events for pedestal run
-  Input Files: /alice/cern.ch/user/j/jcharvet/mutrkpedvalues and /alice/cern.ch/user/j/jcharvet/config_ldc-MTRK-S0-0 
+  Input Files: mutrkpedvalues and config_ldc-MTRK-S3-0 in path : /afs/cern.ch/user/j/jcharvet/public/DA_validation 
   Output Files: local dir (not persistent) -> MUONTRKPEDda.ped  FXS -> run<#>_MCH_<ldc>_PEDESTALS
   Trigger types used:
 */
@@ -29,7 +29,7 @@
 
 /*
        -------------------------------------------------------------------------
-        2010-01-13 New version: MUONTRKPEDda.cxx,v 1.5
+        2010-02-15 New version: MUONTRKPEDda.cxx,v 1.5
        -------------------------------------------------------------------------
 
        Version for MUONTRKPEDda MUON tracking
@@ -65,6 +65,7 @@ extern "C" {
 #include "AliMpConstants.h"
 #include "AliRawDataErrorLog.h"
 #include "AliMUONTrackerIO.h"
+#include "AliLog.h"
 
 //ROOT
 #include "TFile.h"
@@ -93,7 +94,7 @@ extern "C" {
 #include "AliMUONPedestal.h"
 #include "AliMUONErrorCounter.h"
 
-
 // main routine
 int main(Int_t argc, const char **argv) 
 {
@@ -127,6 +128,7 @@ int main(Int_t argc, const char **argv)
   Int_t nGlitchErrors= 0;
   Int_t nParityErrors= 0;
   Int_t nPaddingErrors= 0;
+  Int_t nTokenlostErrors= 0;
   Int_t recoverParityErrors = 1;
 
   TString logOutputFile;
@@ -244,8 +246,14 @@ int main(Int_t argc, const char **argv)
   // Rawdeader, RawStreamHP
   AliRawReader* rawReader = AliRawReader::Create(inputFile);
   AliMUONRawStreamTrackerHP* rawStream  = new AliMUONRawStreamTrackerHP(rawReader);    
-  rawStream->DisableWarnings();
+//     rawStream->DisableWarnings();
   rawStream->EnabbleErrorLogger();
+  //
+  // kLowErrorDetail,     /// Logs minimal information in the error messages.
+  // kMediumErrorDetail,  /// Logs a medium level of detail in the error messages.
+  // kHighErrorDetail     /// Logs maximum information in the error messages.
+  //  rawStream->SetLoggingDetailLevel(AliMUONRawStreamTrackerHP::kLowErrorDetail);
+   rawStream->SetLoggingDetailLevel(AliMUONRawStreamTrackerHP::kHighErrorDetail);
 
   printf("\n %s : Reading data from file %s\n",prefixDA,inputFile.Data());
 
@@ -275,7 +283,7 @@ int main(Int_t argc, const char **argv)
        {
          sprintf(flatFile,"%s.log",prefixDA);
          logOutputFile=flatFile;
-
+               AliLog::SetStreamOutput(&filcout); // Print details on logfile
          filcout.open(logOutputFile.Data());
          filcout<<"//=================================================" << endl;
          filcout<<"//       " << prefixDA << " for run = " << runNumber << endl;
@@ -298,6 +306,7 @@ int main(Int_t argc, const char **argv)
       int eventGlitchErrors = 0;
       int eventParityErrors = 0;
       int eventPaddingErrors = 0;
+      int eventTokenlostErrors = 0;
       rawStream->First();
       do
        {
@@ -305,6 +314,7 @@ int main(Int_t argc, const char **argv)
          eventGlitchErrors += rawStream->GetGlitchErrors();
          eventParityErrors += rawStream->GetParityErrors();
          eventPaddingErrors += rawStream->GetPaddingErrors();
+         eventTokenlostErrors += rawStream->GetTokenLostErrors();
        } while(rawStream->NextDDL()); 
 
       AliMUONRawStreamTrackerHP::AliBusPatch* busPatch;
@@ -327,6 +337,7 @@ int main(Int_t argc, const char **argv)
          // Events with errors
          if (recoverParityErrors && eventParityErrors && !eventGlitchErrors&& !eventPaddingErrors)
            {
+             filcout << " ----------- Date Event recovered = " << nDateEvents <<  " ----------------" << endl;
              // Recover parity errors -> compute pedestal for all good buspatches
              if ( TEST_SYSTEM_ATTRIBUTE( rawReader->GetAttributes(),
                                          ATTR_ORBIT_BC )) 
@@ -385,6 +396,7 @@ int main(Int_t argc, const char **argv)
            } //end of if (recoverParityErrors && eventParityErrors && !eventGlitchErrors&& !eventPaddingErrors)
          else
            {
+             filcout << " ----------- Date Event rejected = " << nDateEvents <<  " ----------------" << endl;
              // Fatal errors reject the event
              if ( TEST_SYSTEM_ATTRIBUTE( rawReader->GetAttributes(),
                                          ATTR_ORBIT_BC )) 
@@ -403,13 +415,15 @@ int main(Int_t argc, const char **argv)
            } // end of if (!rawStream->GetGlitchErrors() && !rawStream->GetPaddingErrors() ...
          filcout<<"Number of errors : Glitch "<<eventGlitchErrors
                     <<" Parity "<<eventParityErrors
-                    <<" Padding "<<eventPaddingErrors<<endl;
+                    <<" Padding "<<eventPaddingErrors
+                    <<" Token lost "<<eventTokenlostErrors<<endl;
          filcout<<endl;                        
        } // end of if (!rawStream->IsErrorMessage())
 
       if (eventGlitchErrors)  nGlitchErrors++;
       if (eventParityErrors)  nParityErrors++;
       if (eventPaddingErrors) nPaddingErrors++;
+      if (eventTokenlostErrors) nTokenlostErrors++;
 
     } // while (rawReader->NextEvent())
   delete rawReader;
@@ -453,7 +467,8 @@ int main(Int_t argc, const char **argv)
   cout << prefixDA << " : Nb of DATE events           = " << nDateEvents    << endl;
   cout << prefixDA << " : Nb of Glitch errors         = "   << nGlitchErrors  << endl;
   cout << prefixDA << " : Nb of Parity errors         = "   << nParityErrors  << endl;
-  cout << prefixDA << " : Nb of Padding errors        = "   << nPaddingErrors << endl;         
+  cout << prefixDA << " : Nb of Padding errors        = "   << nPaddingErrors << endl; 
+  cout << prefixDA << " : Nb of Token lost errors     = "   << nTokenlostErrors << endl;
   cout << prefixDA << " : Nb of events recovered      = "   << nEventsRecovered<< endl;
   cout << prefixDA << " : Nb of events without errors = "   << nEvents-nEventsRecovered<< endl;
   cout << prefixDA << " : Nb of events used           = "   << nEvents        << endl;
@@ -463,6 +478,7 @@ int main(Int_t argc, const char **argv)
   filcout << prefixDA << " : Nb of Glitch errors         = "   << nGlitchErrors << endl;
   filcout << prefixDA << " : Nb of Parity errors         = "   << nParityErrors << endl;
   filcout << prefixDA << " : Nb of Padding errors        = "   << nPaddingErrors << endl;
+  filcout << prefixDA << " : Nb of Token lost errors     = "   << nTokenlostErrors << endl;
   filcout << prefixDA << " : Nb of events recovered      = "   << nEventsRecovered<< endl;     
   filcout << prefixDA << " : Nb of events without errors = "   << nEvents-nEventsRecovered<< endl;
   filcout << prefixDA << " : Nb of events used           = "   << nEvents        << endl;
index fca79b46ba1cf21ba2b29f2354faa560b197ede8..d305506fd66ad6579b4cbb666c238b32333ebffe 100644 (file)
@@ -78,6 +78,8 @@ Two input files located in the DAQ Detector database (DetDB) are needed:
 
 - config_ldc-MTRK-S3-0 : configuration file name corresponding to MuonTracker Station 3 if (for example) DA is running on ldc-MTRK-S3-0
 
+- DA validation: see Header of MUONTRKPEDda.cxx for reference run, and corresponding input mutrkpedvalues and configuration files are located in path=/afs/cern.ch/user/j/jcharvet/public/DA_validation
+
 \subsection da_ss2 Electonics gain
 
 The syntax is: MUONTRKGAINda.exe "raw data file"
@@ -109,6 +111,7 @@ Default values are listed below
 
  - config_ldc-MTRK-S3-0 : configuration file name corresponding to MuonTracker station 3 if (for example) DA is running on ldc-MTRK-S3-0 
 
+- DA validation: Header of MUONTRKGAINda.cxx shows the list of the 11 reference runs, and corresponding input mutrkcalibvalues and configuration files are located in path=/afs/cern.ch/user/j/jcharvet/public/DA_validation
 
 \section da_s3 Using the DA Offline