17 else if ( q < 0. ) this->
setPdgId(-211);
22 int status,
bool integerCharge,
28 else if ( q < 0. ) this->
setPdgId(-211);
74 return (
algo_ == algo);
79 stream <<
" Pt = " << this->
pt() <<
", eta = " << this->
eta() <<
", phi = " << this->
phi() <<
" (mass = " << this->
mass() <<
")" << std::endl;
80 stream <<
" charge = " << this->
charge() <<
" (pdgId = " << this->
pdgId() <<
")" << std::endl;
81 stream <<
"charged PFCandidate";
87 stream <<
": N/A" << std::endl;
89 stream <<
"reco::Track: ";
91 stream <<
"Pt = " <<
track_->pt() <<
" +/- " <<
track_->ptError() <<
", eta = " <<
track_->eta() <<
", phi = " <<
track_->phi() << std::endl;
96 stream <<
"N/A" << std::endl;
98 stream <<
"neutral PFCandidates:";
102 for ( std::vector<CandidatePtr>::const_iterator neutralPFCandidate =
neutralPFCandidates_.begin();
104 stream <<
" #" << idx <<
" (" << neutralPFCandidate->id() <<
":" << neutralPFCandidate->key() <<
"):" 105 <<
" Pt = " << (*neutralPFCandidate)->pt() <<
", eta = " << (*neutralPFCandidate)->eta() <<
", phi = " << (*neutralPFCandidate)->phi()
106 <<
" (pdgId = " << (*neutralPFCandidate)->pdgId() <<
")" << std::endl;
111 stream <<
"N/A" << std::endl;
119 stream <<
"algo = " << algo_string << std::endl;
CandidatePtr lostTrackCandidate_
int pdgId() const final
PDG identifier.
int Charge
electric charge type
PFRecoTauChargedHadronAlgorithm algo() const
Algorithm that built this charged hadron.
double eta() const final
momentum pseudorapidity
double pt() const final
transverse momentum
int charge() const final
electric charge
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
~PFRecoTauChargedHadron() override
destructor
void print(std::ostream &stream=std::cout) const
PFRecoTauChargedHadronAlgorithm
std::ostream & operator<<(std::ostream &, BeamSpot beam)
CandidatePtr chargedPFCandidate_
const LorentzVector & p4() const final
four-momentum Lorentz vector
std::vector< CandidatePtr > neutralPFCandidates_
const TrackPtr & getTrack() const
reference to reco::Track
bool isNonnull() const
Checks for non-null.
PFRecoTauChargedHadronAlgorithm algo_
ProductID id() const
Accessor for product ID.
math::XYZTLorentzVector LorentzVector
Lorentz vector.
virtual int charge() const =0
electric charge
Structure Point Contains parameters of Gaussian fits to DMRs.
math::XYZPointF positionAtECALEntrance_
int status() const final
status word
bool algoIs(PFRecoTauChargedHadronAlgorithm algo) const
Check whether a given algo produced this charged hadron.
const CandidatePtr & getChargedPFCandidate() const
reference to "charged" PFCandidate (either charged PFCandidate or PFNeutralHadron) ...
double phi() const final
momentum azimuthal angle
void setPdgId(int pdgId) final
const math::XYZPointF & positionAtECALEntrance() const
position at ECAL entrance
double mass() const final
mass
const std::vector< CandidatePtr > & getNeutralPFCandidates() const
references to additional neutral PFCandidates
const CandidatePtr & getLostTrackCandidate() const
reference to "lostTrack Candidate" when chadron built with tracks stored as pat::PackedCandidates ...