CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends

reco::PFTau Class Reference

#include <PFTau.h>

Inheritance diagram for reco::PFTau:
reco::BaseTau reco::RecoCandidate reco::LeafCandidate reco::Candidate

List of all members.

Public Types

enum  hadronicDecayMode {
  kNull = -1, kOneProng0PiZero, kOneProng1PiZero, kOneProng2PiZero,
  kOneProng3PiZero, kOneProngNPiZero, kTwoProng0PiZero, kTwoProng1PiZero,
  kTwoProng2PiZero, kTwoProng3PiZero, kTwoProngNPiZero, kThreeProng0PiZero,
  kThreeProng1PiZero, kThreeProng2PiZero, kThreeProng3PiZero, kThreeProngNPiZero,
  kRareDecayMode
}

Public Member Functions

float bremsRecoveryEOverPLead () const
float caloComp () const
PFTauclone () const
 returns a clone of the Candidate object
hadronicDecayMode decayMode () const
void dump (std::ostream &out=std::cout) const
 prints information on this PFTau
float ecalStripSumEOverPLead () const
bool electronPreIDDecision () const
float electronPreIDOutput () const
reco::TrackRef electronPreIDTrack () const
float emFraction () const
bool hasMuonReference () const
float hcal3x3OverPLead () const
float hcalMaxOverPLead () const
float hcalTotOverPLead () const
const PFCandidateRefVectorisolationPFCands () const
 PFCandidates in isolation region.
const PFCandidateRefVectorisolationPFChargedHadrCands () const
 Charged candidates in isolation region.
float isolationPFChargedHadrCandsPtSum () const
const PFCandidateRefVectorisolationPFGammaCands () const
 Gamma candidates in isolation region.
float isolationPFGammaCandsEtSum () const
const PFCandidateRefVectorisolationPFNeutrHadrCands () const
const std::vector
< RecoTauPiZero > & 
isolationPiZeroCandidates () const
 Retrieve the association of isolation region gamma candidates into candidate PiZeros.
const PFJetRefjetRef () const
const PFCandidateRefleadPFCand () const
const PFCandidateRefleadPFChargedHadrCand () const
float leadPFChargedHadrCandsignedSipt () const
const PFCandidateRefleadPFNeutralCand () const
float maximumHCALPFClusterEt () const
 Et of the highest Et HCAL PFCluster.
bool muonDecision () const
size_type numberOfSourceCandidatePtrs () const
 PFTau (Charge q, const LorentzVector &, const Point &=Point(0, 0, 0))
 PFTau ()
const PFTauTagInfoRefpfTauTagInfoRef () const
float segComp () const
void setbremsRecoveryEOverPLead (const float &)
void setCaloComp (const float &)
void setecalStripSumEOverPLead (const float &)
void setelectronPreIDDecision (const bool &)
void setelectronPreIDOutput (const float &)
void setelectronPreIDTrack (const reco::TrackRef &)
void setemFraction (const float &)
void sethcal3x3OverPLead (const float &)
void sethcalMaxOverPLead (const float &)
void sethcalTotOverPLead (const float &)
void setisolationPFCands (const PFCandidateRefVector &)
void setisolationPFChargedHadrCands (const PFCandidateRefVector &)
void setisolationPFChargedHadrCandsPtSum (const float &)
void setisolationPFGammaCands (const PFCandidateRefVector &)
void setisolationPFGammaCandsEtSum (const float &)
void setisolationPFNeutrHadrCands (const PFCandidateRefVector &)
void setisolationPiZeroCandidates (const std::vector< RecoTauPiZero > &)
void setIsolationPiZeroCandidatesRefs (const RecoTauPiZeroRefVector &)
void setjetRef (const PFJetRef &)
void setleadPFCand (const PFCandidateRef &)
void setleadPFChargedHadrCand (const PFCandidateRef &)
void setleadPFChargedHadrCandsignedSipt (const float &)
void setleadPFNeutralCand (const PFCandidateRef &)
void setmaximumHCALPFClusterEt (const float &)
void setMuonDecision (const bool &)
void setpfTauTagInfoRef (const PFTauTagInfoRef)
void setSegComp (const float &)
void setsignalPFCands (const PFCandidateRefVector &)
void setsignalPFChargedHadrCands (const PFCandidateRefVector &)
void setsignalPFGammaCands (const PFCandidateRefVector &)
void setsignalPFNeutrHadrCands (const PFCandidateRefVector &)
void setsignalPiZeroCandidates (const std::vector< RecoTauPiZero > &)
void setSignalPiZeroCandidatesRefs (const RecoTauPiZeroRefVector &)
const PFCandidateRefVectorsignalPFCands () const
 PFCandidates in signal region.
