]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSQADataMakerRec.cxx
Update of mchview related classes to allow easy printing of trackerdata plots.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSQADataMakerRec.cxx
index 1efa47f6699e608ea600784ebb6deee93cdef3fd..a2dd251bfaa93012d734f3240d8b73c25c2e204c 100644 (file)
@@ -85,6 +85,8 @@ void AliPHOSQADataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjAr
     if (! IsValidEventSpecie(specie, list)) 
       continue ;
     SetEventSpecie(AliRecoParam::ConvertIndex(specie)) ; 
+    if(GetRawsData(kHGqualMod0) && GetRawsData(kHGmod0))
+      GetRawsData(kHGqualMod0)->Divide( GetRawsData(kHGmod0) ) ;
     if(GetRawsData(kHGqualMod1) && GetRawsData(kHGmod1))
       GetRawsData(kHGqualMod1)->Divide( GetRawsData(kHGmod1) ) ;
     if(GetRawsData(kHGqualMod2) && GetRawsData(kHGmod2))
@@ -93,8 +95,6 @@ void AliPHOSQADataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjAr
       GetRawsData(kHGqualMod3)->Divide( GetRawsData(kHGmod3) ) ;
     if(GetRawsData(kHGqualMod4) && GetRawsData(kHGmod4))
       GetRawsData(kHGqualMod4)->Divide( GetRawsData(kHGmod4) ) ;
-    if(GetRawsData(kHGqualMod5) && GetRawsData(kHGmod5))
-      GetRawsData(kHGqualMod5)->Divide( GetRawsData(kHGmod5) ) ;
   }
   // do the QA checking
   AliQAChecker::Instance()->Run(AliQAv1::kPHOS, task, list) ;  
@@ -183,170 +183,154 @@ void AliPHOSQADataMakerRec::InitRaws()
   const Bool_t saveCorr = kTRUE ; 
   const Bool_t image    = kTRUE ; 
 
