17 else if ( q < 0. ) this->
setPdgId(-211);
22 int status,
bool integerCharge,
28 else if ( q < 0. ) this->
setPdgId(-211);
69 return (
algo_ == algo);
90 stream <<
" Pt = " << this->
pt() <<
", eta = " << this->
eta() <<
", phi = " << this->
phi() <<
" (mass = " << this->
mass() <<
")" << std::endl;
91 stream <<
" charge = " << this->
charge() <<
" (pdgId = " << this->
pdgId() <<
")" << std::endl;
92 stream <<
"charged PFCandidate";
96 <<
" (type = " << getPFCandidateType(
chargedPFCandidate_->particleId()) <<
")" << std::endl;
98 stream <<
": N/A" << std::endl;
100 stream <<
"reco::Track: ";
102 stream <<
"Pt = " <<
track_->pt() <<
" +/- " <<
track_->ptError() <<
", eta = " <<
track_->eta() <<
", phi = " <<
track_->phi() << std::endl;
104 stream <<
"N/A" << std::endl;
106 stream <<
"neutral PFCandidates:";
110 for ( std::vector<PFCandidatePtr>::const_iterator neutralPFCandidate =
neutralPFCandidates_.begin();
112 stream <<
" #" << idx <<
" (" << neutralPFCandidate->id() <<
":" << neutralPFCandidate->key() <<
"):"
113 <<
" Pt = " << (*neutralPFCandidate)->pt() <<
", eta = " << (*neutralPFCandidate)->eta() <<
", phi = " << (*neutralPFCandidate)->phi()
114 <<
" (type = " << getPFCandidateType((*neutralPFCandidate)->particleId()) <<
")" << std::endl;
119 stream <<
"N/A" << std::endl;
127 stream <<
"algo = " << algo_string << std::endl;
int Charge
electric charge type
PFRecoTauChargedHadronAlgorithm algo() const
Algorithm that built this charged hadron.
ParticleType
particle types
virtual int pdgId() const GCC11_FINAL
PDG identifier.
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
PFCandidatePtr chargedPFCandidate_
void print(std::ostream &stream=std::cout) const
PFRecoTauChargedHadronAlgorithm
~PFRecoTauChargedHadron()
destructor
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
bool isNonnull() const
Checks for non-null.
std::ostream & operator<<(std::ostream &, BeamSpot beam)
ProductID id() const
Accessor for product ID.
virtual int charge() const =0
electric charge
const TrackPtr & getTrack() const
reference to reco::Track
PFRecoTauChargedHadronAlgorithm algo_
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
virtual float mass() const GCC11_FINAL
mass
virtual int charge() const GCC11_FINAL
electric charge
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
const std::vector< PFCandidatePtr > & getNeutralPFCandidates() const
references to additional neutral PFCandidates
std::vector< PFCandidatePtr > neutralPFCandidates_
math::XYZTLorentzVector LorentzVector
Lorentz vector.
math::XYZPointF positionAtECALEntrance_
bool algoIs(PFRecoTauChargedHadronAlgorithm algo) const
Check whether a given algo produced this charged hadron.
math::XYZPoint Point
point in the space
virtual float pt() const GCC11_FINAL
transverse momentum
virtual void setPdgId(int pdgId) GCC11_FINAL
const math::XYZPointF & positionAtECALEntrance() const
position at ECAL entrance
const PFCandidatePtr & getChargedPFCandidate() const
reference to "charged" PFCandidate (either charged PFCandidate or PFNeutralHadron) ...