const PFCandidateRefVectorsignalPFChargedHadrCands () const
 Charged hadrons in signal region.
const PFCandidateRefVectorsignalPFGammaCands () const
 Gamma candidates in signal region.
const PFCandidateRefVectorsignalPFNeutrHadrCands () const
 Neutral hadrons in signal region.
const std::vector
< RecoTauPiZero > & 
signalPiZeroCandidates () const
 Retrieve the association of signal region gamma candidates into candidate PiZeros.
CandidatePtr sourceCandidatePtr (size_type i) const
virtual ~PFTau ()

Private Member Functions

virtual bool overlap (const Candidate &) const
 check overlap with another candidate

Private Attributes

float bremsRecoveryEOverPLead_
float caloComp_
float ecalStripSumEOverPLead_
bool electronPreIDDecision_
float electronPreIDOutput_
reco::TrackRef electronPreIDTrack_
float emFraction_
float hcal3x3OverPLead_
float hcalMaxOverPLead_
float hcalTotOverPLead_
float isolationPFChargedHadrCandsPtSum_
float isolationPFGammaCandsEtSum_
std::vector< reco::RecoTauPiZeroisolationPiZeroCandidates_
RecoTauPiZeroRefVector isolationPiZeroCandidatesRefs_
reco::PFJetRef jetRef_
PFCandidateRef leadPFCand_
PFCandidateRef leadPFChargedHadrCand_
float leadPFChargedHadrCandsignedSipt_
PFCandidateRef leadPFNeutralCand_
float maximumHCALPFClusterEt_
bool muonDecision_
PFTauTagInfoRef PFTauTagInfoRef_
float segComp_
PFCandidateRefVector selectedIsolationPFCands_
PFCandidateRefVector selectedIsolationPFChargedHadrCands_
PFCandidateRefVector selectedIsolationPFGammaCands_
PFCandidateRefVector selectedIsolationPFNeutrHadrCands_
PFCandidateRefVector selectedSignalPFCands_
PFCandidateRefVector selectedSignalPFChargedHadrCands_
PFCandidateRefVector selectedSignalPFGammaCands_
PFCandidateRefVector selectedSignalPFNeutrHadrCands_
std::vector< reco::RecoTauPiZerosignalPiZeroCandidates_
RecoTauPiZeroRefVector signalPiZeroCandidatesRefs_

Friends

class reco::tau::RecoTauConstructor

Detailed Description

Definition at line 32 of file PFTau.h.


Member Enumeration Documentation

Enumerator:
kNull 
kOneProng0PiZero 
kOneProng1PiZero 
kOneProng2PiZero 
kOneProng3PiZero 
kOneProngNPiZero 
kTwoProng0PiZero 
kTwoProng1PiZero 
kTwoProng2PiZero 
kTwoProng3PiZero 
kTwoProngNPiZero 
kThreeProng0PiZero 
kThreeProng1PiZero 
kThreeProng2PiZero 
kThreeProng3PiZero 
kThreeProngNPiZero 
kRareDecayMode 

Definition at line 34 of file PFTau.h.


Constructor & Destructor Documentation

