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;
unsigned int nGammas(const GenJet &jet)
ParticleType
particle types
CandidatePtr daughterPtr(size_type i) const
reference to daughter at given position
T const * get() const
Returns C++ pointer to the item.
virtual double phi() const final
momentum azimuthal angle
void print(std::ostream &out=std::cout) const
double maxDeltaPhi() const
Maximum DeltaPhi between a constituent and the four vector.
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)
double dPhi(double phi1, double phi2)
size_t numberOfElectrons() const
Number of electron constituents.
Abs< T >::type abs(const T &t)
PiZeroAlgorithm algoName_
double deltaPhi(double phi1, double phi2)
virtual int pdgId() const final
PDG identifier.
Particle reconstructed by the particle flow algorithm.
size_t numberOfGammas() const
Number of PFGamma constituents.
virtual double eta() const final
momentum pseudorapidity
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) ...
virtual double pt() const final
transverse momentum