13 const vector<int>& daughterIds,
15 const std::vector<unsigned>& recHitContrib,
16 const std::vector<double>& recHitContribFrac)
21 daughterIds_(daughterIds),
22 rectrackId_(rectrackId),
23 recHitContrib_(recHitContrib),
24 recHitContribFrac_(recHitContribFrac) {}
28 pdgCode_(
other.pdgCode_),
30 motherId_(
other.motherId_),
31 daughterIds_(
other.daughterIds_),
32 rectrackId_(
other.rectrackId_),
33 recHitContrib_(
other.recHitContrib_),
34 recHitContribFrac_(
other.recHitContribFrac_) {}
42 out << setiosflags(ios::right);
45 out <<
"Particle #" << particle.
id() <<
", mother = " << setw(2) << particle.
motherId();
47 out << setprecision(1);
48 out <<
", charge = " << setw(5) << particle.
charge();
49 out << setprecision(3);
52 int partId = particle.
pdgCode();
444 cout <<
"Unknown code : " << partId << endl;
448 out <<
", pdg=" << setw(6) << particle.
pdgCode() << setw(6)
453 <<
", pT =" << setw(7) << closestApproach.
momentum().Pt() <<
", E =" << setw(7)
458 out <<
"\tdaughters : ";
const math::XYZTLorentzVector & momentum() const
4-momenta quadrivector
Base class for particle flow input reconstructed tracks and simulated particles.
std::ostream & operator<<(std::ostream &, BeamSpot beam)
Point of closest approach from beam axis (initial point in the case of PFSimParticle) ...
true particle for particle flow
const std::vector< int > & daughterIds() const
const reco::PFTrajectoryPoint & trajectoryPoint(unsigned index) const
A PFTrack holds several trajectory points, which basically contain the position and momentum of a tra...