]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDQADataMakerRec.cxx
In AliMUONTriggerQADataMakerRec:
[u/mrichter/AliRoot.git] / FMD / AliFMDQADataMakerRec.cxx
index eaa11c19497485a1e4296dbaa526c4e31590e1bf..c528da69c65b1eb7a569235c4f011dd2d5cc2205 100644 (file)
@@ -71,8 +71,18 @@ AliFMDQADataMakerRec::AliFMDQADataMakerRec(const AliFMDQADataMakerRec& qadm)
   
 }
 //_____________________________________________________________________
-AliFMDQADataMakerRec& AliFMDQADataMakerRec::operator = (const AliFMDQADataMakerRec& qadm ) 
+AliFMDQADataMakerRec& 
+AliFMDQADataMakerRec::operator = (const AliFMDQADataMakerRec& qadm ) 
 {
+  // 
+  // Assignment operator 
+  // 
+  // Parameters:
+  //    qadm What to assign from 
+  // 
+  // Return:
+  //    Reference to this
+  //
   fRecPointsArray = qadm.fRecPointsArray;
   
   return *this;
@@ -80,7 +90,9 @@ AliFMDQADataMakerRec& AliFMDQADataMakerRec::operator = (const AliFMDQADataMakerR
 //_____________________________________________________________________
 AliFMDQADataMakerRec::~AliFMDQADataMakerRec()
 {
+  // 
+  // Destrcutor 
+  // 
 }
 
 
@@ -120,7 +132,9 @@ void AliFMDQADataMakerRec::InitDigits()
   const Bool_t expert   = kTRUE ; 
   const Bool_t image    = kTRUE ; 
   
-  TH1I* hADCCounts = new TH1I("hADCCounts","Dist of ADC counts;ADC counts;Counts",1024,0,1024);
+  TH1I* hADCCounts = new TH1I("hADCCounts",
+                             "Dist of ADC counts;ADC counts;Counts",
+                             1024,0,1024);
   Add2DigitsList(hADCCounts, 0, !expert, image);
 }
 
@@ -152,12 +166,14 @@ void AliFMDQADataMakerRec::InitRaws()
     Int_t firstring = (det==1 ? 1 : 0);
     for(Int_t iring = firstring;iring<=1;iring++) {
       Char_t ring = (iring == 1 ? 'I' : 'O');
-      hADCCounts      = new TH1I(Form("hADCCounts_FMD%d%c",
-                                     det, ring), Form("FMD%d%c ADC counts;Amplitude [ADC counts];Counts",det,ring),
-                                1024,0,1023);
+      hADCCounts = 
+       new TH1I(Form("hADCCounts_FMD%d%c", det, ring), 
+                Form("FMD%d%c ADC counts;Amplitude [ADC counts];Counts",
+                     det,ring),1024,0,1023);
       hADCCounts->SetFillStyle(3001);
-      hADCCounts->SetFillColor(colors[det-1]+2-2*iring);
-      
+      hADCCounts->SetFillColor(colors[det-1]+2+iring);
+      hADCCounts->SetDrawOption("LOGY");
+
       Int_t index1 = GetHalfringIndex(det, ring, 0,1);
       Add2RawsList(hADCCounts, index1, !expert, image, !saveCorr);
       
@@ -168,11 +184,15 @@ void AliFMDQADataMakerRec::InitRaws()
        board = board + b*16;
        
        
-       hADCCounts      = new TH1I(Form("hADCCounts_FMD%d%c_board%d",
-                                       det, ring, board), "ADC counts;Amplitude [ADC counts];Counts",
-                                  1024,0,1023);
+       hADCCounts      = 
+         new TH1I(Form("hADCCounts_FMD%d%c_0x%02x", det, ring, board), 
+                  Form("FMD%d%c_0x%x ADC counts;Amplitude [ADC counts];Counts",
+                       det,ring, board),1024,0,1023);
        hADCCounts->SetXTitle("ADC counts");
        hADCCounts->SetYTitle("");
+       hADCCounts->SetFillStyle(3001);
+       hADCCounts->SetFillColor(colors[det-1]+2+iring);
+       hADCCounts->SetDrawOption("LOGY");
        Int_t index2 = GetHalfringIndex(det, ring, board/16,0);
        Add2RawsList(hADCCounts, index2, expert, !image, !saveCorr);
 
@@ -202,6 +222,12 @@ struct FillESDHist : public AliESDFMD::ForOne
 //_____________________________________________________________________
 void AliFMDQADataMakerRec::MakeESDs(AliESDEvent * esd)
 {
+  // 
+  // Analyse ESD event
+  // 
+  // Parameters:
+  //    esd ESD event
+  //
   if(!esd) {
     AliError("FMD ESD object not found!!") ; 
     return;
@@ -258,6 +284,12 @@ void AliFMDQADataMakerRec::MakeDigits()
 //_____________________________________________________________________
 void AliFMDQADataMakerRec::MakeDigits(TTree * digitTree)
 {
+  // 
+  // Analyse digits
+  // 
+  // Parameters:
+  //    digitTree Tree of digits
+  //
   
   if (fDigitsArray) 
     fDigitsArray->Clear();
@@ -277,8 +309,14 @@ void AliFMDQADataMakerRec::MakeDigits(TTree * digitTree)
 //_____________________________________________________________________
 void AliFMDQADataMakerRec::MakeRaws(AliRawReader* rawReader)
 {
+  // 
+  // Analyse raw 
+  // 
+  // Parameters:
+  //    rawReader Raw reader
+  //
  
- AliFMDRawReader fmdReader(rawReader,0);
 AliFMDRawReader fmdReader(rawReader,0);
   
   if (fDigitsArray) 
     fDigitsArray->Clear();
@@ -347,14 +385,25 @@ void AliFMDQADataMakerRec::StartOfDetectorCycle()
 Int_t AliFMDQADataMakerRec::GetHalfringIndex(UShort_t det, 
                                             Char_t ring, 
                                             UShort_t board, 
-                                            UShort_t monitor) {
-  
+                                            UShort_t monitor) const
+{
+  // 
+  // Get the half-ring index
+  // 
+  // Parameters:
+  //    det      Detector
+  //    ring     Ring
+  //    board    Board number
+  //    monitor  Monitor 
+  // 
+  // Return:
+  //    Half ring index
+  //  
   UShort_t iring  =  (ring == 'I' ? 1 : 0);
-  
-  Int_t index = ( ((det-1) << 3) | (iring << 2) | (board << 1) | (monitor << 0));
+  Int_t index = ( ((det-1) << 3) | (iring << 2) | (board << 1) | 
+                 (monitor << 0));
   
   return index-2;
-  
 }
 
 //_____________________________________________________________________