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