CMS 3D CMS Logo

Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/FastSimulation/Particle/src/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(), connectstrParser::o, RawParticle::pid(), RawParticle::status(), and RawParticle::vertex().

                                                              {

  o.setf(std::ios::fixed, std::ios::floatfield);
  o.setf(std::ios::right, std::ios::adjustfield);


  o << std::setw(4) << std::setprecision(2) << p.pid() << " (";
  o << std::setw(2) << std::setprecision(2) << p.status() << "): ";
  o << std::setw(10) << std::setprecision(4) << p.momentum() << " ";
  o << std::setw(10) << std::setprecision(4) << p.vertex();
  return o;

}