CMS 3D CMS Logo

Classes | Namespaces | Typedefs | Functions
RawParticle.h File Reference
#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>
#include <memory>

Go to the source code of this file.

Classes

class  RawParticle
 

Namespaces

 rawparticle
 

Typedefs

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

Functions

RawParticle rawparticle::makeMuon (bool isParticle, const math::XYZTLorentzVector &p, const math::XYZTLorentzVector &xStart)
 
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 27 of file RawParticle.h.

Definition at line 28 of file RawParticle.h.

Function Documentation

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

Definition at line 118 of file RawParticle.cc.

References alignBH_cfg::fixed, RawParticle::momentum(), connectstrParser::o, RawParticle::pid(), RawParticle::status(), and RawParticle::vertex().

118  {
119 
120  o.setf(std::ios::fixed, std::ios::floatfield);
121  o.setf(std::ios::right, std::ios::adjustfield);
122 
123 
124  o << std::setw(4) << std::setprecision(2) << p.pid() << " (";
125  o << std::setw(2) << std::setprecision(2) << p.status() << "): ";
126  o << std::setw(10) << std::setprecision(4) << p.momentum() << " ";
127  o << std::setw(10) << std::setprecision(4) << p.vertex();
128  return o;
129 
130 }
int status() const
get the particle status
Definition: RawParticle.h:297
int pid() const
get the HEP particle ID number
Definition: RawParticle.h:296
const XYZTLorentzVector & momentum() const
the momentum fourvector
Definition: RawParticle.h:340
const XYZTLorentzVector & vertex() const
the vertex fourvector
Definition: RawParticle.h:339