16 simtrk.momentum().px(), simtrk.momentum().py(), simtrk.momentum().pz(), simtrk.momentum().E());
25 const std::vector<uint32_t> SCs,
34 simtrk.momentum().px(), simtrk.momentum().py(), simtrk.momentum().pz(), simtrk.momentum().E());
44 s <<
"CP momentum, q, ID, & Event #: " <<
tp.p4() <<
" " <<
tp.charge() <<
" " <<
tp.pdgId() <<
" " 45 <<
tp.eventId().bunchCrossing() <<
"." <<
tp.eventId().event() << std::endl;
48 s <<
" HepMC Track Momentum " << (*hepT)->momentum().rho() << std::endl;
52 s <<
" Geant Track Momentum " << g4T->momentum() << std::endl;
53 s <<
" Geant Track ID & type " << g4T->trackId() <<
" " << g4T->type() << std::endl;
54 if (g4T->type() !=
tp.pdgId()) {
55 s <<
" Mismatch b/t MtdSimTrackster and Geant types" << std::endl;
58 s <<
" # of clusters = " <<
tp.clusters_.size() << std::endl;
void addG4Track(const SimTrack &t)
float time() const
returns the time of the cluster
std::vector< SimTrack >::const_iterator g4t_iterator
std::ostream & operator<<(std::ostream &s, MtdSimTrackster const &tp)
Monte Carlo truth information used for tracking validation.
std::vector< uint32_t > clusters_
GlobalPoint posAtEntrance_
const std::vector< SimTrack > & g4Tracks() const
math::XYZTLorentzVectorF theMomentum_