reco::PFTau::PFTau ( )
reco::PFTau::PFTau ( Charge  q,
const LorentzVector p4,
const Point vtx = Point( 0, 0, 0 ) 
)
virtual reco::PFTau::~PFTau ( ) [inline, virtual]

Definition at line 56 of file PFTau.h.

{};

Member Function Documentation

float reco::PFTau::bremsRecoveryEOverPLead ( ) const

Definition at line 163 of file PFTau.cc.

References bremsRecoveryEOverPLead_.

float reco::PFTau::caloComp ( ) const

Definition at line 189 of file PFTau.cc.

References caloComp_.

{return caloComp_;}
PFTau * reco::PFTau::clone ( void  ) const [virtual]

returns a clone of the Candidate object

Reimplemented from reco::BaseTau.

Definition at line 47 of file PFTau.cc.

References PFTau().

{ return new PFTau(*this); }
PFTau::hadronicDecayMode reco::PFTau::decayMode ( ) const

Retrieve the identified hadronic decay mode according to the number of charged and piZero candidates in the signal cone

Definition at line 130 of file PFTau.cc.

References kNull, kOneProngNPiZero, kRareDecayMode, reco::tau::helpers::nCharged(), signalPFChargedHadrCands(), signalPiZeroCandidates(), and edm::RefVector< C, T, F >::size().

Referenced by reco::tau::disc::DecayMode(), reco::operator<<(), and pat::TauJetCorrFactorsProducer::produce().

                                              {
  unsigned int nCharged = signalPFChargedHadrCands().size();
  unsigned int nPiZeros = signalPiZeroCandidates().size();
  // If no tracks exist, this is definitely not a tau!
  if(!nCharged) return kNull;
  // Find the maximum number of PiZeros our parameterization can hold
  const unsigned int maxPiZeros = kOneProngNPiZero;
  // Determine our track index
  unsigned int trackIndex = (nCharged-1)*(maxPiZeros+1);
  // Check if we handle the given number of tracks
  if(trackIndex >= kRareDecayMode) return kRareDecayMode;

  nPiZeros = (nPiZeros <= maxPiZeros) ? nPiZeros : maxPiZeros;
  return static_cast<PFTau::hadronicDecayMode>(trackIndex + nPiZeros);
}
void reco::PFTau::dump ( std::ostream &  out = std::cout) const

prints information on this PFTau

Definition at line 209 of file PFTau.cc.

References reco::LeafCandidate::charge(), isolationPFChargedHadrCands(), isolationPFChargedHadrCandsPtSum(), isolationPFGammaCands(), isolationPFGammaCandsEtSum(), jetRef(), leadPFChargedHadrCand(), maximumHCALPFClusterEt(), pfTauTagInfoRef(), reco::LeafCandidate::pt(), signalPFChargedHadrCands(), signalPFGammaCands(), edm::RefVector< C, T, F >::size(), reco::LeafCandidate::vx(), reco::LeafCandidate::vy(), and reco::LeafCandidate::vz().

