11 for(
size_t i = 0;
i < nDaughters; ++
i) {
19 size_t nElectrons = 0;
21 for(
size_t i = 0;
i < nDaughters; ++
i) {
31 for(
size_t i = 0;
i < nDaughters; ++
i) {
43 for(
size_t i = 0;
i < nDaughters; ++
i) {
77 std::cout <<
"Pt = " << this->
pt() <<
", eta = " << this->
eta() <<
", phi = " << this->
phi() << std::endl;
79 for (
size_t iDaughter = 0; iDaughter < numDaughters; ++iDaughter ) {
81 std::cout <<
" daughter #" << iDaughter <<
" (" << getPFCandidateType(daughter->
particleId()) <<
"):" 82 <<
" Pt = " << daughter->
pt() <<
", eta = " << daughter->
eta() <<
", phi = " << daughter->
phi() << std::endl;
virtual double pt() const final
transverse momentum
unsigned int nGammas(const GenJet &jet)
ParticleType
particle types
virtual double eta() const final
momentum pseudorapidity
CandidatePtr daughterPtr(size_type i) const
reference to daughter at given position
T const * get() const
Returns C++ pointer to the item.
void print(std::ostream &out=std::cout) const
double maxDeltaPhi() const
Maximum DeltaPhi between a constituent and the four vector.
virtual double phi() const final
momentum azimuthal angle
double maxDeltaEta() const
Maxmum DeltaEta between a constituent and the four vector.
virtual size_t numberOfDaughters() const
number of daughters
std::ostream & operator<<(std::ostream &, BeamSpot beam)
virtual int pdgId() const final
PDG identifier.
size_t numberOfElectrons() const
Number of electron constituents.
Abs< T >::type abs(const T &t)
PiZeroAlgorithm algoName_
double deltaPhi(double phi1, double phi2)
Particle reconstructed by the particle flow algorithm.
size_t numberOfGammas() const
Number of PFGamma constituents.
virtual ParticleType particleId() const
PiZeroAlgorithm algo() const
Algorithm that built this piZero.
bool algoIs(PiZeroAlgorithm algo) const
Check whether a given algo produced this pi zero.
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...