CMS 3D CMS Logo

RawParticle.cc File Reference

#include "FastSimulation/Particle/interface/ParticleTable.h"
#include "FastSimulation/Particle/interface/RawParticle.h"
#include <iostream>
#include <iomanip>
#include <cmath>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &o, const RawParticle &p)


Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const RawParticle p 
)

Definition at line 230 of file RawParticle.cc.

References RawParticle::momentum(), RawParticle::pid(), RawParticle::status(), and RawParticle::vertex().

00230                                                               {
00231 
00232   o.setf(std::ios::fixed, std::ios::floatfield);
00233   o.setf(std::ios::right, std::ios::adjustfield);
00234 
00235 
00236   o << std::setw(4) << std::setprecision(2) << p.pid() << " (";
00237   o << std::setw(2) << std::setprecision(2) << p.status() << "): ";
00238   o << std::setw(10) << std::setprecision(4) << p.momentum() << " ";
00239   o << std::setw(10) << std::setprecision(4) << p.vertex();
00240   return o;
00241 
00242 } 


Generated on Tue Jun 9 17:52:57 2009 for CMSSW by  doxygen 1.5.4