Referenced by reco::tau::disc::EMFraction().

                                      {

    if(!out) return;

    if (pfTauTagInfoRef().isNonnull()) {
      out << "Its TauTagInfo constituents :"<<std::endl;
      out<<"# Tracks "<<pfTauTagInfoRef()->Tracks().size()<<std::endl;
      out<<"# PF charged hadr. cand's "<<pfTauTagInfoRef()->PFChargedHadrCands().size()<<std::endl;
      out<<"# PF neutral hadr. cand's "<<pfTauTagInfoRef()->PFNeutrHadrCands().size()<<std::endl;
      out<<"# PF gamma cand's "<<pfTauTagInfoRef()->PFGammaCands().size()<<std::endl;
    }
    if (jetRef().isNonnull()) {
      out << "Its constituents :"<< std::endl;
      out<<"# PF charged hadr. cand's "<< jetRef()->chargedHadronMultiplicity()<<std::endl;
      out<<"# PF neutral hadr. cand's "<< jetRef()->neutralHadronMultiplicity()<<std::endl;
      out<<"# PF gamma cand's "<< jetRef()->photonMultiplicity()<<std::endl;
      out<<"# Electron cand's "<< jetRef()->electronMultiplicity()<<std::endl;
    }
    out<<"in detail :"<<std::endl;

    out<<"Pt of the PFTau "<<pt()<<std::endl;
    PFCandidateRef theLeadPFCand = leadPFChargedHadrCand();
    if(!theLeadPFCand){
        out<<"No Lead PFCand "<<std::endl;
    }else{
        out<<"Lead PFCand Particle Id " << (*theLeadPFCand).particleId() << std::endl;
        out<<"Lead PFCand Pt "<<(*theLeadPFCand).pt()<<std::endl;
        out<<"Lead PFCand Charge "<<(*theLeadPFCand).charge()<<std::endl;
        out<<"Lead PFCand TrkRef "<<(*theLeadPFCand).trackRef().isNonnull()<<std::endl;
        out<<"Inner point position (x,y,z) of the PFTau ("<<vx()<<","<<vy()<<","<<vz()<<")"<<std::endl;
        out<<"Charge of the PFTau "<<charge()<<std::endl;
        out<<"Et of the highest Et HCAL PFCluster "<<maximumHCALPFClusterEt()<<std::endl;
        out<<"Number of SignalPFChargedHadrCands = "<<signalPFChargedHadrCands().size()<<std::endl;
        out<<"Number of SignalPFGammaCands = "<<signalPFGammaCands().size()<<std::endl;
        out<<"Number of IsolationPFChargedHadrCands = "<<isolationPFChargedHadrCands().size()<<std::endl;
        out<<"Number of IsolationPFGammaCands = "<<isolationPFGammaCands().size()<<std::endl;
        out<<"Sum of Pt of charged hadr. PFCandidates in isolation annulus around Lead PF = "<<isolationPFChargedHadrCandsPtSum()<<std::endl;
        out<<"Sum of Et of gamma PFCandidates in other isolation annulus around Lead PF = "<<isolationPFGammaCandsEtSum()<<std::endl;

    }
    // return out;
}
float reco::PFTau::ecalStripSumEOverPLead ( ) const

Definition at line 162 of file PFTau.cc.

References ecalStripSumEOverPLead_.

bool reco::PFTau::electronPreIDDecision ( ) const

Definition at line 166 of file PFTau.cc.

References electronPreIDDecision_.

float reco::PFTau::electronPreIDOutput ( ) const

Definition at line 165 of file PFTau.cc.

References electronPreIDOutput_.

Referenced by AntiElectronIDMVA3::MVAValue().

reco::TrackRef reco::PFTau::electronPreIDTrack ( ) const

Definition at line 164 of file PFTau.cc.

References electronPreIDTrack_.

float reco::PFTau::emFraction ( ) const

Definition at line 158 of file PFTau.cc.

References emFraction_.

Referenced by AntiElectronIDMVA3::MVAValue(), and AntiElectronIDMVA2::MVAValue().

{return emFraction_;}
bool reco::PFTau::hasMuonReference ( ) const

Definition at line 179 of file PFTau.cc.

References edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::isNull(), and leadPFChargedHadrCand_.

                                   { // check if muon ref exists
    if( leadPFChargedHadrCand_.isNull() ) return false;
    else if( leadPFChargedHadrCand_.isNonnull() ){
        reco::MuonRef muonRef = leadPFChargedHadrCand_->muonRef();
        if( muonRef.isNull() )   return false;
        else if( muonRef.isNonnull() ) return  true;
    }
    return false;
}
float reco::PFTau::hcal3x3OverPLead ( ) const

Definition at line 161 of file PFTau.cc.

References hcal3x3OverPLead_.

float reco::PFTau::hcalMaxOverPLead ( ) const

Definition at line 160 of file PFTau.cc.

References hcalMaxOverPLead_.

