CMS 3D CMS Logo

Particle.cc
Go to the documentation of this file.
2 
3 std::ostream& fastsim::operator << (std::ostream& os , const fastsim::Particle & particle)
4 {
5  os << "fastsim::Particle "
6  << " pdgId=" << particle.pdgId_
7  << " position=(" << particle.position_.X() << "," << particle.position_.Y() << " [R=" << sqrt(particle.position_.X()*particle.position_.X()+particle.position_.Y()*particle.position_.Y()) << "]," << particle.position_.Z() << "," << particle.position_.T() << ")"
8  << " momentum=(" << particle.momentum_.X() << "," << particle.momentum_.Y() << "," << particle.momentum_.Z() << "," << particle.momentum_.T() << ")"
9  << " isStable=(" << particle.isStable() << ")"
10  << " remainingProperLifeTimeC=" << particle.remainingProperLifeTimeC_;
11  return os;
12 }
math::XYZTLorentzVector momentum_
momentum of the particle
Definition: Particle.h:239
T sqrt(T t)
Definition: SSEVec.h:18
const int pdgId_
pdgId of the particle
Definition: Particle.h:236
std::ostream & operator<<(std::ostream &os, const fastsim::Geometry &geometry)
Definition: Geometry.cc:166
double remainingProperLifeTimeC_
remaining proper lifetime of the particle in units of t*c
Definition: Particle.h:240
math::XYZTLorentzVector position_
position of the particle
Definition: Particle.h:238
bool isStable() const
Returns true if particle is considered stable.
Definition: Particle.h:175
Definition of a generic FastSim Particle which can be propagated through the detector (formerly Parti...
Definition: Particle.h:19