180 if ( !nCharged )
return kNull;
184 unsigned int trackIndex = (nCharged - 1)*(maxPiZeros + 1);
188 nPiZeros = ( nPiZeros <= maxPiZeros ) ? nPiZeros : maxPiZeros;
228 if( muonRef.
isNull() )
return false;
229 else if( muonRef.
isNonnull() )
return true;
257 out <<
"Its TauTagInfo constituents :"<<std::endl;
259 out<<
"# PF charged hadr. cand's "<<
pfTauTagInfoRef()->PFChargedHadrCands().size()<<std::endl;
260 out<<
"# PF neutral hadr. cand's "<<
pfTauTagInfoRef()->PFNeutrHadrCands().size()<<std::endl;
261 out<<
"# PF gamma cand's "<<
pfTauTagInfoRef()->PFGammaCands().size()<<std::endl;
263 if (
jetRef().isNonnull()) {
264 out <<
"Its constituents :"<< std::endl;
265 out<<
"# PF charged hadr. cand's "<<
jetRef()->chargedHadronMultiplicity()<<std::endl;
266 out<<
"# PF neutral hadr. cand's "<<
jetRef()->neutralHadronMultiplicity()<<std::endl;
267 out<<
"# PF gamma cand's "<<
jetRef()->photonMultiplicity()<<std::endl;
268 out<<
"# Electron cand's "<<
jetRef()->electronMultiplicity()<<std::endl;
270 out<<
"in detail :"<<std::endl;
272 out<<
"Pt of the PFTau "<<
pt()<<std::endl;
275 out<<
"No Lead PFCand "<<std::endl;
277 out<<
"Lead PFCand Particle Id " << (*theLeadPFCand).particleId() << std::endl;
278 out<<
"Lead PFCand Pt "<<(*theLeadPFCand).pt()<<std::endl;
279 out<<
"Lead PFCand Charge "<<(*theLeadPFCand).charge()<<std::endl;
280 out<<
"Lead PFCand TrkRef "<<(*theLeadPFCand).trackRef().isNonnull()<<std::endl;
281 out<<
"Inner point position (x,y,z) of the PFTau ("<<
vx()<<
","<<
vy()<<
","<<
vz()<<
")"<<std::endl;
282 out<<
"Charge of the PFTau "<<
charge()<<std::endl;
299 out << std::setprecision(3)
301 <<
" charge: " << tau.
charge() <<
" "
302 <<
" pt:" <<tau.
pt()<<
" "
303 <<
" eta:" <<tau.
eta()<<
" "
304 <<
" phi:" <<tau.
phi()<<
" "
305 <<
" mass:" << tau.
mass() <<
" "
float ecalStripSumEOverPLead_
bool hasMuonReference() const
float maximumHCALPFClusterEt() const
Et of the highest Et HCAL PFCluster.
int Charge
electric charge type
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
std::vector< reco::PFCandidatePtr > selectedIsolationPFNeutrHadrCands_
RecoTauPiZeroRefVector signalPiZeroCandidatesRefs_
void setMuonDecision(const bool &)
std::vector< reco::RecoTauPiZero > isolationPiZeroCandidates_
void setelectronPreIDOutput(const float &)
float isolationPFGammaCandsEtSum() const
std::vector< reco::PFCandidatePtr > selectedSignalPFCands_
const PFJetRef & jetRef() const
const std::vector< reco::PFCandidatePtr > & isolationPFCands() const
PFCandidates in isolation region.
Ptr< typename C::value_type > refToPtr(Ref< C, typename C::value_type, refhelper::FindUsingAdvance< C, typename C::value_type > > const &ref)
float isolationPFChargedHadrCandsPtSum() const
void setleadPFChargedHadrCand(const PFCandidatePtr &)
void setleadPFNeutralCand(const PFCandidatePtr &)
const PFCandidatePtr & leadPFChargedHadrCand() const
void setelectronPreIDDecision(const bool &)
std::vector< reco::PFRecoTauChargedHadron > signalTauChargedHadronCandidates_
float hcalTotOverPLead() const
bool electronPreIDDecision_
float maximumHCALPFClusterEt_
void setisolationPFCands(const std::vector< reco::PFCandidatePtr > &)
bool electronPreIDDecision() const
const std::vector< reco::PFCandidatePtr > & signalPFGammaCands() const
Gamma candidates in signal region.
float isolationPFChargedHadrCandsPtSum_
std::vector< reco::PFRecoTauChargedHadron > isolationTauChargedHadronCandidates_
float hcal3x3OverPLead() const
std::vector< reco::RecoTauPiZero > signalPiZeroCandidates_
reco::PFCandidatePtr leadPFNeutralCand_
std::vector< reco::PFCandidatePtr > selectedSignalPFGammaCands_
void sethcal3x3OverPLead(const float &)
void setisolationPFGammaCandsEtSum(const float &)
void setIsolationTauChargedHadronCandidates(const std::vector< PFRecoTauChargedHadron > &)
virtual double vy() const
y coordinate of vertex position
void setemFraction(const float &)
PFRecoTauChargedHadronRefVector isolationTauChargedHadronCandidatesRefs_
const std::vector< reco::PFCandidatePtr > & signalPFCands() const
PFCandidates in signal region.
const std::vector< reco::PFCandidatePtr > & isolationPFGammaCands() const
Gamma candidates in isolation region.
virtual reco::TrackRef track() const
reference to a Track
void setisolationPFNeutrHadrCands(const std::vector< reco::PFCandidatePtr > &)
bool muonDecision() const
hadronicDecayMode decayMode() const
bool isNonnull() const
Checks for non-null.
void setsignalPFChargedHadrCands(const std::vector< reco::PFCandidatePtr > &)
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
bool isNonnull() const
Checks for non-null.
void dump(std::ostream &out=std::cout) const
prints information on this PFTau
void setjetRef(const PFJetRef &)
CandidatePtr sourceCandidatePtr(size_type i) const
bool isNull() const
Checks for null.
void setsignalPiZeroCandidates(const std::vector< RecoTauPiZero > &)
std::ostream & operator<<(std::ostream &, BeamSpot beam)
float leadPFChargedHadrCandsignedSipt_
PFRecoTauChargedHadronRef leadTauChargedHadronCandidate() const
const std::vector< RecoTauPiZero > & signalPiZeroCandidates() const
Retrieve the association of signal region gamma candidates into candidate PiZeros.
RecoTauPiZeroRefVector isolationPiZeroCandidatesRefs_
void setIsolationPiZeroCandidatesRefs(const RecoTauPiZeroRefVector &)
void setleadPFCand(const PFCandidatePtr &)
void setCaloComp(const float &)
void setSignalTauChargedHadronCandidatesRefs(const PFRecoTauChargedHadronRefVector &)
void setisolationPFChargedHadrCandsPtSum(const float &)
void setleadPFChargedHadrCandsignedSipt(const float &)
void setsignalPFCands(const std::vector< reco::PFCandidatePtr > &)
const std::vector< reco::PFCandidatePtr > & isolationPFNeutrHadrCands() const
virtual double vz() const
z coordinate of vertex position
void setisolationPiZeroCandidates(const std::vector< RecoTauPiZero > &)
const std::vector< reco::PFCandidatePtr > & isolationPFChargedHadrCands() const
Charged candidates in isolation region.
float leadPFChargedHadrCandsignedSipt() const
void setbremsRecoveryEOverPLead(const float &)
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
const std::vector< RecoTauPiZero > & isolationPiZeroCandidates() const
Retrieve the association of isolation region gamma candidates into candidate PiZeros.
const PFTauTagInfoRef & pfTauTagInfoRef() const
const PFCandidatePtr & leadPFNeutralCand() const
virtual float mass() const GCC11_FINAL
mass
void sethcalMaxOverPLead(const float &)
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
void setIsolationTauChargedHadronCandidatesRefs(const PFRecoTauChargedHadronRefVector &)
unsigned int nCharged(const GenJet &jet)
void setisolationPFGammaCands(const std::vector< reco::PFCandidatePtr > &)
void setSegComp(const float &)
virtual int charge() const GCC11_FINAL
electric charge
PFTau * clone() const
returns a clone of the Candidate object
void setsignalPFGammaCands(const std::vector< reco::PFCandidatePtr > &)
reco::PFCandidatePtr leadPFChargedHadrCand_
void setSignalTauChargedHadronCandidates(const std::vector< PFRecoTauChargedHadron > &)
const PFCandidatePtr & leadPFCand() const
void setisolationPFChargedHadrCands(const std::vector< reco::PFCandidatePtr > &)
float bremsRecoveryEOverPLead() const
float bremsRecoveryEOverPLead_
edm::Ref< PFRecoTauChargedHadronCollection > PFRecoTauChargedHadronRef
presistent reference to a PFRecoTauChargedHadron
math::XYZTLorentzVector LorentzVector
Lorentz vector.
PFTauTagInfoRef PFTauTagInfoRef_
bool isNull() const
Checks for null.
float electronPreIDOutput_
const std::vector< reco::PFCandidatePtr > & signalPFNeutrHadrCands() const
Neutral hadrons in signal region.
virtual bool overlap(const Candidate &) const
check overlap with another candidate
std::vector< reco::PFCandidatePtr > selectedSignalPFChargedHadrCands_
void setSignalPiZeroCandidatesRefs(const RecoTauPiZeroRefVector &)
void setmaximumHCALPFClusterEt(const float &)
std::vector< reco::PFCandidatePtr > selectedIsolationPFChargedHadrCands_
std::vector< reco::PFCandidatePtr > selectedIsolationPFCands_
void setecalStripSumEOverPLead(const float &)
PFRecoTauChargedHadronRefVector signalTauChargedHadronCandidatesRefs_
virtual double vx() const
x coordinate of vertex position
size_type size() const
Size of the RefVector.
const std::vector< PFRecoTauChargedHadron > & signalTauChargedHadronCandidates() const
Retrieve the association of signal region PF candidates into candidate PFRecoTauChargedHadrons.
math::XYZPoint Point
point in the space
void sethcalTotOverPLead(const float &)
reco::PFCandidatePtr leadPFCand_
std::vector< reco::PFCandidatePtr > selectedIsolationPFGammaCands_
virtual float pt() const GCC11_FINAL
transverse momentum
const std::vector< PFRecoTauChargedHadron > & isolationTauChargedHadronCandidates() const
Retrieve the association of isolation region PF candidates into candidate PFRecoTauChargedHadron.
void setelectronPreIDTrack(const reco::TrackRef &)
float hcalMaxOverPLead() const
float electronPreIDOutput() const
reco::TrackRef electronPreIDTrack() const
void setsignalPFNeutrHadrCands(const std::vector< reco::PFCandidatePtr > &)
reco::TrackRef electronPreIDTrack_
float isolationPFGammaCandsEtSum_
const std::vector< reco::PFCandidatePtr > & signalPFChargedHadrCands() const
Charged hadrons in signal region.
float ecalStripSumEOverPLead() const
std::vector< reco::PFCandidatePtr > selectedSignalPFNeutrHadrCands_
void setpfTauTagInfoRef(const PFTauTagInfoRef)