Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:46:09

0001 #include "FastSimulation/SimplifiedGeometryPropagator/interface/Particle.h"
0002 
0003 std::ostream& fastsim::operator<<(std::ostream& os, const fastsim::Particle& particle) {
0004   os << "fastsim::Particle "
0005      << " pdgId=" << particle.pdgId_ << " position=(" << particle.position_.X() << "," << particle.position_.Y()
0006      << " [R="
0007      << sqrt(particle.position_.X() * particle.position_.X() + particle.position_.Y() * particle.position_.Y()) << "],"
0008      << particle.position_.Z() << "," << particle.position_.T() << ")"
0009      << " momentum=(" << particle.momentum_.X() << "," << particle.momentum_.Y() << "," << particle.momentum_.Z() << ","
0010      << particle.momentum_.T() << ")"
0011      << " isStable=(" << particle.isStable() << ")"
0012      << " remainingProperLifeTimeC=" << particle.remainingProperLifeTimeC_;
0013   return os;
0014 }