Go to the documentation of this file.
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()) <<
"):"
constexpr double deltaPhi(double phi1, double phi2)
virtual double eta() const =0
momentum pseudorapidity
double maxDeltaPhi() const
Maximum DeltaPhi between a constituent and the four vector.
virtual double pt() const =0
transverse momentum
size_t numberOfElectrons() const
Number of electron constituents.
double pt() const final
transverse momentum
double maxDeltaEta() const
Maxmum DeltaEta between a constituent and the four vector.
T get() const
get a component
double eta() const final
momentum pseudorapidity
int pdgId() const final
PDG identifier.
void print(std::ostream &out=std::cout) const
std::ostream & operator<<(std::ostream &, BeamSpot beam)
PiZeroAlgorithm algoName_
size_t numberOfGammas() const
Number of PFGamma constituents.
size_t numberOfDaughters() const override
number of daughters
double phi() const final
momentum azimuthal angle
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode)
Particle reconstructed by the particle flow algorithm.
Abs< T >::type abs(const T &t)
PiZeroAlgorithm algo() const
Algorithm that built this piZero.
ParticleType
particle types
virtual double phi() const =0
momentum azimuthal angle
bool algoIs(PiZeroAlgorithm algo) const
Check whether a given algo produced this pi zero.
virtual CandidatePtr daughterPtr(size_type i) const
reference to daughter at given position