]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Let it be less verbose.
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 20 Oct 2005 16:56:54 +0000 (16:56 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 20 Oct 2005 16:56:54 +0000 (16:56 +0000)
(Laurent)
----------------------------------------------------------------------

MUON/mapping/AliMpPCBPainter.cxx
MUON/mapping/AliMpSlatPainter.cxx

index 555779a68a88a23d406730fa13aeb1b99ed2b24d..b95dd713154ea1e45fc7f4455863410dbe891462 100644 (file)
@@ -85,42 +85,27 @@ AliMpPCBPainter::Draw(Option_t* option)
   gr->Push();
   InitGraphContext();
 
-  std::cout << "PCB Position and Dimensions:" << std::endl;
-  GetPosition().Print();
-  GetDimensions().Print();
-
   switch (option[0])
-    {
+  {
     case 'M':
       for ( AliMpPCB::Size_t i = 0; i < fPCB->GetSize(); ++i )
-       {
-         AliMpMotifPosition* pos = fPCB->GetMotifPosition(i);
-         
-         gr->Push();
-         gr->SetPadPosForReal(pos->Position(),
-                              pos->Dimensions());
-         //      
-         std::cout << "Motif Position " << pos->GetID()
-                   << std::endl;
-         pos->GetMotif()->Print("");
-         std::cout << "Motif dimension:" << std::endl;
-         pos->GetMotif()->Dimensions().Print();
-         std::cout << "MotifPosition position:" << std::endl;
-         pos->Position().Print();
-         std::cout << "MotifPosition dimensions:" << std::endl;
-         pos->Dimensions().Print();
-         //      int id = atoi(pos->GetMotif()->GetID().Data());
-         gr->SetColor(2+i%7);
-         
-         DrawObject(pos,option+1);
-         
-         gr->Pop();
-       }
+      {
+        AliMpMotifPosition* pos = fPCB->GetMotifPosition(i);
+        
+        gr->Push();
+        gr->SetPadPosForReal(pos->Position(),
+                             pos->Dimensions());
+        gr->SetColor(gr->GetColor()+i);
+        
+        DrawObject(pos,option+1);
+        
+        gr->Pop();
+      }
       break;
     default:
       AppendPad(option);
-    }
-
+  }
+  
   gr->Pop();
 }
 
index 115918e2aa9b1f083ab1afad37d874d5777c0f7a..2832e3bc5f669e0d38030df7801ac59f34dd51cb 100644 (file)
@@ -95,7 +95,6 @@ AliMpSlatPainter::Draw(Option_t* option)
   gr->Push();
   InitGraphContext();
 
-  std::cout << "Slat Position and Dimensions:" << std::endl;
   GetPosition().Print();
   GetDimensions().Print();
 
@@ -108,7 +107,6 @@ AliMpSlatPainter::Draw(Option_t* option)
          
          gr->Push();
 
-         AliInfo(Form("PCB Pos : %7.2f %7.2f",pcb->X(),pcb->Y()));
          gr->SetPadPosForReal(TVector2(pcb->X(),pcb->Y()),
                               TVector2(pcb->DX(),pcb->DY()));
          gr->SetColor(i+2);