10 for (
size_t i = 0;
i < nDaughters; ++
i) {
20 for (
size_t i = 0;
i < nDaughters; ++
i) {
30 for (
size_t i = 0;
i < nDaughters; ++
i) {
41 for (
size_t i = 0;
i < nDaughters; ++
i) {
58 return "PFChargedHadron";
66 return "PFNeutralHadron";
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()
constexpr double deltaPhi(double phi1, double phi2)
int pdgId() const final
PDG identifier.
ParticleType
particle types
double eta() const final
momentum pseudorapidity
T const * get() const
Returns C++ pointer to the item.
double pt() const final
transverse momentum
void print(std::ostream &out=std::cout) const
size_t numberOfDaughters() const override
number of daughters
double maxDeltaPhi() const
Maximum DeltaPhi between a constituent and the four vector.
double maxDeltaEta() const
Maxmum DeltaEta between a constituent and the four vector.
std::ostream & operator<<(std::ostream &, BeamSpot beam)
size_t numberOfElectrons() const
Number of electron constituents.
Abs< T >::type abs(const T &t)
PiZeroAlgorithm algoName_
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
virtual CandidatePtr daughterPtr(size_type i) const
reference to daughter at given position
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.
double phi() const final
momentum azimuthal angle