MsgStreamDefs.cxx File Reference

#include "AtlfastEvent/MsgStreamDefs.h"
#include <iostream>
#include "GaudiKernel/MsgStream.h"
#include "HepMC/GenParticle.h"
#include "CLHEP/Vector/ThreeVector.h"
#include "CLHEP/Vector/LorentzVector.h"

Include dependency graph for MsgStreamDefs.cxx:

Go to the source code of this file.

Functions

MsgStream & operator<< (MsgStream &s, const Hep3Vector &v)
MsgStream & operator<< (MsgStream &s, const HepLorentzVector &v)
MsgStream & operator<< (MsgStream &s, const HepMC::GenParticle &p)
MsgStream & operator<< (MsgStream &s, const HepMC::GenParticle *p)


Function Documentation

MsgStream& operator<< ( MsgStream &  s,
const Hep3Vector &  v 
)

Definition at line 15 of file MsgStreamDefs.cxx.

00016 {
00017   s << " /pT = " << v.perp() 
00018     << " /eta= " << v.pseudoRapidity() 
00019     << " /phi= " << v.phi() ;
00020   return s ;
00021 }

MsgStream& operator<< ( MsgStream &  s,
const HepLorentzVector &  v 
)

Definition at line 23 of file MsgStreamDefs.cxx.

00024 {
00025   s << " /pT = " << v.perp() 
00026     << " /eta= " << v.pseudoRapidity() 
00027     << " /phi= " << v.phi() ;
00028   return s ;
00029 }

MsgStream& operator<< ( MsgStream &  s,
const HepMC::GenParticle &  p 
)

Definition at line 37 of file MsgStreamDefs.cxx.

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 }

MsgStream& operator<< ( MsgStream &  s,
const HepMC::GenParticle *  p 
)

Definition at line 48 of file MsgStreamDefs.cxx.

00049 {
00050   return s << *p ;
00051 }


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