MsgStreamDefs.cxx

Go to the documentation of this file.
00001 //===========================================================
00002 // implementation code associated with MsgStreamDefs
00003 //===========================================================
00004 
00005 
00006 #include "AtlfastEvent/MsgStreamDefs.h"
00007 #include <iostream>
00008 #include "GaudiKernel/MsgStream.h"
00009 #include "HepMC/GenParticle.h"
00010 #include "CLHEP/Vector/ThreeVector.h"
00011 #include "CLHEP/Vector/LorentzVector.h"
00012 
00013 
00014  
00015 MsgStream& operator << ( MsgStream& s , const Hep3Vector& v )
00016 {
00017   s << " /pT = " << v.perp() 
00018     << " /eta= " << v.pseudoRapidity() 
00019     << " /phi= " << v.phi() ;
00020   return s ;
00021 }
00022 
00023 MsgStream& operator << ( MsgStream& s , const HepLorentzVector& v )
00024 {
00025   s << " /pT = " << v.perp() 
00026     << " /eta= " << v.pseudoRapidity() 
00027     << " /phi= " << v.phi() ;
00028   return s ;
00029 }
00030 
00031 
00032 
00033 
00034 // ................................................
00035 // Message stream operators for simple debug output of HepMC::GenParticle
00036 
00037 MsgStream& operator << ( MsgStream& s, const HepMC::GenParticle& p ) 
00038 {
00039   s << "truth particle: "
00040     << " /id " << p.pdg_id()
00041     << " /pT " << p.momentum().perp() 
00042     << " /eta " << p.momentum().pseudoRapidity() 
00043     << " /phi " << p.momentum().phi() ;
00044   
00045   return s ;
00046 }
00047 
00048 MsgStream& operator << ( MsgStream& s, const HepMC::GenParticle* p ) 
00049 {
00050   return s << *p ;
00051 }
00052  
00053 
00054 
00055 
00056 
00057 
00058 
00059 
00060 
00061 
00062 
00063 
00064 
00065 
00066 
00067 
00068 
00069 

Generated on Fri Sep 21 13:00:10 2007 for AtlfastEvent by  doxygen 1.5.1