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

ParticleInfo.cxx

Go to the documentation of this file.
00001 #include "FastShowerUtils/ParticleInfo.h"
00002 #include <iostream>
00003 //
00004 namespace FastShower{
00005 
00007   ParticleInfo::ParticleInfo(double phi, 
00008                              double eta, 
00009                              double energy, 
00010                              int pdgId):
00011     m_phi(phi), m_eta(eta), m_energy(energy), m_id(pdgId){}
00013   ParticleInfo::ParticleInfo():
00014     m_phi(0.05), m_eta(0.04908), m_energy(20.), m_id(11){}
00016   std::ostream& operator<<(std::ostream& ostr, const ParticleInfo& pi){
00017     ostr<<"ParticleInfo:"
00018         <<" eta: "<<pi.eta()
00019         <<" phi: "<<pi.phi()
00020         <<" energy: "<<pi.energy()
00021         <<" id: "<<pi.id()<<endl;
00022     return ostr;
00023   }
00025   std::ostream& operator<<(std::ostream& ostr, const ParticleInfo* pi){
00026     ostr<<*pi;
00027     return ostr;
00028   }
00029 }//namespace
00030 
00031     
00032 

Generated on Tue Mar 18 11:50:01 2003 for FastShowerUtils by doxygen1.3-rc1