float reco::PFTau::hcalTotOverPLead ( ) const

Definition at line 159 of file PFTau.cc.

References hcalTotOverPLead_.

const PFCandidateRefVector & reco::PFTau::isolationPFCands ( ) const
const PFCandidateRefVector & reco::PFTau::isolationPFChargedHadrCands ( ) const
float reco::PFTau::isolationPFChargedHadrCandsPtSum ( ) const
const PFCandidateRefVector & reco::PFTau::isolationPFGammaCands ( ) const
float reco::PFTau::isolationPFGammaCandsEtSum ( ) const
const PFCandidateRefVector & reco::PFTau::isolationPFNeutrHadrCands ( ) const
const std::vector< RecoTauPiZero > & reco::PFTau::isolationPiZeroCandidates ( ) const

Retrieve the association of isolation region gamma candidates into candidate PiZeros.

Definition at line 115 of file PFTau.cc.

References i, isolationPiZeroCandidates_, isolationPiZeroCandidatesRefs_, and edm::RefVector< C, T, F >::size().

Referenced by reco::tau::RecoTauPhotonFilter::operator()(), reco::operator<<(), and RecoTauPiZeroUnembedder::produce().

                                                                       {
  // Check if the signal pi zeros are already filled
  if (isolationPiZeroCandidates_.size() < isolationPiZeroCandidatesRefs_.size()) {
    // Fill them from the refs
    for (size_t i = 0; i < isolationPiZeroCandidatesRefs_.size(); ++i) {
      isolationPiZeroCandidates_.push_back(*isolationPiZeroCandidatesRefs_[i]);
    }
  }
  return isolationPiZeroCandidates_;
}
const PFJetRef & reco::PFTau::jetRef ( ) const
const PFCandidateRef & reco::PFTau::leadPFCand ( ) const

Definition at line 64 of file PFTau.cc.

References leadPFCand_.

{return leadPFCand_;}
const PFCandidateRef & reco::PFTau::leadPFChargedHadrCand ( ) const
float reco::PFTau::leadPFChargedHadrCandsignedSipt ( ) const

Signed transverse impact parameter significance of the Track associated to the leading charged PFCandidate

Definition at line 70 of file PFTau.cc.

References leadPFChargedHadrCandsignedSipt_.

Referenced by reco::tau::disc::ImpactParameterSignificance().

const PFCandidateRef & reco::PFTau::leadPFNeutralCand ( ) const

Definition at line 63 of file PFTau.cc.

References leadPFNeutralCand_.

float reco::PFTau::maximumHCALPFClusterEt ( ) const

Et of the highest Et HCAL PFCluster.

Definition at line 154 of file PFTau.cc.

References maximumHCALPFClusterEt_.

Referenced by dump().

bool reco::PFTau::muonDecision ( ) const

Definition at line 191 of file PFTau.cc.

References muonDecision_.

{return muonDecision_;}
size_type reco::PFTau::numberOfSourceCandidatePtrs ( ) const [inline, virtual]

return the number of source Candidates ( the candidates used to construct this Candidate) in the case of taus, there is only one source candidate, which is the corresponding PFJet

Reimplemented from reco::LeafCandidate.

Definition at line 174 of file PFTau.h.

{return 1;}
bool reco::PFTau::overlap ( const Candidate ) const [private, virtual]

check overlap with another candidate

Reimplemented from reco::BaseTau.

Definition at line 204 of file PFTau.cc.

References reco::RecoCandidate::checkOverlap(), and reco::RecoCandidate::track().

                                                  {
    const RecoCandidate* theRecoCand=dynamic_cast<const RecoCandidate *>(&theCand);
    return (theRecoCand!=0 && (checkOverlap(track(),theRecoCand->track())));
}
const PFTauTagInfoRef & reco::PFTau::pfTauTagInfoRef ( ) const

Definition at line 53 of file PFTau.cc.

References PFTauTagInfoRef_.

