Saving some QA histograms for future corrections (Yves)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Aug 2008 10:18:52 +0000 (10:18 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Aug 2008 10:18:52 +0000 (10:18 +0000)
ITS/AliITSQASDDDataMakerRec.cxx
ITS/AliITSQASPDDataMakerRec.cxx
PHOS/AliPHOSQADataMakerRec.cxx

index bd47aa1..05323f9 100644 (file)
@@ -149,14 +149,14 @@ void AliITSQASDDDataMakerRec::InitRaws()
   TH1D *h0 = new TH1D("ModPattern","HW Modules pattern",fgknSDDmodules,-0.5,259.5);\r
   h0->GetXaxis()->SetTitle("Module Number");\r
   h0->GetYaxis()->SetTitle("Counts");\r
-  fAliITSQADataMakerRec->Add2RawsList((new TH1D(*h0)),0+fGenOffset);\r
+  fAliITSQADataMakerRec->Add2RawsList((new TH1D(*h0)),0+fGenOffset, kTRUE);\r
   delete h0;\r
   fSDDhTask++;\r
   if(fLDC==0 || fLDC==1 || fLDC==2){\r
     TH1D *h1 = new TH1D("LadPatternL3","Ladder pattern L3",14,0.5,14.5);  \r
     h1->GetXaxis()->SetTitle("Ladder Number on Lay3");\r
     h1->GetYaxis()->SetTitle("Counts");\r
-    fAliITSQADataMakerRec->Add2RawsList((new TH1D(*h1)),1+fGenOffset);\r
+    fAliITSQADataMakerRec->Add2RawsList((new TH1D(*h1)),1+fGenOffset, kTRUE);\r
        delete h1;\r
     fSDDhTask++;\r
   }    \r
@@ -164,7 +164,7 @@ void AliITSQASDDDataMakerRec::InitRaws()
     TH1D *h2 = new TH1D("LadPatternL4","Ladder pattern L4",22,0.5,22.5);  \r
     h2->GetXaxis()->SetTitle("Ladder Number on Lay4");\r
     h2->GetYaxis()->SetTitle("Counts");\r
-    fAliITSQADataMakerRec->Add2RawsList((new TH1D(*h2)),2+fGenOffset);\r
+    fAliITSQADataMakerRec->Add2RawsList((new TH1D(*h2)),2+fGenOffset, kTRUE);\r
        delete h2;\r
     fSDDhTask++;\r
   }\r
@@ -174,7 +174,7 @@ void AliITSQASDDDataMakerRec::InitRaws()
       TH1D *h3 = new TH1D(hname0,hname0,6,0.5,6.5);\r
       h3->GetXaxis()->SetTitle("Module Number");\r
       h3->GetYaxis()->SetTitle("Counts");\r
-      fAliITSQADataMakerRec->Add2RawsList((new TH1D(*h3)),i-1+3+fGenOffset);\r
+      fAliITSQADataMakerRec->Add2RawsList((new TH1D(*h3)),i-1+3+fGenOffset, kTRUE);\r
          delete h3;\r
       fSDDhTask++;\r
     }\r
@@ -185,7 +185,7 @@ void AliITSQASDDDataMakerRec::InitRaws()
          TH1D *h4 = new TH1D(hname0,hname0,8,0.5,8.5);\r
       h4->GetXaxis()->SetTitle("Module Number");\r
       h4->GetYaxis()->SetTitle("Counts");\r
-      fAliITSQADataMakerRec->Add2RawsList((new TH1D(*h4)),i-1+17+fGenOffset);\r
+      fAliITSQADataMakerRec->Add2RawsList((new TH1D(*h4)),i-1+17+fGenOffset, kTRUE);\r
          delete h4;\r
       fSDDhTask++;\r
     }\r
index a26ce08..78589b1 100644 (file)
@@ -156,7 +156,7 @@ void AliITSQASPDDataMakerRec::InitRaws()
     hMultSPDhits[iLay]=new TH1F(name,title,200,0.,200.);
     hMultSPDhits[iLay]->GetXaxis()->SetTitle("Hit multiplicity");
     hMultSPDhits[iLay]->GetYaxis()->SetTitle("Entries");
-    fAliITSQADataMakerRec->Add2RawsList(hMultSPDhits[iLay], 43+iLay+fGenOffset);
+    fAliITSQADataMakerRec->Add2RawsList(hMultSPDhits[iLay], 43+iLay+fGenOffset, kTRUE);
     fSPDhTask++;
   }
 
index 6ec92cb..574d55d 100644 (file)
@@ -28,6 +28,7 @@
 #include <TH1F.h> 
 #include <TH1I.h> 
 #include <TH2F.h> 
+#include <TParameter.h>
 
 // --- Standard library ---
 
@@ -185,17 +186,17 @@ void AliPHOSQADataMakerRec::InitRaws()
                                                                                                                                            
   TH1F * h16 = new TH1F("hLowNtot", "Low Gain Total Number of raw hits in PHOS", 500, 0., 5000.) ;                                         
   h16->Sumw2() ;                                                                                                                           
-  Add2RawsList(h16, kNtotLG) ;                                                                                                             
+  Add2RawsList(h16, kNtotLG, kTRUE) ;                                                                                                             
   TH1F * h17 = new TH1F("hHighNtot", "High Gain Total Number of raw hits in PHOS",500,0., 5000.) ;                                         
   h17->Sumw2() ;                                                                                                                           
-  Add2RawsList(h17, kNtotHG) ;                                                                                                             
+  Add2RawsList(h17, kNtotHG, kTRUE) ;                                                                                                             
                                                                                                                                            
   TH1F * h18 = new TH1F("hLowEtot", "Low Gain Total Energy of raw hits in PHOS", 500, 0., 5000.) ;                                       
   h18->Sumw2() ;                                                                                                                           
-  Add2RawsList(h18, kEtotLG) ;                                                                                                             
+  Add2RawsList(h18, kEtotLG, kTRUE) ;                                                                                                             
   TH1F * h19 = new TH1F("hHighEtot", "High Gain Total Energy of raw hits in PHOS",500,0., 100000.) ;                                       
   h19->Sumw2() ;                                                                                                                           
-  Add2RawsList(h19, kEtotHG) ;                                                                                                             
+  Add2RawsList(h19, kEtotHG, kTRUE) ;                                                                                                             
   
 }
 
@@ -279,9 +280,17 @@ void AliPHOSQADataMakerRec::MakeRaws(AliRawReader* rawReader)
    }                 
   }                    
   GetRawsData(kEtotLG)->Fill(lgEtot) ; 
+  TParameter<double> * p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQA::GetTaskName(AliQA::kRAWS).Data(), GetRawsData(kEtotLG)->GetName()))) ; 
+  p->SetVal(lgEtot) ; 
   GetRawsData(kEtotHG)->Fill(hgEtot) ;  
+  p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQA::GetTaskName(AliQA::kRAWS).Data(), GetRawsData(kEtotHG)->GetName()))) ; 
+  p->SetVal(hgEtot) ; 
   GetRawsData(kNtotLG)->Fill(lgNtot) ;
+  p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQA::GetTaskName(AliQA::kRAWS).Data(), GetRawsData(kNtotLG)->GetName()))) ; 
+  p->SetVal(lgNtot) ; 
   GetRawsData(kNtotHG)->Fill(hgNtot) ;
+  p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQA::GetTaskName(AliQA::kRAWS).Data(), GetRawsData(kNtotHG)->GetName()))) ; 
+  p->SetVal(hgNtot) ; 
 }
 //____________________________________________________________________________
 void AliPHOSQADataMakerRec::MakeRecPoints(TTree * clustersTree)