Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SimpleHit.cxx

Go to the documentation of this file.
00001 // *************************************************************************
00002 // Project         : Atlas reconstruction prototype
00003 // File            : SimpleHit.cxx
00004 // Class           : SimpleHit
00005 // Author      : Toby Burnett
00006 // Version         : 0.3
00007 // Start Date  : 13-08-1996
00008 // Last Update : 13-08-1996
00009 //
00010 // Description :
00011 //  Base hit class that stores points
00012 // *************************************************************************
00013 
00014 #include "gismo/SimpleHit.h"
00015 #include <iomanip>
00016 // *************************************************************************
00017 // Class       : StripHit
00018 // Method      : printOn
00019 // Access          : Public
00020 // Description : Print information about the hit with the "Print|response"
00021 //                               command.
00022 // Arguments   : os (std::ostream&) = the output stream
00023 // Return val. : None
00024 // *************************************************************************
00025 
00026 void SimpleHit::printOn(std::ostream& os) const
00027 {
00028     int old_precision = os.precision(1);
00029     long old_flags = os.flags();
00030     os.flags(old_flags | std::ios::fixed );
00031 
00032     os << "\tposition (r,phi,z) : "
00033             << std::setw(10) <<  m_pos.perp()
00034             << std::setw(10) <<  m_pos.phi()*180/M_PI
00035             << std::setw(10) <<  m_pos.z()
00036             << std::endl;
00037     os.precision(old_precision); os.flags(old_flags);
00038 }
00039 
00040 // *************************************************************************
00041 // Class       : StripHit
00042 // Method      : draw
00043 // Access          : Public
00044 // Description : Show the hit on the screen
00045 // Arguments   : v (gui::DisplayRep&) = list of display commands
00046 // Return val. : None
00047 // *************************************************************************
00048 
00049 void SimpleHit::draw(gui::DisplayRep& v) const
00050 {
00051         v.markerAt(m_pos);
00052 }

Generated at Mon Nov 26 18:18:34 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000