]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Minor esthetics on DQM output message
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Jun 2012 09:42:42 +0000 (09:42 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Jun 2012 09:42:42 +0000 (09:42 +0000)
(Diego)

MUON/AliMUONTriggerQAChecker.cxx

index d23d23594d41400ff59bc23a4158c1437cfbab2d..c1745a34e6aa8bc9c60a37eecfa16198521b2c01 100644 (file)
@@ -193,13 +193,6 @@ void AliMUONTriggerQAChecker::SetupHisto(Int_t nevents, const TObjArray& message
   TPaveText* text = new TPaveText(0.25,y1,0.75,0.89,"NDC");
     
   text->AddText(Form("MTR - Total events %i", nevents));
-    
-  TIter next(&messages);
-  TObjString* str;
-    
-  while ( ( str = static_cast<TObjString*>(next()) ) ){
-    text->AddText(str->String());
-  }
 
   TString defaultText = "";  
   Int_t color = 0;
@@ -211,9 +204,16 @@ void AliMUONTriggerQAChecker::SetupHisto(Int_t nevents, const TObjArray& message
   else if ( nevents <= 20 ) {
     color = AliMUONVQAChecker::kWarningColor;
     text->AddText("Not enough events to judge");
-    text->AddText("Please wait for more statistics");
+    defaultText = "Please wait for more statistics";
   }
   else {
+    TIter next(&messages);
+    TObjString* str;
+    
+    while ( ( str = static_cast<TObjString*>(next()) ) ){
+      text->AddText(str->String());
+    }
+    
     switch ( code ) {
       case AliMUONVQAChecker::kInfo:
         color = AliMUONVQAChecker::kInfoColor;