CMS 3D CMS Logo

Classes | Typedefs | Functions

/data/refman/pasoursint/CMSSW_5_3_3/src/FastSimulation/Particle/interface/RawParticle.h File Reference

#include "SimGeneral/HepPDTRecord/interface/ParticleDataTable.h"
#include "DataFormats/Math/interface/LorentzVector.h"
#include "DataFormats/Math/interface/Vector3D.h"
#include "Math/GenVector/RotationX.h"
#include "Math/GenVector/RotationY.h"
#include "Math/GenVector/RotationZ.h"
#include "Math/GenVector/Rotation3D.h"
#include "Math/GenVector/AxisAngle.h"
#include "Math/GenVector/Boost.h"
#include <string>
#include <iosfwd>

Go to the source code of this file.

Classes

class  RawParticle

Typedefs

typedef math::XYZTLorentzVector XYZTLorentzVector
typedef math::XYZVector XYZVector

Functions

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

Typedef Documentation

A prototype for a particle class. This class describes a general particle beeing a fourvector and containing a vertex (fourvector). It is defined in RawParticle.h

Author:
Stephan Wynhoff

Definition at line 15 of file RawParticle.h.

Definition at line 29 of file RawParticle.h.


Function Documentation

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

Definition at line 230 of file RawParticle.cc.

References RawParticle::momentum(), python::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;

}