Referenced by reco::tau::RecoTauVertexAssociator::associatedVertex(), HPSPFRecoTauAlgorithm::associateIsolationCandidates(), HPSPFRecoTauAlgorithm::buildPFTau(), dump(), and PFTauElementsOperators::PFTauElementsOperators().

                                                    {
//  edm::LogWarning("DeprecatedPFTauMember")
//      << "The PFTauTagInfoRef member is deprecated in the PFTau."
//      << " For access to the underlying PFJet, please use the jetRef() method";
  return PFTauTagInfoRef_;
}
float reco::PFTau::segComp ( ) const

Definition at line 190 of file PFTau.cc.

References segComp_.

{return segComp_;}
void reco::PFTau::setbremsRecoveryEOverPLead ( const float &  x)
void reco::PFTau::setCaloComp ( const float &  x)

Definition at line 192 of file PFTau.cc.

References caloComp_, and x.

Referenced by HPSPFRecoTauAlgorithm::applyMuonRejection().

{caloComp_ = x;}
void reco::PFTau::setecalStripSumEOverPLead ( const float &  x)
void reco::PFTau::setelectronPreIDDecision ( const bool &  x)
void reco::PFTau::setelectronPreIDOutput ( const float &  x)
void reco::PFTau::setelectronPreIDTrack ( const reco::TrackRef x)
void reco::PFTau::setemFraction ( const float &  x)
void reco::PFTau::sethcal3x3OverPLead ( const float &  x)
void reco::PFTau::sethcalMaxOverPLead ( const float &  x)
void reco::PFTau::sethcalTotOverPLead ( const float &  x)
void reco::PFTau::setisolationPFCands ( const PFCandidateRefVector myParts)
void reco::PFTau::setisolationPFChargedHadrCands ( const PFCandidateRefVector myParts)
void reco::PFTau::setisolationPFChargedHadrCandsPtSum ( const float &  x)
void reco::PFTau::setisolationPFGammaCands ( const PFCandidateRefVector myParts)
void reco::PFTau::setisolationPFGammaCandsEtSum ( const float &  x)
void reco::PFTau::setisolationPFNeutrHadrCands ( const PFCandidateRefVector myParts)
void reco::PFTau::setisolationPiZeroCandidates ( const std::vector< RecoTauPiZero > &  cands)

Definition at line 126 of file PFTau.cc.

References signalPiZeroCandidates_.

Referenced by reco::tau::RecoTauPhotonFilter::operator()().

void reco::PFTau::setIsolationPiZeroCandidatesRefs ( const RecoTauPiZeroRefVector cands)

Definition at line 111 of file PFTau.cc.

References isolationPiZeroCandidatesRefs_.

Referenced by RecoTauPiZeroUnembedder::produce().

void reco::PFTau::setjetRef ( const PFJetRef x)

Definition at line 51 of file PFTau.cc.

References jetRef_, and x.

Referenced by RecoTauProducer::produce().

void reco::PFTau::setleadPFCand ( const PFCandidateRef myLead)

Definition at line 68 of file PFTau.cc.

References leadPFCand_.

Referenced by HPSPFRecoTauAlgorithm::buildOneProng(), and HPSPFRecoTauAlgorithm::buildThreeProngs().

{ leadPFCand_=myLead;}
void reco::PFTau::setleadPFChargedHadrCand ( const PFCandidateRef myLead)
void reco::PFTau::setleadPFChargedHadrCandsignedSipt ( const float &  x)
void reco::PFTau::setleadPFNeutralCand ( const PFCandidateRef myLead)

Definition at line 67 of file PFTau.cc.

References leadPFNeutralCand_.

{ leadPFNeutralCand_=myLead;}
void reco::PFTau::setmaximumHCALPFClusterEt ( const float &  x)
void reco::PFTau::setMuonDecision ( const bool &  x)

Definition at line 194 of file PFTau.cc.

References muonDecision_, and x.

Referenced by HPSPFRecoTauAlgorithm::applyMuonRejection().

