]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
In Print(): added an option to print area borders
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Nov 2007 11:22:48 +0000 (11:22 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Nov 2007 11:22:48 +0000 (11:22 +0000)
MUON/mapping/AliMpArea.cxx

index 66e8734eb0335b435a12cd3a0e2d311588f3ff1c..5139338bbdac5aacd95d6f99cf99eec32370c74a 100755 (executable)
@@ -233,9 +233,22 @@ Bool_t AliMpArea::Overlap(const AliMpArea& area) const
 
 //_____________________________________________________________________________
 void
-AliMpArea::Print(Option_t*) const
+AliMpArea::Print(Option_t* opt) const
 {
 /// Printing
+/// When option is set to B (borders), the area boreders will be printed 
+/// instead of default parameters
+
+  
+  if ( opt[0] == 'B' ) {
+    cout << "Area x-borders: (" 
+         << LeftBorder() << ", " << RightBorder() << ") " 
+        << " y-borders: (" 
+         << DownBorder() << ", " << UpBorder() << ") " 
+        << endl;
+    return;
+
+  }       
 
   cout << (*this) << endl;
 }