-  TH2I * h0 = new TH2I("hHighPHOSxyMod1","High Gain Rows x Columns for PHOS module 1;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  Add2RawsList(h0,kHGmod1, expert, !image, !saveCorr) ;
-  TH2I * h1 = new TH2I("hHighPHOSxyMod2","High Gain Rows x Columns for PHOS module 2;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  Add2RawsList(h1,kHGmod2, expert, !image, !saveCorr) ;
-  TH2I * h2 = new TH2I("hHighPHOSxyMod3","High Gain Rows x Columns for PHOS module 3;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  Add2RawsList(h2,kHGmod3, expert, !image, !saveCorr) ;
-  TH2I * h3 = new TH2I("hHighPHOSxyMod4","High Gain Rows x Columns for PHOS module 4;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  Add2RawsList(h3,kHGmod4, expert, !image, !saveCorr) ;
-  TH2I * h4 = new TH2I("hHighPHOSxyMod5","High Gain Rows x Columns for PHOS module 5;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  Add2RawsList(h4,kHGmod5, expert, !image, !saveCorr) ;
-  TH2I * h5 = new TH2I("hLowPHOSxyMod1","Low Gain Rows x Columns for PHOS module 1;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  Add2RawsList(h5,kLGmod1, expert, !image, !saveCorr) ;
-  TH2I * h6 = new TH2I("hLowPHOSxyMod2","Low Gain Rows x Columns for PHOS module 2;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  Add2RawsList(h6,kLGmod2, expert, !image, !saveCorr) ;
-  TH2I * h7 = new TH2I("hLowPHOSxyMod3","Low Gain Rows x Columns for PHOS module 3;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  Add2RawsList(h7,kLGmod3, expert, !image, !saveCorr) ;
-  TH2I * h8 = new TH2I("hLowPHOSxyMod4","Low Gain Rows x Columns for PHOS module 4;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  Add2RawsList(h8,kLGmod4, expert, !image, !saveCorr) ;
-  TH2I * h9 = new TH2I("hLowPHOSxyMod5","Low Gain Rows x Columns for PHOS module 5;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  Add2RawsList(h9,kLGmod5, expert, !image, !saveCorr) ;
-
-  TH1I * h10 = new TH1I("hLowPhosModules",    "Low Gain Hits in EMCA PHOS modules;# of hit modules;Counts",       6, 0, 6) ;
-  h10->Sumw2() ;
+  TH2I * h0 = new TH2I("hHighPHOSxyMod0","High Gain in PHOS module 0", 64, 0, 64, 56, 0, 56) ;
+  h0->SetXTitle("x, cells"); h0->SetYTitle("z, cells");
+  Add2RawsList(h0,kHGmod0, expert, !image, !saveCorr) ;
+  TH2I * h1 = new TH2I("hHighPHOSxyMod1","High Gain in PHOS module 1", 64, 0, 64, 56, 0, 56) ;
+  h1->SetXTitle("x, cells"); h1->SetYTitle("z, cells");
+  Add2RawsList(h1,kHGmod1, expert, !image, !saveCorr) ;
+  TH2I * h2 = new TH2I("hHighPHOSxyMod2","High Gain in PHOS module 2", 64, 0, 64, 56, 0, 56) ;
+  h2->SetXTitle("x, cells"); h2->SetYTitle("z, cells");
+  Add2RawsList(h2,kHGmod2, expert, !image, !saveCorr) ;
+  TH2I * h3 = new TH2I("hHighPHOSxyMod3","High Gain in PHOS module 3", 64, 0, 64, 56, 0, 56) ;
+  h3->SetXTitle("x, cells"); h3->SetYTitle("z, cells");
+  Add2RawsList(h3,kHGmod3, expert, !image, !saveCorr) ;
+  TH2I * h4 = new TH2I("hHighPHOSxyMod4","High Gain in PHOS module 4", 64, 0, 64, 56, 0, 56) ;
+  h4->SetXTitle("x, cells"); h4->SetYTitle("z, cells");
+  Add2RawsList(h4,kHGmod4, expert, !image, !saveCorr) ;
+
+  TH2I * h5 = new TH2I("hLowPHOSxyMod0","Low Gain in PHOS module 0", 64, 0, 64, 56, 0, 56) ;
+  h5->SetXTitle("x, cells"); h5->SetYTitle("z, cells");
+  Add2RawsList(h5,kLGmod0, expert, !image, !saveCorr) ;
+  TH2I * h6 = new TH2I("hLowPHOSxyMod1","Low Gain in PHOS module 1", 64, 0, 64, 56, 0, 56) ;
+  h6->SetXTitle("x, cells"); h6->SetYTitle("z, cells");
+  Add2RawsList(h6,kLGmod1, expert, !image, !saveCorr) ;
+  TH2I * h7 = new TH2I("hLowPHOSxyMod2","Low Gain in PHOS module 2", 64, 0, 64, 56, 0, 56) ;
+  h7->SetXTitle("x, cells"); h7->SetYTitle("z, cells");
+  Add2RawsList(h7,kLGmod2, expert, !image, !saveCorr) ;
+  TH2I * h8 = new TH2I("hLowPHOSxyMod3","Low Gain in PHOS module 3", 64, 0, 64, 56, 0, 56) ;
+  h8->SetXTitle("x, cells"); h8->SetYTitle("z, cells");
+  Add2RawsList(h8,kLGmod3, expert, !image, !saveCorr) ;
+  TH2I * h9 = new TH2I("hLowPHOSxyMod4","Low Gain in PHOS module 4", 64, 0, 64, 56, 0, 56) ;
+  h9->SetXTitle("x, cells"); h9->SetYTitle("z, cells");
+  Add2RawsList(h9,kLGmod4, expert, !image, !saveCorr) ;
+
+  TH1I * h10 = new TH1I("hLowPhosModules",    "Low Gain Hits in EMCA PHOS modules", 5, 0, 5) ;
+  h10->SetXTitle("Module number");
   Add2RawsList(h10, kNmodLG, !expert, image, !saveCorr) ;
-  TH1I * h11 = new TH1I("hHighPhosModules",   "High Gain Hits in EMCA PHOS modules;# of hit modules;Counts",       6, 0, 6) ;
-  h11->Sumw2() ;
+  TH1I * h11 = new TH1I("hHighPhosModules",   "High Gain Hits in EMCA PHOS modules",5, 0, 5) ;
+  h11->SetXTitle("Module number");
   Add2RawsList(h11, kNmodHG, !expert, image, !saveCorr) ;
 
-  TH1F * h12 = new TH1F("hLowPhosRawtime", "Low Gain Time of raw hits in PHOS;Time [ns];Counts", 500, -50., 200.) ;
+  TH1F * h12 = new TH1F("hLowPhosRawtime" , "Low Gain Time of raw hits in PHOS" , 500, -50., 200.) ;
+  h12->SetXTitle("Time [samples]");
   h12->Sumw2() ;
-  Add2RawsList(h12, kLGtime, !expert, image, !saveCorr) ;
-  TH1F * h13 = new TH1F("hHighPhosRawtime", "High Gain Time of raw hits in PHOS;Time [ns];Counts", 500, -50., 200.) ;
+  Add2RawsList(h12, kLGtime, expert, !image, !saveCorr) ;
+  TH1F * h13 = new TH1F("hHighPhosRawtime", "High Gain Time of raw hits in PHOS", 500, -50., 200.) ;
+  h13->SetXTitle("Time [samples]");
   h13->Sumw2() ;
-  Add2RawsList(h13, kHGtime, !expert, image, !saveCorr) ;
+  Add2RawsList(h13, kHGtime, expert, !image, !saveCorr) ;
 
-  TH1F * h14 = new TH1F("hLowPhosRawEnergy", "Low Gain Energy of raw hits in PHOS;Energy [MeV];Counts", 500, 0., 1000.) ;
+  TH1F * h14 = new TH1F("hLowPhosRawEnergy" , "Low Gain Energy of raw hits in PHOS" , 512, 0., 1024.) ;
+  h14->SetXTitle("Energy [ADC counts]");
   h14->Sumw2() ;
   Add2RawsList(h14, kSpecLG, !expert, image, !saveCorr) ;
-  TH1F * h15 = new TH1F("hHighPhosRawEnergy", "High Gain Energy of raw hits in PHOS;Energy [MeV];Counts",500,0., 1000.) ;
+  TH1F * h15 = new TH1F("hHighPhosRawEnergy", "High Gain Energy of raw hits in PHOS", 512, 0., 1024.) ;
+  h15->SetXTitle("Energy [ADC counts]");
   h15->Sumw2() ;
   Add2RawsList(h15, kSpecHG, !expert, image, !saveCorr) ;
 
-  TH1F * h16 = new TH1F("hLowNtot", "Low Gain Total Number of raw hits in PHOS;# of hits;Counts", 500, 0., 5000.) ;
+  TH1F * h16 = new TH1F("hLowNtot" , "Low Gain Total Number of raw hits in PHOS" , 500, 0., 5000.) ;
+  h16->SetXTitle("Number of hits");
   h16->Sumw2() ;
-  Add2RawsList(h16, kNtotLG, !expert, saveCorr, image) ;
-  TH1F * h17 = new TH1F("hHighNtot", "High Gain Total Number of raw hits in PHOS;# of hits;Counts",500,0., 5000.) ;
+  Add2RawsList(h16, kNtotLG, !expert, image, saveCorr) ;
+  TH1F * h17 = new TH1F("hHighNtot", "High Gain Total Number of raw hits in PHOS", 500, 0., 5000.) ;
+  h17->SetXTitle("Number of hits");
   h17->Sumw2() ;
-  Add2RawsList(h17, kNtotHG, !expert, saveCorr, image) ;
+  Add2RawsList(h17, kNtotHG, !expert, image, saveCorr) ;
 
-  TH1F * h18 = new TH1F("hLowEtot", "Low Gain Total Energy of raw hits in PHOS;Energy [MeV];Counts", 500, 0., 5000.) ;
+  TH1F * h18 = new TH1F("hLowEtot" , "Low Gain Total Energy of raw hits in PHOS" , 500, 0., 100000.) ;
+  h18->SetXTitle("Energy [ADC counts]");
   h18->Sumw2() ;
-  Add2RawsList(h18, kEtotLG, !expert, saveCorr, image) ;
-  TH1F * h19 = new TH1F("hHighEtot", "High Gain Total Energy of raw hits in PHOS;Energy [MeV];Counts",500,0., 100000.) ;
+  Add2RawsList(h18, kEtotLG, !expert, image, saveCorr) ;
+  TH1F * h19 = new TH1F("hHighEtot", "High Gain Total Energy of raw hits in PHOS", 500, 0., 100000.) ;
+  h19->SetXTitle("Energy [ADC counts]");
   h19->Sumw2() ;
-  Add2RawsList(h19, kEtotHG, !expert, saveCorr, image) ;
-
-  TH2F * h20 = new TH2F("hQualHGxyMod1","High Gain signal quality Rows x Columns module 1;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h20->SetOption("colz");
-  Add2RawsList(h20,kHGqualMod1, expert, !image, !saveCorr) ;
-  TH2F * h21 = new TH2F("hQualHGxyMod2","High Gain signal quality Rows x Columns module 2;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h21->SetOption("colz");
-  Add2RawsList(h21,kHGqualMod2, expert, !image, !saveCorr) ;
-  TH2F * h22 = new TH2F("hQualHGxyMod3","High Gain signal quality Rows x Columns module 3;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h22->SetOption("colz");
-  Add2RawsList(h22,kHGqualMod3, expert, !image, !saveCorr) ;
-  TH2F * h23 = new TH2F("hQualHGxyMod4","High Gain signal quality Rows x Columns module 4;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h23->SetOption("colz");
-  Add2RawsList(h23,kHGqualMod4, expert, !image, !saveCorr) ;
-  TH2F * h24 = new TH2F("hQualHGxyMod5","High Gain signal quality Rows x Columns module 5;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h24->SetOption("colz");
-  Add2RawsList(h24,kHGqualMod5, expert, !image, !saveCorr) ;
-  TH2F * h25 = new TH2F("hQualLGxyMod1","Low Gain signal quality Rows x Columns module 1;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h25->SetOption("colz");
-  Add2RawsList(h25,kLGqualMod1, expert, !image, !saveCorr) ;
-  TH2F * h26 = new TH2F("hQualLGxyMod2","Low Gain signal quality Rows x Columns module 2;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h26->SetOption("colz");
-  Add2RawsList(h26,kLGqualMod2, expert, !image, !saveCorr) ;
-  TH2F * h27 = new TH2F("hQualLGxyMod3","Low Gain signal quality Rows x Columns module 3;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h27->SetOption("colz");
-  Add2RawsList(h27,kLGqualMod3, expert, !image, !saveCorr) ;
-  TH2F * h28 = new TH2F("hQualLGxyMod4","Low Gain signal quality Rows x Columns module 4;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h28->SetOption("colz");
-  Add2RawsList(h28,kLGqualMod4, expert, !image, !saveCorr) ;
-  TH2F * h29 = new TH2F("hQualLGxyMod5","Low Gain signal quality Rows x Columns module 5;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h29->SetOption("colz");
-  Add2RawsList(h29,kLGqualMod5, expert, !image, !saveCorr) ;
-
-  TH1F * h30 = new TH1F("hLGpedRMS","Low Gain pedestal RMS;Width [ADC counts];Counts",200,0.,20.) ;
+  Add2RawsList(h19, kEtotHG, !expert, image, saveCorr) ;
+
+  TH2F * h20 = new TH2F("hQualHGxyMod0","High Gain signal quality in module 0", 64, 0, 64, 56, 0, 56) ;
+  h20->SetXTitle("x, cells"); h20->SetYTitle("z, cells");
+  Add2RawsList(h20,kHGqualMod0, expert, !image, !saveCorr) ;
+  TH2F * h21 = new TH2F("hQualHGxyMod1","High Gain signal quality in module 1", 64, 0, 64, 56, 0, 56) ;
+  h21->SetXTitle("x, cells"); h21->SetYTitle("z, cells");
+  Add2RawsList(h21,kHGqualMod1, expert, !image, !saveCorr) ;
+  TH2F * h22 = new TH2F("hQualHGxyMod2","High Gain signal quality in module 2", 64, 0, 64, 56, 0, 56) ;
+  h22->SetXTitle("x, cells"); h22->SetYTitle("z, cells");
+  Add2RawsList(h22,kHGqualMod2, expert, !image, !saveCorr) ;
+  TH2F * h23 = new TH2F("hQualHGxyMod3","High Gain signal quality in module 3", 64, 0, 64, 56, 0, 56) ;
+  h23->SetXTitle("x, cells"); h23->SetYTitle("z, cells");
+  Add2RawsList(h23,kHGqualMod3, expert, !image, !saveCorr) ;
+  TH2F * h24 = new TH2F("hQualHGxyMod4","High Gain signal quality in module 4", 64, 0, 64, 56, 0, 56) ;
+  h24->SetXTitle("x, cells"); h24->SetYTitle("z, cells");
+  Add2RawsList(h24,kHGqualMod4, expert, !image, !saveCorr) ;
+
+  TH2F * h25 = new TH2F("hQualLGxyMod0","Low Gain signal quality in module 0", 64, 0, 64, 56, 0, 56) ;
+  h25->SetXTitle("x, cells"); h25->SetYTitle("z, cells");
+  Add2RawsList(h25,kLGqualMod0, expert, !image, !saveCorr) ;
+  TH2F * h26 = new TH2F("hQualLGxyMod1","Low Gain signal quality in module 1", 64, 0, 64, 56, 0, 56) ;
+  h26->SetXTitle("x, cells"); h26->SetYTitle("z, cells");
+  Add2RawsList(h26,kLGqualMod1, expert, !image, !saveCorr) ;
+  TH2F * h27 = new TH2F("hQualLGxyMod2","Low Gain signal quality in module 2", 64, 0, 64, 56, 0, 56) ;
+  h27->SetXTitle("x, cells"); h27->SetYTitle("z, cells");
+  Add2RawsList(h27,kLGqualMod2, expert, !image, !saveCorr) ;
+  TH2F * h28 = new TH2F("hQualLGxyMod3","Low Gain signal quality in module 3", 64, 0, 64, 56, 0, 56) ;
+  h28->SetXTitle("x, cells"); h28->SetYTitle("z, cells");
+  Add2RawsList(h28,kLGqualMod3, expert, !image, !saveCorr) ;
+  TH2F * h29 = new TH2F("hQualLGxyMod4","Low Gain signal quality in module 4", 64, 0, 64, 56, 0, 56) ;
+  h29->SetXTitle("x, cells"); h29->SetYTitle("z, cells");
+  Add2RawsList(h29,kLGqualMod4, expert, !image, !saveCorr) ;
+
+  TH1F * h30 = new TH1F("hLGpedRMS" ,"Low Gain pedestal RMS" ,200,0.,20.) ;
+  h30->SetXTitle("RMS [ADC counts]");
   h30->Sumw2() ;
-  Add2RawsList(h30,kLGpedRMS, !expert, image, !saveCorr) ;
-  TH1F * h31 = new TH1F("hHGpedRMS","High Gain pedestal RMS;Width [ADC counts];Counts",200,0.,20.) ;
+  Add2RawsList(h30,kLGpedRMS, expert, !image, !saveCorr) ;
+  TH1F * h31 = new TH1F("hHGpedRMS" ,"High Gain pedestal RMS",200,0.,20.) ;
+  h31->SetXTitle("RMS [ADC counts]");
   h31->Sumw2() ;
-  Add2RawsList(h31,kHGpedRMS, !expert, image, !saveCorr) ;
-
-  TH2F * h32 = new TH2F("hpedRMSHGxyMod1","High Gain pedestal RMS Rows x Columns module 1;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h32->SetOption("colz");
-  Add2RawsList(h32,kHGpedRMSMod1, expert, !image, !saveCorr) ;
-  TH2F * h33 = new TH2F("hpedRMSHGxyMod2","High Gain pedestal RMS Rows x Columns module 2;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h33->SetOption("colz");
-  Add2RawsList(h33,kHGpedRMSMod2, expert, !image, !saveCorr) ;
-  TH2F * h34 = new TH2F("hpedRMSHGxyMod3","High Gain pedestal RMS Rows x Columns module 3;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h34->SetOption("colz");
-  Add2RawsList(h34,kHGpedRMSMod3, expert, !image, !saveCorr) ;
-  TH2F * h35 = new TH2F("hpedRMSHGxyMod4","High Gain pedestal RMS Rows x Columns module 4;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h35->SetOption("colz");
-  Add2RawsList(h35,kHGpedRMSMod4, expert, !image, !saveCorr) ;
-  TH2F * h36 = new TH2F("hpedRMSHGxyMod5","High Gain pedestal RMS Rows x Columns module 5;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h36->SetOption("colz");
-  Add2RawsList(h36,kHGpedRMSMod5, expert, !image, !saveCorr) ;
-  TH2F * h37 = new TH2F("hpedRMSLGxyMod1","Low Gain pedestal RMS Rows x Columns module 1;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h37->SetOption("colz");
-  Add2RawsList(h37,kLGpedRMSMod1, expert, !image, !saveCorr) ;
-  TH2F * h38 = new TH2F("hpedRMSLGxyMod2","Low Gain pedestal RMS Rows x Columns module 2;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h38->SetOption("colz");
-  Add2RawsList(h38,kLGpedRMSMod2, expert, !image, !saveCorr) ;
-  TH2F * h39 = new TH2F("hpedRMSLGxyMod3","Low Gain pedestal RMS Rows x Columns module 3;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h39->SetOption("colz");
-  Add2RawsList(h39,kLGpedRMSMod3, expert, !image, !saveCorr) ;
-  TH2F * h40 = new TH2F("hpedRMSLGxyMod4","Low Gain pedestal RMS Rows x Columns module 4;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h40->SetOption("colz");
-  Add2RawsList(h40,kLGpedRMSMod4, expert, !image, !saveCorr) ;
-  TH2F * h41 = new TH2F("hpedRMSLGxyMod5","Low Gain pedestal RMS Rows x Columns module 5;Row #;Column #", 64, 0, 64, 56, 0, 56) ;
-  h41->SetOption("colz");
-  Add2RawsList(h41,kLGpedRMSMod5, expert, !image, !saveCorr) ;
-
-  /*
-  TH1F * h42 = new TH1F("hLGpedMean","Low Gain pedestal Mean",200,0.,20.) ;
-  h42->Sumw2() ;
-  Add2RawsList(h42,kLGpedMean, !expert, image, !saveCorr) ;
-  TH1F * h43 = new TH1F("hHGpedMean","High Gain pedestal Mean",200,0.,20.) ;
-  h43->Sumw2() ;
-  Add2RawsList(h43,kHGpedMean, !expert, image, !saveCorr) ;
-
-  TH2F * h44 = new TH2F("hpedMeanHGxyMod1","High Gain pedestal Mean Rows x Columns module 1", 64, 0, 64, 56, 0, 56) ;
-  h44->SetOption("colz");
-  Add2RawsList(h44,kHGpedMeanMod1, expert, !image, !saveCorr) ;
-  TH2F * h45 = new TH2F("hpedMeanHGxyMod2","High Gain pedestal Mean Rows x Columns module 2", 64, 0, 64, 56, 0, 56) ;
-  h45->SetOption("colz");
-  Add2RawsList(h45,kHGpedMeanMod2, expert, !image, !saveCorr) ;
-  TH2F * h46 = new TH2F("hpedMeanHGxyMod3","High Gain pedestal Mean Rows x Columns module 3", 64, 0, 64, 56, 0, 56) ;
-  h46->SetOption("colz");
-  Add2RawsList(h46,kHGpedMeanMod3, expert, !image, !saveCorr) ;
-  TH2F * h47 = new TH2F("hpedMeanHGxyMod4","High Gain pedestal Mean Rows x Columns module 4", 64, 0, 64, 56, 0, 56) ;
-  h47->SetOption("colz");
-  Add2RawsList(h47,kHGpedMeanMod4, expert, !image, !saveCorr) ;
-  TH2F * h48 = new TH2F("hpedMeanHGxyMod5","High Gain pedestal Mean Rows x Columns module 5", 64, 0, 64, 56, 0, 56) ;
-  h48->SetOption("colz");
-  Add2RawsList(h48,kHGpedMeanMod5, expert, !image, !saveCorr) ;
-  TH2F * h49 = new TH2F("hpedMeanLGxyMod1","Low Gain pedestal Mean Rows x Columns module 1", 64, 0, 64, 56, 0, 56) ;
-  h49->SetOption("colz");
-  Add2RawsList(h49,kLGpedMeanMod1, expert, !image, !saveCorr) ;
-  TH2F * h50 = new TH2F("hpedMeanLGxyMod2","Low Gain pedestal Mean Rows x Columns module 2", 64, 0, 64, 56, 0, 56) ;
-  h50->SetOption("colz");
-  Add2RawsList(h50,kLGpedMeanMod2, expert, !image, !saveCorr) ;
-  TH2F * h51 = new TH2F("hpedMeanLGxyMod3","Low Gain pedestal Mean Rows x Columns module 3", 64, 0, 64, 56, 0, 56) ;
-  h51->SetOption("colz");
-  Add2RawsList(h51,kLGpedMeanMod3, expert, !image, !saveCorr) ;
-  TH2F * h52 = new TH2F("hpedMeanLGxyMod4","Low Gain pedestal Mean Rows x Columns module 4", 64, 0, 64, 56, 0, 56) ;
-  h52->SetOption("colz");
-  Add2RawsList(h52,kLGpedMeanMod4, expert, !image, !saveCorr) ;
-  TH2F * h53 = new TH2F("hpedMeanLGxyMod5","Low Gain pedestal Mean Rows x Columns module 5", 64, 0, 64, 56, 0, 56) ;
-  h53->SetOption("colz");
-  Add2RawsList(h53,kLGpedMeanMod5, expert, !image, !saveCorr) ;
-  */
+  Add2RawsList(h31,kHGpedRMS, expert, !image, !saveCorr) ;
+
+  TH2F * h32 = new TH2F("hpedRMSHGxyMod0","High Gain pedestal RMS in module 0", 64, 0, 64, 56, 0, 56) ;
+  h32->SetXTitle("x, cells"); h32->SetYTitle("z, cells");
+  Add2RawsList(h32,kHGpedRMSMod0, expert, !image, !saveCorr) ;
+  TH2F * h33 = new TH2F("hpedRMSHGxyMod1","High Gain pedestal RMS in module 1", 64, 0, 64, 56, 0, 56) ;
+  h33->SetXTitle("x, cells"); h33->SetYTitle("z, cells");
+  Add2RawsList(h33,kHGpedRMSMod1, expert, !image, !saveCorr) ;
+  TH2F * h34 = new TH2F("hpedRMSHGxyMod2","High Gain pedestal RMS in module 2", 64, 0, 64, 56, 0, 56) ;
+  h34->SetXTitle("x, cells"); h34->SetYTitle("z, cells");
+  Add2RawsList(h34,kHGpedRMSMod2, expert, !image, !saveCorr) ;
+  TH2F * h35 = new TH2F("hpedRMSHGxyMod3","High Gain pedestal RMS in module 3", 64, 0, 64, 56, 0, 56) ;
+  h35->SetXTitle("x, cells"); h35->SetYTitle("z, cells");
+  Add2RawsList(h35,kHGpedRMSMod3, expert, !image, !saveCorr) ;
+  TH2F * h36 = new TH2F("hpedRMSHGxyMod4","High Gain pedestal RMS in module 4", 64, 0, 64, 56, 0, 56) ;
+  h36->SetXTitle("x, cells"); h36->SetYTitle("z, cells");
+  Add2RawsList(h36,kHGpedRMSMod4, expert, !image, !saveCorr) ;
+
+  TH2F * h37 = new TH2F("hpedRMSLGxyMod0","Low Gain pedestal RMS in module 0", 64, 0, 64, 56, 0, 56) ;
+  h37->SetXTitle("x, cells"); h37->SetYTitle("z, cells");
+  Add2RawsList(h37,kLGpedRMSMod0, expert, !image, !saveCorr) ;
+  TH2F * h38 = new TH2F("hpedRMSLGxyMod1","Low Gain pedestal RMS in module 1", 64, 0, 64, 56, 0, 56) ;
+  h38->SetXTitle("x, cells"); h38->SetYTitle("z, cells");
+  Add2RawsList(h38,kLGpedRMSMod1, expert, !image, !saveCorr) ;
+  TH2F * h39 = new TH2F("hpedRMSLGxyMod2","Low Gain pedestal RMS in module 2", 64, 0, 64, 56, 0, 56) ;
+  h39->SetXTitle("x, cells"); h39->SetYTitle("z, cells");
+  Add2RawsList(h39,kLGpedRMSMod2, expert, !image, !saveCorr) ;
+  TH2F * h40 = new TH2F("hpedRMSLGxyMod3","Low Gain pedestal RMS in module 3", 64, 0, 64, 56, 0, 56) ;
+  h40->SetXTitle("x, cells"); h40->SetYTitle("z, cells");
+  Add2RawsList(h40,kLGpedRMSMod3, expert, !image, !saveCorr) ;
+  TH2F * h41 = new TH2F("hpedRMSLGxyMod4","Low Gain pedestal RMS in module 4", 64, 0, 64, 56, 0, 56) ;
+  h41->SetXTitle("x, cells"); h41->SetYTitle("z, cells");
+  Add2RawsList(h41,kLGpedRMSMod4, expert, !image, !saveCorr) ;
+
 }
 
 //____________________________________________________________________________
@@ -391,17 +375,15 @@ void AliPHOSQADataMakerRec::MakeRaws(AliRawReader* rawReader)
   if     (strcmp(GetRecoParam()->EMCFitterVersion(),"v1")==0)
     fitter=new AliPHOSRawFitterv1();
   else if(strcmp(GetRecoParam()->EMCFitterVersion(),"v2")==0)
-      fitter=new AliPHOSRawFitterv2();
-    else
-      fitter=new AliPHOSRawFitterv0();
-  fitter->SubtractPedestals(GetRecoParam()->EMCSubtractPedestals());
-//   fitter->SubtractPedestals(kTRUE);
+    fitter=new AliPHOSRawFitterv2();
+  else
+    fitter=new AliPHOSRawFitterv0();
   Double_t lgEtot=0. ;
   Double_t hgEtot=0. ;
   Int_t    lgNtot=0 ;
   Int_t    hgNtot=0 ;
 
-  while (fRawStream.NextDDL()) {   // !!!!!!!!!!! YK
+  while (fRawStream.NextDDL()) {
     while (fRawStream.NextChannel()) {
       Int_t module   = fRawStream.GetModule();
       Int_t cellX    = fRawStream.GetCellX();
@@ -413,15 +395,17 @@ void AliPHOSQADataMakerRec::MakeRaws(AliRawReader* rawReader)
       fitter->SetChannelGeo(module+1,cellX+1,cellZ+1,caloFlag);
 
       if(fitter->GetAmpOffset()==0 && fitter->GetAmpThreshold()==0) {
-       Short_t value = fRawStream.GetAltroCFG1();
-       Bool_t ZeroSuppressionEnabled = (value >> 15) & 0x1;
+       Short_t altroCFG1 = fRawStream.GetAltroCFG1();
+       Bool_t ZeroSuppressionEnabled = (altroCFG1 >> 15) & 0x1;
        if(ZeroSuppressionEnabled) {
-         Short_t offset = (value >> 10) & 0xf;
-         Short_t threshold = value & 0x3ff;
+         Short_t offset = (altroCFG1 >> 10) & 0xf;
+         Short_t threshold = altroCFG1 & 0x3ff;
          fitter->SubtractPedestals(kFALSE);
          fitter->SetAmpOffset(offset);
          fitter->SetAmpThreshold(threshold);
        }
+       else
+         fitter->SubtractPedestals(kTRUE);
       }
 
       Int_t nBunches = 0;
@@ -438,32 +422,29 @@ void AliPHOSQADataMakerRec::MakeRaws(AliRawReader* rawReader)
       Double_t time   = fitter->GetTime() ;
 
       if (caloFlag == 0) { // LG
-       //if(GetRecoParam()->EMCSubtractPedestals())
        GetRawsData(kLGpedRMS)->Fill(fitter->GetPedestalRMS()) ;
-       if(energy<2.)
-         continue ;
        switch(module){
-        case 1: GetRawsData(kLGmod1)->Fill(cellX-0.5,cellZ-0.5) ; break ;
-        case 2: GetRawsData(kLGmod2)->Fill(cellX-0.5,cellZ-0.5) ; break ;
-        case 3: GetRawsData(kLGmod3)->Fill(cellX-0.5,cellZ-0.5) ; break ;
-        case 4: GetRawsData(kLGmod4)->Fill(cellX-0.5,cellZ-0.5) ; break ;
-        case 5: GetRawsData(kLGmod5)->Fill(cellX-0.5,cellZ-0.5) ; break ;
+        case 0: GetRawsData(kLGmod0)->Fill(cellX,cellZ) ; break ;
+        case 1: GetRawsData(kLGmod1)->Fill(cellX,cellZ) ; break ;
+        case 2: GetRawsData(kLGmod2)->Fill(cellX,cellZ) ; break ;
+        case 3: GetRawsData(kLGmod3)->Fill(cellX,cellZ) ; break ;
+        case 4: GetRawsData(kLGmod4)->Fill(cellX,cellZ) ; break ;
        }
        switch (module){
-        case 1: ((TH2F*)GetRawsData(kLGpedRMSMod1))->Fill(cellX-0.5,cellZ-0.5,fitter->GetPedestalRMS()) ; break ;
-        case 2: ((TH2F*)GetRawsData(kLGpedRMSMod2))->Fill(cellX-0.5,cellZ-0.5,fitter->GetPedestalRMS()) ; break ;
-        case 3: ((TH2F*)GetRawsData(kLGpedRMSMod3))->Fill(cellX-0.5,cellZ-0.5,fitter->GetPedestalRMS()) ; break ;
-        case 4: ((TH2F*)GetRawsData(kLGpedRMSMod4))->Fill(cellX-0.5,cellZ-0.5,fitter->GetPedestalRMS()) ; break ;
-        case 5: ((TH2F*)GetRawsData(kLGpedRMSMod5))->Fill(cellX-0.5,cellZ-0.5,fitter->GetPedestalRMS()) ; break ;
+        case 0: ((TH2F*)GetRawsData(kLGpedRMSMod0))->Fill(cellX,cellZ,fitter->GetPedestalRMS()) ; break ;
+        case 1: ((TH2F*)GetRawsData(kLGpedRMSMod1))->Fill(cellX,cellZ,fitter->GetPedestalRMS()) ; break ;
+        case 2: ((TH2F*)GetRawsData(kLGpedRMSMod2))->Fill(cellX,cellZ,fitter->GetPedestalRMS()) ; break ;
+        case 3: ((TH2F*)GetRawsData(kLGpedRMSMod3))->Fill(cellX,cellZ,fitter->GetPedestalRMS()) ; break ;
+        case 4: ((TH2F*)GetRawsData(kLGpedRMSMod4))->Fill(cellX,cellZ,fitter->GetPedestalRMS()) ; break ;
        }
        //if quality was evaluated, fill histo
        if(strcmp(GetRecoParam()->EMCFitterVersion(),"v1")==0){
          switch (module){
-         case 1: ((TH2F*)GetRawsData(kLGqualMod1))->Fill(cellX-0.5,cellZ-0.5,fitter->GetSignalQuality()) ; break ;
-         case 2: ((TH2F*)GetRawsData(kLGqualMod2))->Fill(cellX-0.5,cellZ-0.5,fitter->GetSignalQuality()) ; break ;
-         case 3: ((TH2F*)GetRawsData(kLGqualMod3))->Fill(cellX-0.5,cellZ-0.5,fitter->GetSignalQuality()) ; break ;
-         case 4: ((TH2F*)GetRawsData(kLGqualMod4))->Fill(cellX-0.5,cellZ-0.5,fitter->GetSignalQuality()) ; break ;
-         case 5: ((TH2F*)GetRawsData(kLGqualMod5))->Fill(cellX-0.5,cellZ-0.5,fitter->GetSignalQuality()) ; break ;
+         case 0: ((TH2F*)GetRawsData(kLGqualMod0))->Fill(cellX,cellZ,fitter->GetSignalQuality()) ; break ;
+         case 1: ((TH2F*)GetRawsData(kLGqualMod1))->Fill(cellX,cellZ,fitter->GetSignalQuality()) ; break ;
+         case 2: ((TH2F*)GetRawsData(kLGqualMod2))->Fill(cellX,cellZ,fitter->GetSignalQuality()) ; break ;
+         case 3: ((TH2F*)GetRawsData(kLGqualMod3))->Fill(cellX,cellZ,fitter->GetSignalQuality()) ; break ;
+         case 4: ((TH2F*)GetRawsData(kLGqualMod4))->Fill(cellX,cellZ,fitter->GetSignalQuality()) ; break ;
          }
        }                                  
        GetRawsData(kNmodLG)->Fill(module) ;
@@ -471,35 +452,32 @@ void AliPHOSQADataMakerRec::MakeRaws(AliRawReader* rawReader)
        GetRawsData(kSpecLG)->Fill(energy) ;    
        lgEtot+=energy ;
        lgNtot++ ;   
-      } else if (caloFlag == 1) { // HG        
-       //if this isnon-ZS run - fill pedestal RMS
-       //if(GetRecoParam()->EMCSubtractPedestals())
+      }
+      else if (caloFlag == 1) { // HG        
        GetRawsData(kHGpedRMS)->Fill(fitter->GetPedestalRMS()) ;
-       if(energy<8.)
-         continue ;
        switch (module){
-       case 1: GetRawsData(kHGmod1)->Fill(cellX-0.5,cellZ-0.5) ; break ;
-       case 2: GetRawsData(kHGmod2)->Fill(cellX-0.5,cellZ-0.5) ; break ;
-       case 3: GetRawsData(kHGmod3)->Fill(cellX-0.5,cellZ-0.5) ; break ;
-       case 4: GetRawsData(kHGmod4)->Fill(cellX-0.5,cellZ-0.5) ; break ;
-       case 5: GetRawsData(kHGmod5)->Fill(cellX-0.5,cellZ-0.5) ; break ;
+       case 0: GetRawsData(kHGmod0)->Fill(cellX,cellZ) ; break ;
+       case 1: GetRawsData(kHGmod1)->Fill(cellX,cellZ) ; break ;
+       case 2: GetRawsData(kHGmod2)->Fill(cellX,cellZ) ; break ;
+       case 3: GetRawsData(kHGmod3)->Fill(cellX,cellZ) ; break ;
+       case 4: GetRawsData(kHGmod4)->Fill(cellX,cellZ) ; break ;
        }
        switch (module){
-       case 1: ((TH2F*)GetRawsData(kHGpedRMSMod1))->Fill(cellX-0.5,cellZ-0.5,fitter->GetPedestalRMS()) ; break ;
-       case 2: ((TH2F*)GetRawsData(kHGpedRMSMod2))->Fill(cellX-0.5,cellZ-0.5,fitter->GetPedestalRMS()) ; break ;
-       case 3: ((TH2F*)GetRawsData(kHGpedRMSMod3))->Fill(cellX-0.5,cellZ-0.5,fitter->GetPedestalRMS()) ; break ;
-       case 4: ((TH2F*)GetRawsData(kHGpedRMSMod4))->Fill(cellX-0.5,cellZ-0.5,fitter->GetPedestalRMS()) ; break ;
-       case 5: ((TH2F*)GetRawsData(kHGpedRMSMod5))->Fill(cellX-0.5,cellZ-0.5,fitter->GetPedestalRMS()) ; break ;
+       case 0: ((TH2F*)GetRawsData(kHGpedRMSMod0))->Fill(cellX,cellZ,fitter->GetPedestalRMS()) ; break ;
+       case 1: ((TH2F*)GetRawsData(kHGpedRMSMod1))->Fill(cellX,cellZ,fitter->GetPedestalRMS()) ; break ;
+       case 2: ((TH2F*)GetRawsData(kHGpedRMSMod2))->Fill(cellX,cellZ,fitter->GetPedestalRMS()) ; break ;
+       case 3: ((TH2F*)GetRawsData(kHGpedRMSMod3))->Fill(cellX,cellZ,fitter->GetPedestalRMS()) ; break ;
+       case 4: ((TH2F*)GetRawsData(kHGpedRMSMod4))->Fill(cellX,cellZ,fitter->GetPedestalRMS()) ; break ;
        }               
        //if quality was evaluated, fill histo
        if(strcmp(GetRecoParam()->EMCFitterVersion(),"v1")==0){
          switch (module){
-         case 1: ((TH2F*)GetRawsData(kHGqualMod1))->Fill(cellX-0.5,cellZ-0.5,fitter->GetSignalQuality()) ; break ;
-         case 2: ((TH2F*)GetRawsData(kHGqualMod2))->Fill(cellX-0.5,cellZ-0.5,fitter->GetSignalQuality()) ; break ;
-         case 3: ((TH2F*)GetRawsData(kHGqualMod3))->Fill(cellX-0.5,cellZ-0.5,fitter->GetSignalQuality()) ; break ;
-         case 4: ((TH2F*)GetRawsData(kHGqualMod4))->Fill(cellX-0.5,cellZ-0.5,fitter->GetSignalQuality()) ; break ;
-         case 5: ((TH2F*)GetRawsData(kHGqualMod5))->Fill(cellX-0.5,cellZ-0.5,fitter->GetSignalQuality()) ; break ;
-         }
+         case 0: ((TH2F*)GetRawsData(kHGqualMod0))->Fill(cellX,cellZ,fitter->GetSignalQuality()) ; break ;
+         case 1: ((TH2F*)GetRawsData(kHGqualMod1))->Fill(cellX,cellZ,fitter->GetSignalQuality()) ; break ;
+         case 2: ((TH2F*)GetRawsData(kHGqualMod2))->Fill(cellX,cellZ,fitter->GetSignalQuality()) ; break ;
+         case 3: ((TH2F*)GetRawsData(kHGqualMod3))->Fill(cellX,cellZ,fitter->GetSignalQuality()) ; break ;
+         case 4: ((TH2F*)GetRawsData(kHGqualMod4))->Fill(cellX,cellZ,fitter->GetSignalQuality()) ; break ;
+         }       
        }
        GetRawsData(kNmodHG)->Fill(module) ; 
        GetRawsData(kHGtime)->Fill(time) ;