void reco::PFTau::setpfTauTagInfoRef ( const PFTauTagInfoRef  x)
void reco::PFTau::setSegComp ( const float &  x)

Definition at line 193 of file PFTau.cc.

References segComp_, and x.

Referenced by HPSPFRecoTauAlgorithm::applyMuonRejection().

{segComp_  = x;}
void reco::PFTau::setsignalPFCands ( const PFCandidateRefVector myParts)
void reco::PFTau::setsignalPFChargedHadrCands ( const PFCandidateRefVector myParts)
void reco::PFTau::setsignalPFGammaCands ( const PFCandidateRefVector myParts)

Definition at line 80 of file PFTau.cc.

References selectedSignalPFGammaCands_.

void reco::PFTau::setsignalPFNeutrHadrCands ( const PFCandidateRefVector myParts)

Definition at line 78 of file PFTau.cc.

References selectedSignalPFNeutrHadrCands_.

void reco::PFTau::setsignalPiZeroCandidates ( const std::vector< RecoTauPiZero > &  cands)

Definition at line 103 of file PFTau.cc.

References signalPiZeroCandidates_.

Referenced by reco::tau::RecoTauPhotonFilter::operator()().

void reco::PFTau::setSignalPiZeroCandidatesRefs ( const RecoTauPiZeroRefVector cands)

Definition at line 107 of file PFTau.cc.

References signalPiZeroCandidatesRefs_.

Referenced by RecoTauPiZeroUnembedder::produce().

const PFCandidateRefVector & reco::PFTau::signalPFCands ( ) const
const PFCandidateRefVector & reco::PFTau::signalPFChargedHadrCands ( ) const
const PFCandidateRefVector & reco::PFTau::signalPFGammaCands ( ) const
const PFCandidateRefVector & reco::PFTau::signalPFNeutrHadrCands ( ) const

Neutral hadrons in signal region.

Definition at line 77 of file PFTau.cc.

References selectedSignalPFNeutrHadrCands_.

Referenced by reco::operator<<().

const std::vector< RecoTauPiZero > & reco::PFTau::signalPiZeroCandidates ( ) const

Retrieve the association of signal region gamma candidates into candidate PiZeros.

Definition at line 92 of file PFTau.cc.

References i, signalPiZeroCandidates_, signalPiZeroCandidatesRefs_, and edm::RefVector< C, T, F >::size().

Referenced by reco::tau::disc::Dalitz2(), decayMode(), reco::tau::helpers::nGammas(), reco::tau::RecoTauPhotonFilter::operator()(), reco::operator<<(), reco::tau::disc::PiZeroAngle(), reco::tau::disc::PiZeroEta(), reco::tau::disc::PiZeroPt(), and RecoTauPiZeroUnembedder::produce().

                                                                    {
  // Check if the signal pi zeros are already filled
  if (signalPiZeroCandidates_.size() < signalPiZeroCandidatesRefs_.size()) {
    // Fill them from the refs
    for (size_t i = 0; i < signalPiZeroCandidatesRefs_.size(); ++i) {
      signalPiZeroCandidates_.push_back(*signalPiZeroCandidatesRefs_[i]);
    }
  }
  return signalPiZeroCandidates_;
}
CandidatePtr reco::PFTau::sourceCandidatePtr ( size_type  i) const [virtual]

return a RefToBase to the source Candidates ( the candidates used to construct this Candidate)

Reimplemented from reco::LeafCandidate.

Definition at line 198 of file PFTau.cc.

References jetRef(), and edm::refToPtr().

                                                          {
    if( i!=0 ) return CandidatePtr();
    return  refToPtr( jetRef() );
}

Friends And Related Function Documentation

friend class reco::tau::RecoTauConstructor [friend]

Definition at line 184 of file PFTau.h.


Member Data Documentation

Definition at line 203 of file PFTau.h.

