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

Ostream.h

Go to the documentation of this file.
00001 #ifndef Atlfast_Ostream_h
00002 #define Atlfast_Ostream_h
00003 #include "AtlfastCode/Cell.h"
00004 #include "HepMC/GenParticle.h"
00005 #include  <iostream>
00006 
00007 namespace Atlfast{
00008 
00009   ostream& operator<<(ostream& out, Cell& c){
00010     out << "Cell "<<endl;
00011     out << " eta "<<c.eta()<<endl;
00012     out << " phi "<<c.phi()<<endl;
00013     out << "  pT "<<c.pT()<<endl;
00014     out << "  eT "<<c.eT()<<endl;
00015     out << "  mT "<<c.mT()<<endl;
00016     return out;
00017   }
00018 
00019   ostream& operator<<(ostream& out, HepMC::GenParticle p){
00020     out << " id "<<p.pdg_id()<<" " 
00021         << "eta "<<p.momentum().pseudoRapidity()<<" "
00022         << "phi "<<p.momentum().phi()<<" "
00023         << " pT "<<p.momentum().perp()<<endl;
00024     return out;
00025   }
00026 }
00027 #endif
00028 
00029 
00030 
00031 

Generated on Wed Jan 23 12:58:32 2002 for Atlfast by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001