@@ -274,61 +274,52 @@ void DigitsQcCheck::beautify(std::shared_ptr<MonitorObject> mo, Quality checkRes
274274 histo->SetMaximum (zcontoursStrip.back ());
275275 histo->SetContour (zcontoursStrip.size (), zcontoursStrip.data ());
276276 histo->SetStats (0 );
277- {
278- }
279- else if (mo->getName () == " Hits" )
280- {
281- auto histo = dynamic_cast <TH1F*>(mo->getObject ());
282- if (histo) {
283- mHistoHelper .normalizeHistoTokHz (histo);
284- histo->SetStats (0 );
285- }
286- }
287-
288- else if (mo->getName () == " GBTRate" )
289- {
290- auto histo = dynamic_cast <TH1F*>(mo->getObject ());
291- if (histo) {
292- // if (mHistoHelper.getNTFs() > 0)
293- mHistoHelper .normalizeHistoTokHz (histo);
294- histo->SetMinimum (0 .);
295- TString XLabel[32 ] = { " 5R0" , " 5R1" , " 4R0" , " 4R1" , " 1R0" , " 1R1" , " 0R0" , " 0R1" ,
296- " 2R0" , " 2R1" , " 3R0" , " 3R1" , " 7R0" , " 7R1" , " 6R0" , " 6R1" ,
297- " 5L0" , " 5L1" , " 4L0" , " 4L1" , " 1L0" , " 1L1" , " 0L0" , " 0L1" ,
298- " 2L0" , " 2L1" , " 3L0" , " 3L1" , " 7L0" , " 7L1" , " 6L0" , " 6L1" };
299- for (Int_t i = 0 ; i < 32 ; ++i)
300- histo->GetXaxis ()->SetBinLabel (i + 1 , XLabel[i]);
301- histo->GetXaxis ()->SetLabelSize (0.07 );
302- histo->GetXaxis ()->SetLabelColor (4 );
303- }
304- }
305- else if (mo->getName () == " EPRate" )
306- {
307- auto histo = dynamic_cast <TH1F*>(mo->getObject ());
308- if (histo) {
309- mHistoHelper .normalizeHistoTokHz (histo);
310- histo->SetMinimum (0 .);
311- histo->GetXaxis ()->SetBinLabel (1 , " CRU0(990)-EP0" );
312- histo->GetXaxis ()->SetBinLabel (2 , " CRU0(990)-EP1" );
313- histo->GetXaxis ()->SetBinLabel (3 , " CRU1(974)-EP0" );
314- histo->GetXaxis ()->SetBinLabel (4 , " CRU1(974)-EP1" );
315- histo->GetXaxis ()->SetLabelSize (0.07 );
316- histo->GetXaxis ()->SetLabelColor (4 );
317- }
318- }
319- else if (mo->getName () == " CRURate" )
320- {
321- auto histo = dynamic_cast <TH1F*>(mo->getObject ());
322- if (histo) {
323- mHistoHelper .normalizeHistoTokHz (histo);
324- histo->SetMinimum (0 .);
325- histo->GetXaxis ()->SetBinLabel (1 , " CRU0 (990)" );
326- histo->GetXaxis ()->SetBinLabel (2 , " CRU1 (974)" );
327- histo->GetXaxis ()->SetLabelSize (0.07 );
328- histo->GetXaxis ()->SetLabelColor (4 );
329- }
330- }
331277 }
332- mHistoHelper .updateTitle (dynamic_cast <TH1*>(mo->getObject ()), mHistoHelper .getCurrentTime ());
278+ } else if (mo->getName () == " Hits" ) {
279+ auto histo = dynamic_cast <TH1F*>(mo->getObject ());
280+ if (histo) {
281+ mHistoHelper .normalizeHistoTokHz (histo);
282+ histo->SetStats (0 );
283+ }
284+ } else if (mo->getName () == " GBTRate" ) {
285+ auto histo = dynamic_cast <TH1F*>(mo->getObject ());
286+ if (histo) {
287+ // if (mHistoHelper.getNTFs() > 0)
288+ mHistoHelper .normalizeHistoTokHz (histo);
289+ histo->SetMinimum (0 .);
290+ TString XLabel[32 ] = { " 5R0" , " 5R1" , " 4R0" , " 4R1" , " 1R0" , " 1R1" , " 0R0" , " 0R1" ,
291+ " 2R0" , " 2R1" , " 3R0" , " 3R1" , " 7R0" , " 7R1" , " 6R0" , " 6R1" ,
292+ " 5L0" , " 5L1" , " 4L0" , " 4L1" , " 1L0" , " 1L1" , " 0L0" , " 0L1" ,
293+ " 2L0" , " 2L1" , " 3L0" , " 3L1" , " 7L0" , " 7L1" , " 6L0" , " 6L1" };
294+ for (Int_t i = 0 ; i < 32 ; ++i)
295+ histo->GetXaxis ()->SetBinLabel (i + 1 , XLabel[i]);
296+ histo->GetXaxis ()->SetLabelSize (0.07 );
297+ histo->GetXaxis ()->SetLabelColor (4 );
298+ }
299+ } else if (mo->getName () == " EPRate" ) {
300+ auto histo = dynamic_cast <TH1F*>(mo->getObject ());
301+ if (histo) {
302+ mHistoHelper .normalizeHistoTokHz (histo);
303+ histo->SetMinimum (0 .);
304+ histo->GetXaxis ()->SetBinLabel (1 , " CRU0(990)-EP0" );
305+ histo->GetXaxis ()->SetBinLabel (2 , " CRU0(990)-EP1" );
306+ histo->GetXaxis ()->SetBinLabel (3 , " CRU1(974)-EP0" );
307+ histo->GetXaxis ()->SetBinLabel (4 , " CRU1(974)-EP1" );
308+ histo->GetXaxis ()->SetLabelSize (0.07 );
309+ histo->GetXaxis ()->SetLabelColor (4 );
310+ }
311+ } else if (mo->getName () == " CRURate" ) {
312+ auto histo = dynamic_cast <TH1F*>(mo->getObject ());
313+ if (histo) {
314+ mHistoHelper .normalizeHistoTokHz (histo);
315+ histo->SetMinimum (0 .);
316+ histo->GetXaxis ()->SetBinLabel (1 , " CRU0 (990)" );
317+ histo->GetXaxis ()->SetBinLabel (2 , " CRU1 (974)" );
318+ histo->GetXaxis ()->SetLabelSize (0.07 );
319+ histo->GetXaxis ()->SetLabelColor (4 );
320+ }
333321 }
334- } // namespace o2::quality_control_modules::mid
322+ }
323+ mHistoHelper .updateTitle (dynamic_cast <TH1*>(mo->getObject ()), mHistoHelper .getCurrentTime ());
324+ }
325+ } // namespace o2::quality_control_modules::mid
0 commit comments