Referenced by bremsRecoveryEOverPLead(), PFTau(), and setbremsRecoveryEOverPLead().

float reco::PFTau::caloComp_ [private]

Definition at line 207 of file PFTau.h.

Referenced by caloComp(), PFTau(), and setCaloComp().

Definition at line 202 of file PFTau.h.

Referenced by ecalStripSumEOverPLead(), PFTau(), and setecalStripSumEOverPLead().

Definition at line 189 of file PFTau.h.

Referenced by electronPreIDDecision(), PFTau(), and setelectronPreIDDecision().

Definition at line 204 of file PFTau.h.

Referenced by electronPreIDOutput(), PFTau(), and setelectronPreIDOutput().

Definition at line 214 of file PFTau.h.

Referenced by electronPreIDTrack(), and setelectronPreIDTrack().

float reco::PFTau::emFraction_ [private]

Definition at line 198 of file PFTau.h.

Referenced by emFraction(), PFTau(), and setemFraction().

Definition at line 201 of file PFTau.h.

Referenced by hcal3x3OverPLead(), PFTau(), and sethcal3x3OverPLead().

Definition at line 200 of file PFTau.h.

Referenced by hcalMaxOverPLead(), PFTau(), and sethcalMaxOverPLead().

Definition at line 199 of file PFTau.h.

Referenced by hcalTotOverPLead(), PFTau(), and sethcalTotOverPLead().

Definition at line 194 of file PFTau.h.

Referenced by isolationPFGammaCandsEtSum(), PFTau(), and setisolationPFGammaCandsEtSum().

Definition at line 233 of file PFTau.h.

Referenced by isolationPiZeroCandidates().

Definition at line 229 of file PFTau.h.

Referenced by isolationPiZeroCandidates(), and setIsolationPiZeroCandidatesRefs().

Definition at line 210 of file PFTau.h.

Referenced by jetRef(), and setjetRef().

Definition at line 213 of file PFTau.h.

Referenced by leadPFCand(), and setleadPFCand().

Definition at line 212 of file PFTau.h.

Referenced by hasMuonReference(), leadPFChargedHadrCand(), and setleadPFChargedHadrCand().

Definition at line 213 of file PFTau.h.

Referenced by leadPFNeutralCand(), and setleadPFNeutralCand().

Definition at line 195 of file PFTau.h.

Referenced by maximumHCALPFClusterEt(), PFTau(), and setmaximumHCALPFClusterEt().

Definition at line 188 of file PFTau.h.

Referenced by muonDecision(), PFTau(), and setMuonDecision().

Definition at line 211 of file PFTau.h.

Referenced by pfTauTagInfoRef(), and setpfTauTagInfoRef().

float reco::PFTau::segComp_ [private]

Definition at line 208 of file PFTau.h.

Referenced by PFTau(), segComp(), and setSegComp().

Definition at line 223 of file PFTau.h.

Referenced by isolationPFCands(), and setisolationPFCands().

Definition at line 223 of file PFTau.h.

Referenced by isolationPFChargedHadrCands(), and setisolationPFChargedHadrCands().

Definition at line 223 of file PFTau.h.

Referenced by isolationPFGammaCands(), and setisolationPFGammaCands().

Definition at line 223 of file PFTau.h.

Referenced by isolationPFNeutrHadrCands(), and setisolationPFNeutrHadrCands().

Definition at line 217 of file PFTau.h.

Referenced by setsignalPFCands(), and signalPFCands().

Definition at line 217 of file PFTau.h.

Referenced by setsignalPFChargedHadrCands(), and signalPFChargedHadrCands().

Definition at line 217 of file PFTau.h.

Referenced by setsignalPFGammaCands(), and signalPFGammaCands().

Definition at line 217 of file PFTau.h.

Referenced by setsignalPFNeutrHadrCands(), and signalPFNeutrHadrCands().

Definition at line 228 of file PFTau.h.

Referenced by setSignalPiZeroCandidatesRefs(), and signalPiZeroCandidates().