10 for(
size_t i = 0;
i < nDaughters; ++
i) {
18 size_t nElectrons = 0;
20 for(
size_t i = 0;
i < nDaughters; ++
i) {
30 for(
size_t i = 0;
i < nDaughters; ++
i) {
42 for(
size_t i = 0;
i < nDaughters; ++
i) {
61 out <<
"(mass/pt/eta/phi) (" << std::setiosflags(std::ios::fixed) << std::setprecision(2)
62 << p4.mass() <<
"/" << std::setprecision(1) << p4.pt() <<
"/" << std::setprecision(2) << p4.eta()
63 <<
"/" << std::setprecision(2) << p4.phi() <<
")";
71 out <<
"RecoTauPiZero: " << this->
p4() <<
74 " maxDeltaPhi: " << std::setprecision(3) <<
maxDeltaPhi() <<
75 " maxDeltaEta: " << std::setprecision(3) <<
maxDeltaEta() <<
76 " algo: " <<
algo() <<
81 out <<
"--- daughter " <<
i <<
": " <<
daughterPtr(
i)->p4() <<
virtual int pdgId() const
PDG identifier.
unsigned int nGammas(const GenJet &jet)
CandidatePtr daughterPtr(size_type i) const
reference to daughter at given position
void print(std::ostream &out=std::cout) const
virtual double eta() const
momentum pseudorapidity
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)
math::XYZTLorentzVector LorentzVector
Lorentz vector.
size_t numberOfGammas() const
Number of PFGamma constituents.
PiZeroAlgorithm algo() const
Algorithm that built this piZero.
bool algoIs(PiZeroAlgorithm algo) const
Check whether a given algo produced this pi zero.
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...