1818#include " QualityControl/MonitorObject.h"
1919#include " QualityControl/Quality.h"
2020
21- #include < fairlogger/Logger.h>
2221#include < TList.h>
2322#include < TH1.h>
2423#include < TText.h>
@@ -30,10 +29,9 @@ void ITSTrackCheck::configure(std::string) {}
3029
3130Quality ITSTrackCheck::check (std::map<std::string, std::shared_ptr<MonitorObject>>* moMap)
3231{
33- auto mo = moMap->begin ()->second ;
3432 Quality result = Quality::Null;
3533 std::map<std::string, std::shared_ptr<MonitorObject>>::iterator iter;
36- for (iter = moMap->begin (); iter != moMap->end (); iter++ ) {
34+ for (iter = moMap->begin (); iter != moMap->end (); ++iter ) {
3735 if (iter->second ->getName () == " NClusters" ) {
3836 auto * h = dynamic_cast <TH1D *>(iter->second ->getObject ());
3937 if (h->GetMean () > 8 ) {
@@ -51,13 +49,13 @@ std::string ITSTrackCheck::getAcceptedType() { return "TH1D"; }
5149void ITSTrackCheck::beautify (std::shared_ptr<MonitorObject> mo, Quality checkResult)
5250{
5351 auto * h = dynamic_cast <TH1D *>(mo->getObject ());
54- TText * tInfo;
52+ auto * tInfo = new TText () ;
5553
5654 if (checkResult == Quality::Good) {
57- tInfo = new TText (0.1 , 0.8 , " Quality::GOOD" );
55+ tInfo-> SetText (0.1 , 0.8 , " Quality::GOOD" );
5856 tInfo->SetTextColor (kGreen );
5957 } else if (checkResult == Quality::Bad) {
60- tInfo = new TText (0.1 , 0.8 , " Quality::BAD" );
58+ tInfo-> SetText (0.1 , 0.8 , " Quality::BAD" );
6159 tInfo->SetTextColor (kRed );
6260 }
6361 tInfo->SetTextSize (17 );
0 commit comments