CMS 3D CMS Logo

Functions
RawParticle.cc File Reference
#include "CommonTools/BaseParticlePropagator/interface/RawParticle.h"
#include <cmath>

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 71 of file RawParticle.cc.

References alignBH_cfg::fixed, EcalTangentSkim_cfg::o, and AlCaHLTBitMon_ParallelJobs::p.

71  {
72  o.setf(std::ios::fixed, std::ios::floatfield);
73  o.setf(std::ios::right, std::ios::adjustfield);
74 
75  o << std::setw(4) << std::setprecision(2) << p.pid() << " (";
76  o << std::setw(2) << std::setprecision(2) << p.status() << "): ";
77  o << std::setw(10) << std::setprecision(4) << p.momentum() << " ";
78  o << std::setw(10) << std::setprecision(4) << p.vertex();
79  return o;
80 }