Particle reconstructed by the particle flow algorithm. More...
#include <PFCandidate.h>
Public Member Functions | |
void | addElementInBlock (const reco::PFBlockRef &blockref, unsigned elementIndex) |
add an element to the current PFCandidate More... | |
const reco::Muon::MuonTrackType | bestMuonTrackType () const |
get the Best Muon Track Ref More... | |
const reco::Track * | bestTrack () const override |
PFCandidate * | clone () const override |
return a clone More... | |
reco::ConversionRef | conversionRef () const |
return a reference to the original conversion More... | |
double | deltaP () const |
uncertainty on 3-momentum More... | |
reco::PFDisplacedVertexRef | displacedVertexRef (Flags type) const |
float | dxyError () const override |
uncertainty on dxy More... | |
float | dzError () const override |
uncertainty on dz More... | |
double | ecalEnergy () const |
return corrected Ecal energy More... | |
reco::PFCandidateEGammaExtraRef | egammaExtraRef () const |
return a reference to the EGamma extra More... | |
reco::PFCandidateElectronExtraRef | electronExtraRef () const |
return a reference to the electron extra More... | |
const ElementsInBlocks & | elementsInBlocks () const |
bool | flag (Flags theFlag) const |
return a given flag More... | |
reco::GsfElectronRef | gsfElectronRef () const |
return a reference to the corresponding GsfElectron if any More... | |
reco::GsfTrackRef | gsfTrackRef () const |
float | hcalDepthEnergyFraction (unsigned int depth) const |
fraction of hcal energy at a given depth (depth = 1 .. 7) More... | |
const std::array< float, 7 > & | hcalDepthEnergyFractions () const |
fraction of hcal energy at a given depth (index 0..6 for depth 1..7) More... | |
double | hcalEnergy () const |
return corrected Hcal energy More... | |
double | hoEnergy () const |
return corrected Hcal energy More... | |
bool | isTimeValid () const |
do we have a valid time information More... | |
reco::MuonRef | muonRef () const |
float | mva_e_mu () const |
mva for electron-muon discrimination More... | |
float | mva_e_pi () const |
mva for electron-pion discrimination More... | |
float | mva_gamma_nh () const |
mva for neutral hadron - gamma discrimination More... | |
float | mva_Isolated () const |
float | mva_nothing_gamma () const |
mva for gamma detection More... | |
float | mva_nothing_nh () const |
mva for neutral hadron detection More... | |
float | mva_pi_mu () const |
mva for pi-muon discrimination More... | |
size_t | numberOfSourceCandidatePtrs () const override |
PFCandidate & | operator= (PFCandidate const &) |
virtual ParticleType | particleId () const |
PFCandidate () | |
default constructor More... | |
PFCandidate (const PFCandidatePtr &sourcePtr) | |
constructor from a reference (keeps track of source relationship) More... | |
PFCandidate (Charge q, const LorentzVector &p4, ParticleType particleId) | |
PFCandidate (const PFCandidate &) | |
copy constructor More... | |
reco::PFCandidatePhotonExtraRef | photonExtraRef () const |
return a reference to the photon extra More... | |
reco::PhotonRef | photonRef () const |
return a reference to the corresponding Photon if any More... | |
const math::XYZPointF & | positionAtECALEntrance () const |
double | pS1Energy () const |
return corrected PS1 energy More... | |
double | pS2Energy () const |
return corrected PS2 energy More... | |
double | rawEcalEnergy () const |
return corrected Ecal energy More... | |
double | rawHcalEnergy () const |
return raw Hcal energy More... | |
double | rawHoEnergy () const |
return raw Hcal energy More... | |
void | rescaleMomentum (double rescaleFactor) |
particle momentum *= rescaleFactor More... | |
void | set_mva_e_mu (float mva) |
set mva for electron-muon discrimination More... | |
void | set_mva_e_pi (float mvaNI) |
void | set_mva_gamma_nh (float mva) |
set mva for neutral hadron - gamma discrimination More... | |
void | set_mva_Isolated (float mvaI) |
void | set_mva_nothing_gamma (float mva) |
set mva for gamma detection More... | |
void | set_mva_nothing_nh (float mva) |
set mva for neutral hadron detection More... | |
void | set_mva_pi_mu (float mva) |
set mva for pi-muon discrimination More... | |
void | setConversionRef (const reco::ConversionRef &ref) |
set ref to original reco conversion More... | |
void | setDeltaP (double dp) |
set uncertainty on momentum More... | |
void | setDisplacedVertexRef (const reco::PFDisplacedVertexRef &ref, Flags flag) |
set displaced vertex reference More... | |
void | setEcalEnergy (float eeRaw, float eeCorr) |
set corrected Ecal energy More... | |
void | setFlag (Flags theFlag, bool value) |
set a given flag More... | |
void | setGsfElectronRef (const reco::GsfElectronRef &ref) |
set GsfElectronRef More... | |
void | setGsfTrackRef (const reco::GsfTrackRef &ref) |
set gsftrack reference More... | |
void | setHcalDepthEnergyFractions (const std::array< float, 7 > &fracs) |
set the fraction of hcal energy as function of depth (index 0..6 for depth 1..7) More... | |
void | setHcalEnergy (float ehRaw, float ehCorr) |
set corrected Hcal energy More... | |
void | setHoEnergy (float eoRaw, float eoCorr) |
set corrected Hcal energy More... | |
void | setMuonRef (const reco::MuonRef &ref) |
set muon reference More... | |
void | setMuonTrackType (const reco::Muon::MuonTrackType &type) |
set the Best Muon Track Ref More... | |
void | setParticleType (ParticleType type) |
set Particle Type More... | |
void | setPFEGammaExtraRef (const reco::PFCandidateEGammaExtraRef &ref) |
set the PF EGamma Extra Ref More... | |
void | setPFElectronExtraRef (const reco::PFCandidateElectronExtraRef &ref) |
set the PF Electron Extra Ref More... | |
void | setPFPhotonExtraRef (const reco::PFCandidatePhotonExtraRef &ref) |
set the PF Photon Extra Ref More... | |
void | setPhotonRef (const reco::PhotonRef &phRef) |
set ref to the corresponding reco::Photon if any More... | |
void | setPositionAtECALEntrance (const math::XYZPointF &pos) |
set position at ECAL entrance More... | |
void | setPs1Energy (float e1) |
set corrected PS1 energy More... | |
void | setPs2Energy (float e2) |
set corrected PS2 energy More... | |
void | setSourceCandidatePtr (const PFCandidatePtr &ptr) |
void | setSuperClusterRef (const reco::SuperClusterRef &scRef) |
void | setTime (float time, float timeError=0.f) |
the timing information More... | |
void | setTrackRef (const reco::TrackRef &ref) |
set track reference More... | |
void | setV0Ref (const reco::VertexCompositeCandidateRef &ref) |
set ref to original reco conversion More... | |
void | setVertex (const math::XYZPoint &p) override |
void | setVertexSource (PFVertexType vt) |
CandidatePtr | sourceCandidatePtr (size_type i) const override |
reco::SuperClusterRef | superClusterRef () const |
return a reference to the corresponding SuperCluster if any More... | |
float | time () const |
float | timeError () const |
reco::TrackRef | trackRef () const |
ParticleType | translatePdgIdToType (int pdgid) const |
int | translateTypeToPdgId (ParticleType type) const |
reco::VertexCompositeCandidateRef | v0Ref () const |
return a reference to the original conversion More... | |
const Point & | vertex () const override |
vertex position (overwritten by PF...) More... | |
double | vx () const override |
x coordinate of vertex position More... | |
double | vy () const override |
y coordinate of vertex position More... | |
double | vz () const override |
z coordinate of vertex position More... | |
~PFCandidate () override | |
destructor More... | |
Public Member Functions inherited from reco::CompositeCandidate | |
void | addDaughter (const Candidate &, const std::string &s="") |
add a clone of the passed candidate as daughter More... | |
void | addDaughter (std::unique_ptr< Candidate >, const std::string &s="") |
add a clone of the passed candidate as daughter More... | |
void | applyRoles () |
void | clearDaughters () |
clear daughters More... | |
void | clearRoles () |
CompositeCandidate (std::string name="") | |
default constructor More... | |
template<typename P4 > | |
CompositeCandidate (Charge q, const P4 &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true, std::string name="") | |
constructor from values More... | |
CompositeCandidate (const Candidate &p, const std::string &name="") | |
constructor from values More... | |
CompositeCandidate (const Candidate &p, const std::string &name, role_collection const &roles) | |
constructor from values More... | |
const Candidate * | daughter (size_type) const override |
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) More... | |
Candidate * | daughter (size_type) override |
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 More... | |
Candidate * | daughter (const std::string &s) override |
return daughter with a specified role name More... | |
const Candidate * | daughter (const std::string &s) const override |
return daughter with a specified role name More... | |
const Candidate * | mother (size_type i=0) const override |
return pointer to mother More... | |
std::string | name () const |
get the name of the candidate More... | |
size_type | numberOfDaughters () const override |
number of daughters More... | |
size_type | numberOfMothers () const override |
number of mothers (zero or one in most of but not all the cases) More... | |
role_collection const & | roles () const |
get the roles More... | |
void | setName (std::string name) |
set the name of the candidate More... | |
void | setRoles (const role_collection &roles) |
set the roles More... | |
~CompositeCandidate () override | |
destructor More... | |
Public Member Functions inherited from reco::LeafCandidate | |
Vector | boostToCM () const final |
int | charge () const final |
electric charge More... | |
void | construct (int qx3, float pt, float eta, float phi, float mass, const Point &vtx, int pdgId, int status) |
const Candidate * | daughter (size_type) const override |
return daughter at a given position (throws an exception) More... | |
Candidate * | daughter (size_type) override |
return daughter at a given position (throws an exception) More... | |
Candidate * | daughter (const std::string &s) override |
return daughter with a specified role name More... | |
const Candidate * | daughter (const std::string &s) const override |
return daughter with a specified role name More... | |
double | energy () const final |
energy More... | |
double | et () const final |
transverse energy More... | |
double | et2 () const final |
transverse energy squared (use this for cut!) More... | |
double | eta () const final |
momentum pseudorapidity More... | |
void | fillVertexCovariance (CovarianceMatrix &v) const override |
fill SMatrix More... | |
template<typename T > | |
T | get () const |
get a component More... | |
template<typename T , typename Tag > | |
T | get () const |
get a component More... | |
template<typename T > | |
T | get (size_type i) const |
get a component More... | |
template<typename T , typename Tag > | |
T | get (size_type i) const |
get a component More... | |
bool | hasMasterClone () const override |
bool | hasMasterClonePtr () const override |
bool | isCaloMuon () const override |
bool | isConvertedPhoton () const override |
bool | isElectron () const override |
bool | isGlobalMuon () const override |
bool | isJet () const override |
bool | isMuon () const override |
bool | isPhoton () const override |
bool | isStandAloneMuon () const override |
bool | isTrackerMuon () const override |
LeafCandidate () | |
LeafCandidate (const Candidate &c) | |
template<typename... Args> | |
LeafCandidate (Args &&...args) | |
LeafCandidate (LeafCandidate &rh) | |
LeafCandidate (LeafCandidate &&)=default | |
LeafCandidate (LeafCandidate const &)=default | |
bool | longLived () const final |
is long lived? More... | |
double | mass () const final |
mass More... | |
bool | massConstraint () const final |
do mass constraint? More... | |
double | massSqr () const final |
mass squared More... | |
const CandidateBaseRef & | masterClone () const override |
const CandidatePtr & | masterClonePtr () const override |
template<typename Ref > | |
Ref | masterRef () const |
cast master clone reference to a concrete type More... | |
Vector | momentum () const final |
spatial momentum vector More... | |
const Candidate * | mother (size_type) const override |
return mother at a given position (throws an exception) More... | |
double | mt () const final |
transverse mass More... | |
double | mtSqr () const final |
transverse mass squared More... | |
template<typename T > | |
size_type | numberOf () const |
number of components More... | |
template<typename T , typename Tag > | |
size_type | numberOf () const |
number of components More... | |
size_t | numberOfDaughters () const override |
number of daughters More... | |
size_t | numberOfMothers () const override |
number of mothers More... | |
LeafCandidate & | operator= (LeafCandidate &&)=default |
LeafCandidate & | operator= (LeafCandidate const &)=default |
double | p () const final |
magnitude of momentum vector More... | |
const LorentzVector & | p4 () const final |
four-momentum Lorentz vector More... | |
int | pdgId () const final |
PDG identifier. More... | |
double | phi () const final |
momentum azimuthal angle More... | |
const PolarLorentzVector & | polarP4 () const final |
four-momentum Lorentz vector More... | |
double | pt () const final |
transverse momentum More... | |
double | px () const final |
x coordinate of momentum vector More... | |
double | py () const final |
y coordinate of momentum vector More... | |
double | pz () const final |
z coordinate of momentum vector More... | |
double | rapidity () const final |
rapidity More... | |
void | setCharge (Charge q) final |
set electric charge More... | |
void | setLongLived () final |
void | setMass (double m) final |
set particle mass More... | |
void | setMassConstraint () final |
void | setP4 (const LorentzVector &p4) final |
set 4-momentum More... | |
void | setP4 (const PolarLorentzVector &p4) final |
set 4-momentum More... | |
void | setPdgId (int pdgId) final |
void | setPz (double pz) final |
void | setStatus (int status) final |
set status word More... | |
void | setThreeCharge (Charge qx3) final |
set electric charge More... | |
void | setVertex (const Point &vertex) override |
set vertex More... | |
int | status () const final |
status word More... | |
double | theta () const final |
momentum polar angle More... | |
int | threeCharge () const final |
electric charge More... | |
double | vertexChi2 () const override |
chi-squares More... | |
double | vertexCovariance (int i, int j) const override |
(i, j)-th element of error matrix, i, j = 0, ... 2 More... | |
CovarianceMatrix | vertexCovariance () const final |
return SMatrix More... | |
double | vertexNdof () const override |
double | vertexNormalizedChi2 () const override |
chi-squared divided by n.d.o.f. More... | |
double | y () const final |
rapidity More... | |
~LeafCandidate () override | |
destructor More... | |
Public Member Functions inherited from reco::Candidate | |
const_iterator | begin () const |
first daughter const_iterator More... | |
iterator | begin () |
first daughter iterator More... | |
Candidate () | |
default constructor More... | |
const_iterator | end () const |
last daughter const_iterator More... | |
iterator | end () |
last daughter iterator More... | |
template<typename T > | |
T | get () const |
get a component More... | |
template<typename T , typename Tag > | |
T | get () const |
get a component More... | |
template<typename T > | |
T | get (size_type i) const |
get a component More... | |
template<typename T , typename Tag > | |
T | get (size_type i) const |
get a component More... | |
template<typename Ref > | |
Ref | masterRef () const |
cast master clone reference to a concrete type More... | |
template<typename T > | |
size_type | numberOf () const |
number of components More... | |
template<typename T , typename Tag > | |
size_type | numberOf () const |
number of components More... | |
virtual void | setSourceCandidatePtr (const CandidatePtr &ptr) |
Set the ptr to the source Candidate. More... | |
virtual | ~Candidate () |
destructor More... | |
Static Public Attributes | |
static const float | bigMva_ = -999. |
Private Member Functions | |
bool | flag (unsigned shift, unsigned flag) const |
bool | getRefInfo (unsigned int iMask, unsigned int iBit, edm::ProductID &oProdID, size_t &oIndex, size_t &aIndex) const |
bool | overlap (const Candidate &) const override |
Polymorphic overlap. More... | |
void | setFlag (unsigned shift, unsigned flag, bool value) |
void | storeRefInfo (unsigned int iMask, unsigned int iBit, bool iIsValid, const edm::RefCore &iCore, size_t iKey, const edm::EDProductGetter *) |
Private Attributes | |
Blocks | blocksStorage_ |
float | deltaP_ |
uncertainty on 3-momentum More... | |
float | ecalERatio_ |
corrected ECAL energy ratio (corrected/raw) More... | |
std::atomic< ElementsInBlocks * > | elementsInBlocks_ |
Elements | elementsStorage_ |
unsigned | flags_ |
all flags, packed (ecal regional, hcal regional, tracking) More... | |
const edm::EDProductGetter * | getter_ |
std::array< float, 7 > | hcalDepthEnergyFractions_ |
float | hcalERatio_ |
corrected HCAL energy ratio (corrected/raw) More... | |
float | hoERatio_ |
corrected HO energy ratio (corrected/raw) More... | |
reco::Muon::MuonTrackType | muonTrackType_ |
float | mva_e_mu_ |
mva for electron-muon discrimination More... | |
float | mva_e_pi_ |
mva for electron-pion discrimination More... | |
float | mva_gamma_nh_ |
mva for neutral hadron - gamma discrimination More... | |
float | mva_Isolated_ |
float | mva_nothing_gamma_ |
mva for gamma detection More... | |
float | mva_nothing_nh_ |
mva for neutral hadron detection More... | |
float | mva_pi_mu_ |
mva for pi-muon discrimination More... | |
math::XYZPointF | positionAtECALEntrance_ |
position at ECAL entrance, from the PFRecTrack More... | |
float | ps1Energy_ |
corrected PS1 energy More... | |
float | ps2Energy_ |
corrected PS2 energy More... | |
float | rawEcalEnergy_ |
raw ECAL energy More... | |
float | rawHcalEnergy_ |
raw HCAL energy More... | |
float | rawHoEnergy_ |
raw HO energy More... | |
std::vector< const void * > | refsCollectionCache_ |
std::vector< unsigned long long > | refsInfo_ |
PFCandidatePtr | sourcePtr_ |
reference to the source PFCandidate, if any More... | |
unsigned short | storedRefsBitPattern_ |
float | time_ |
timing information (valid if timeError_ >= 0) More... | |
float | timeError_ |
timing information uncertainty (<0 if timing not available) More... | |
PFVertexType | vertexType_ |
Friends | |
std::ostream & | operator<< (std::ostream &out, const PFCandidate &c) |
Additional Inherited Members |
Particle reconstructed by the particle flow algorithm.
particle candidate from particle flow
Definition at line 40 of file PFCandidate.h.
Definition at line 389 of file PFCandidate.h.
typedef std::pair<reco::PFBlockRef, unsigned> reco::PFCandidate::ElementInBlock |
return indices of elements used in the block
return elements return elements in blocks
Definition at line 386 of file PFCandidate.h.
typedef std::vector<unsigned> reco::PFCandidate::Elements |
Definition at line 390 of file PFCandidate.h.
typedef std::vector< ElementInBlock > reco::PFCandidate::ElementsInBlocks |
Definition at line 387 of file PFCandidate.h.
Definition at line 56 of file PFCandidate.h.
particle types
Enumerator | |
---|---|
X | |
h | |
e | |
mu | |
gamma | |
h0 | |
h_HF | |
egamma_HF |
Definition at line 45 of file PFCandidate.h.
Enumerator | |
---|---|
kCandVertex | |
kTrkVertex | |
kComMuonVertex | |
kSAMuonVertex | |
kTrkMuonVertex | |
kGSFVertex | |
kTPFMSMuonVertex | |
kPickyMuonVertex | |
kDYTMuonVertex |
Definition at line 77 of file PFCandidate.h.
PFCandidate::PFCandidate | ( | ) |
default constructor
Definition at line 31 of file PFCandidate.cc.
References lumiContext::fill, hcalDepthEnergyFractions_, muonTrackType_, reco::Muon::None, refsInfo_, reco::LeafCandidate::setPdgId(), translateTypeToPdgId(), and X.
Referenced by clone(), and PFCandidate().
PFCandidate::PFCandidate | ( | const PFCandidatePtr & | sourcePtr | ) |
constructor from a reference (keeps track of source relationship)
Definition at line 63 of file PFCandidate.cc.
References hcalDepthEnergyFractions_, and sourcePtr_.
PFCandidate::PFCandidate | ( | Charge | q, |
const LorentzVector & | p4, | ||
ParticleType | particleId | ||
) |
Definition at line 71 of file PFCandidate.cc.
References blocksStorage_, reco::CompositeCandidate::CompositeCandidate(), deltaP_, e, ecalERatio_, elementsInBlocks_, elementsStorage_, Exception, lumiContext::fill, flags_, getter_, h, hcalDepthEnergyFractions_, hcalERatio_, hoERatio_, mu, muonTrackType_, mva_e_mu_, mva_e_pi_, mva_gamma_nh_, mva_Isolated_, mva_nothing_gamma_, mva_nothing_nh_, mva_pi_mu_, reco::Muon::None, PFCandidate(), positionAtECALEntrance_, ps1Energy_, ps2Energy_, rawEcalEnergy_, rawHcalEnergy_, rawHoEnergy_, refsCollectionCache_, refsInfo_, edm::RefVector< C, T, F >::reserve(), reco::LeafCandidate::setPdgId(), sourcePtr_, storedRefsBitPattern_, time_, timeError_, tmp, translateTypeToPdgId(), and vertexType_.
reco::PFCandidate::PFCandidate | ( | const PFCandidate & | ) |
copy constructor
|
override |
destructor
Definition at line 211 of file PFCandidate.cc.
References elementsInBlocks_.
void PFCandidate::addElementInBlock | ( | const reco::PFBlockRef & | blockref, |
unsigned | elementIndex | ||
) |
add an element to the current PFCandidate
add element in block
Definition at line 220 of file PFCandidate.cc.
References blocksStorage_, elementsInBlocks_, elementsStorage_, edm::RefVector< C, T, F >::empty(), edm::Ref< C, T, F >::id(), and edm::RefVector< C, T, F >::push_back().
Referenced by PFEGammaAlgo::fillPFCandidates(), PFPhotonAlgo::RunPFPhoton(), PFElectronAlgo::SetCandidates(), and sourceCandidatePtr().
|
inline |
Definition at line 363 of file PFCandidate.h.
References muonTrackType_.
|
inlineoverridevirtual |
return a pointer to the best track, if available. otherwise, return a null pointer
Reimplemented from reco::Candidate.
Definition at line 162 of file PFCandidate.h.
References funct::abs(), gsfTrackRef(), edm::Ref< C, T, F >::isAvailable(), edm::Ref< C, T, F >::isNonnull(), reco::LeafCandidate::pdgId(), and trackRef().
Referenced by btagbtvdeep::TrackInfoBuilder::buildTrackInfo(), pat::MuonMvaEstimator::computeMva(), dxyError(), dzError(), btagbtvdeep::lost_inner_hits_from_pfcand(), Muon.Muon::ptErr(), btagbtvdeep::quality_from_pfcand(), and btagbtvdeep::recoCandidateToFeatures().
|
overridevirtual |
return a clone
Reimplemented from reco::CompositeCandidate.
Reimplemented in pat::PFParticle, and reco::PileUpPFCandidate.
Definition at line 215 of file PFCandidate.cc.
References PFCandidate().
Referenced by DistortedPFCandProducer::produce().
reco::ConversionRef PFCandidate::conversionRef | ( | ) | const |
return a reference to the original conversion
Definition at line 563 of file PFCandidate.cc.
References GETREF, kRefConversionBit, and kRefConversionMask.
Referenced by dxyError().
|
inline |
uncertainty on 3-momentum
Definition at line 298 of file PFCandidate.h.
References deltaP_.
Referenced by PFElectronTranslator::createGsfElectrons().
reco::PFDisplacedVertexRef PFCandidate::displacedVertexRef | ( | Flags | type | ) | const |
return a reference to the corresponding displaced vertex, otherwise, return a null reference
Definition at line 528 of file PFCandidate.cc.
References GETREF, kRefDisplacedVertexDauBit, kRefDisplacedVertexDauMask, kRefDisplacedVertexMotBit, kRefDisplacedVertexMotMask, T_FROM_DISP, and T_TO_DISP.
Referenced by PFCandConnector::analyseNuclearWPrim(), dxyError(), PFCandConnector::isPrimaryNucl(), and PFCandConnector::isSecondaryNucl().
|
inlineoverridevirtual |
uncertainty on dxy
Reimplemented from reco::Candidate.
Definition at line 173 of file PFCandidate.h.
References bestTrack(), conversionRef(), displacedVertexRef(), reco::TrackBase::dxyError(), electronExtraRef(), flag(), gsfElectronRef(), gsfTrackRef(), muonRef(), setConversionRef(), setDisplacedVertexRef(), setGsfTrackRef(), setMuonRef(), setV0Ref(), and v0Ref().
|
inlineoverridevirtual |
uncertainty on dz
Reimplemented from reco::Candidate.
Definition at line 171 of file PFCandidate.h.
References bestTrack(), and reco::TrackBase::dzError().
|
inline |
return corrected Ecal energy
Definition at line 222 of file PFCandidate.h.
References ecalERatio_, and rawEcalEnergy_.
Referenced by PFCandConnector::analyseNuclearWPrim(), HPSPFRecoTauAlgorithm::applyElectronRejection(), PFRecoTauAlgorithm::buildPFTau(), reco::tau::eratio(), PFCandidateBenchmark::fillOne(), FWECalPFCandidateProxyBuilder::getEt(), reco::tau::PFRecoTauEnergyAlgorithmPlugin::operator()(), PFTauElecRejectionBenchmark::process(), pat::PATPackedCandidateProducer::produce(), pat::PATTauProducer::produce(), pat::PATMuonProducer::produce(), and btagbtvdeep::recoCandidateToFeatures().
reco::PFCandidateEGammaExtraRef PFCandidate::egammaExtraRef | ( | ) | const |
return a reference to the EGamma extra
Definition at line 605 of file PFCandidate.cc.
References GETREF, kRefPFEGammaExtraBit, and kRefPFEGammaExtraMask.
Referenced by PFEGammaFilters::isElectronSafeForJetMET(), PFEGammaFilters::isPhotonSafeForJetMET(), PFAlgo::processBlock(), GEDGsfElectronCoreProducer::produceElectronCore(), and rawHoEnergy().
reco::PFCandidateElectronExtraRef PFCandidate::electronExtraRef | ( | ) | const |
return a reference to the electron extra
Definition at line 593 of file PFCandidate.cc.
References GETREF, kRefPFElectronExtraBit, and kRefPFElectronExtraMask.
Referenced by PFElectronTranslator::createGsfElectrons(), dxyError(), flag(), and PFElectronTranslator::produce().
const PFCandidate::ElementsInBlocks & PFCandidate::elementsInBlocks | ( | ) | const |
Definition at line 691 of file PFCandidate.cc.
References blocksStorage_, elementsInBlocks_, elementsStorage_, edm::RefVector< C, T, F >::size(), and groupFilesInBlocks::temp.
Referenced by FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), DQMPFCandidateAnalyzer::analyze(), reco::tau::PFRecoTauChargedHadronFromPFCandidatePlugin::beginEvent(), PFRecoTauAlgorithm::buildPFTau(), PFMuonAlgo::cleanPunchThroughAndFakes(), PFElectronTranslator::correspondingDaughterCandidate(), PFPhotonTranslator::correspondingDaughterCandidate(), PFPhotonAlgo::EvaluateGCorrMVA(), PFPhotonAlgo::EvaluateResMVA(), PFCandidateBenchmark::fillOne(), flag(), PFBlockBasedIsolation::getHighestEtECALCluster(), reco::modules::HICaloCompatibleTrackSelector::matchPFCandToTrack(), PFCandidateChecker::printElementsInBlocks(), PFAlgo::processBlock(), PFElectronTranslator::produce(), and PFPhotonTranslator::produce().
bool PFCandidate::flag | ( | Flags | theFlag | ) | const |
return a given flag
Definition at line 304 of file PFCandidate.cc.
References EnergyCorrector::c, e, electronExtraRef(), elementsInBlocks(), reco::LeafCandidate::energy(), reco::LeafCandidate::eta(), alignBH_cfg::fixed, flag(), flags_, GAMMA_TO_GAMMACONV, mps_fire::i, edm::Ptr< T >::id(), edm::Ref< C, T, F >::isAvailable(), edm::Ref< C, T, F >::isNonnull(), edm::Ptr< T >::key(), edm::Ref< C, T, F >::key(), reco::operator<<(), MillePedeFileConverter_cfg::out, particleId(), reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), sourcePtr_, T_FROM_DISP, T_FROM_GAMMACONV, and T_TO_DISP.
Referenced by dxyError(), flag(), PFCandConnector::isPrimaryNucl(), PFCandConnector::isSecondaryNucl(), pS2Energy(), setConversionRef(), setDisplacedVertexRef(), and setHcalDepthEnergyFractions().
|
private |
|
private |
Definition at line 410 of file PFCandidate.cc.
References refsInfo_, s_refsBefore, and storedRefsBitPattern_.
reco::GsfElectronRef PFCandidate::gsfElectronRef | ( | ) | const |
return a reference to the corresponding GsfElectron if any
Definition at line 583 of file PFCandidate.cc.
References GETREF, kRefGsfElectronBit, and kRefGsfElectronMask.
Referenced by dxyError(), and SelectionStep< Object >::select().
reco::GsfTrackRef PFCandidate::gsfTrackRef | ( | ) | const |
return a reference to the corresponding GSF track, if an electron. otherwise, return a null reference
Definition at line 480 of file PFCandidate.cc.
References GETREF, kRefGsfTrackBit, and kRefGsfTrackMask.
Referenced by reco::tau::RecoTauPiZeroStripPlugin2::addCandsToStrip(), reco::tau::RecoTauPiZeroStripPlugin3::addCandsToStrip(), bestTrack(), reco::PFMETProducerMVA::chargedFracInCone(), PrimaryVertexAssignment::chargedHadronVertex(), PileupJetIdAlgo::computeIdVariables(), reco::PFMETProducerMVA::computePFCandidateInfo(), PFRecoTauDiscriminationAgainstElectronMVA6::discriminate(), dxyError(), PFElectronTranslator::fillMVAValueMap(), LeptonRecoSkim::filter(), reco::tau::PFRecoTauChargedHadronFromPFCandidatePlugin::operator()(), PFElectronTranslator::produce(), PuppiProducer::produce(), PFLinker::produce(), pat::PATPackedCandidateProducer::produce(), pat::PATTauProducer::produce(), PFRecoTauChargedHadronProducer::produce(), GEDGsfElectronCoreProducer::produceElectronCore(), toTrackRef(), vertex(), PFRecoTauDiscriminationByHPSSelection::~PFRecoTauDiscriminationByHPSSelection(), PFTau3ProngReco::~PFTau3ProngReco(), PFTauPrimaryVertexProducerBase::~PFTauPrimaryVertexProducerBase(), PFTauSecondaryVertexProducer::~PFTauSecondaryVertexProducer(), and PFTauTransverseImpactParameters::~PFTauTransverseImpactParameters().
|
inline |
fraction of hcal energy at a given depth (depth = 1 .. 7)
Definition at line 428 of file PFCandidate.h.
References hcalDepthEnergyFractions_.
|
inline |
fraction of hcal energy at a given depth (index 0..6 for depth 1..7)
Definition at line 430 of file PFCandidate.h.
References hcalDepthEnergyFractions_.
Referenced by pat::PATPackedCandidateProducer::produce().
|
inline |
return corrected Hcal energy
Definition at line 232 of file PFCandidate.h.
References hcalERatio_, and rawHcalEnergy_.
Referenced by PFCandConnector::analyseNuclearWPrim(), DQMPFCandidateAnalyzer::analyze(), HPSPFRecoTauAlgorithm::applyElectronRejection(), PFRecoTauAlgorithm::buildPFTau(), reco::tau::eratio(), PFCandidateBenchmark::fillOne(), FWHCalPFCandidateProxyBuilder::getEt(), reco::tau::PFRecoTauEnergyAlgorithmPlugin::operator()(), pat::PATPackedCandidateProducer::produce(), pat::PATTauProducer::produce(), and btagbtvdeep::recoCandidateToFeatures().
|
inline |
return corrected Hcal energy
Definition at line 242 of file PFCandidate.h.
References hoERatio_, and rawHoEnergy_.
Referenced by Jet.Jet::hoEnergyFraction(), reco::makeSpecific(), and reco::tau::PFRecoTauEnergyAlgorithmPlugin::operator()().
|
inline |
do we have a valid time information
Definition at line 419 of file PFCandidate.h.
References timeError_.
Referenced by TransientTrackBuilder::build(), PrimaryVertexAssignment::chargedHadronVertex(), and pat::PATPackedCandidateProducer::produce().
reco::MuonRef PFCandidate::muonRef | ( | ) | const |
return a reference to the corresponding muon, if a muon. otherwise, return a null reference
Definition at line 459 of file PFCandidate.cc.
References GETREF, kRefMuonBit, and kRefMuonMask.
Referenced by PFMuonAlgo::addMissingMuons(), HPSPFRecoTauAlgorithm::applyMuonRejection(), PFMuonAlgo::cleanMismeasured(), PFMuonAlgo::cleanPunchThroughAndFakes(), PileupJetIdAlgo::computeIdVariables(), dxyError(), GreedyMuonPFCandidateFilter::filter(), MuonBadTrackFilter::filter(), InconsistentMuonPFCandidateFilter::filter(), PFMuonAlgo::getMinMaxMET2(), reco::PFTau::hasMuonReference(), reco::tau::PFRecoTauChargedHadronFromPFCandidatePlugin::operator()(), PFMuonAlgo::postClean(), DistortedPFCandProducer::produce(), pat::PATMuonSlimmer::produce(), SoftPFMuonTagInfoProducer::produce(), PFLinker::produce(), pat::PATPackedCandidateProducer::produce(), pat::PATTauProducer::produce(), PFRecoTauChargedHadronProducer::produce(), pat::PATMuonProducer::produce(), JetCleanerForType1METT< T, Textractor >::produce(), PFJetMETcorrInputProducerT< T, Textractor >::produce(), SelectionStep< Object >::select(), and vertex().
|
inline |
mva for electron-muon discrimination
Definition at line 320 of file PFCandidate.h.
References mva_e_mu_.
|
inline |
mva for electron-pion discrimination
Definition at line 314 of file PFCandidate.h.
References mva_e_pi_.
Referenced by HPSPFRecoTauAlgorithm::applyElectronRejection(), PFRecoTauAlgorithm::buildPFTau(), PFElectronTranslator::createGsfElectrons(), PFElectronTranslator::fillMVAValueMap(), PFCandidateBenchmark::fillOne(), PFAlgo::processBlock(), and PFElectronTranslator::produce().
|
inline |
mva for neutral hadron - gamma discrimination
Definition at line 346 of file PFCandidate.h.
References mva_gamma_nh_.
|
inline |
|
inline |
mva for gamma detection
Definition at line 333 of file PFCandidate.h.
References mva_nothing_gamma_.
Referenced by PFPhotonIsolationCalculator::isPhotonParticleVetoed(), PFIsolationEstimator::isPhotonParticleVetoed(), PFLinker::produce(), pat::PATPackedCandidateProducer::produce(), and PFPhotonTranslator::produce().
|
inline |
mva for neutral hadron detection
Definition at line 339 of file PFCandidate.h.
References mva_nothing_nh_.
|
inline |
mva for pi-muon discrimination
Definition at line 326 of file PFCandidate.h.
References mva_pi_mu_.
|
inlineoverridevirtual |
return the number of source Candidates ( the candidates used to construct this Candidate)
Reimplemented from reco::LeafCandidate.
Definition at line 128 of file PFCandidate.h.
Referenced by reco::PFCandidateFwdPtrFactory::operator()().
PFCandidate & PFCandidate::operator= | ( | PFCandidate const & | iOther | ) |
Definition at line 170 of file PFCandidate.cc.
References blocksStorage_, deltaP_, ecalERatio_, elementsInBlocks_, elementsStorage_, flags_, getter_, hcalDepthEnergyFractions_, hcalERatio_, hoERatio_, muonTrackType_, mva_e_mu_, mva_e_pi_, mva_gamma_nh_, mva_Isolated_, mva_nothing_gamma_, mva_nothing_nh_, mva_pi_mu_, reco::LeafCandidate::operator=(), positionAtECALEntrance_, ps1Energy_, ps2Energy_, rawEcalEnergy_, rawHcalEnergy_, rawHoEnergy_, refsCollectionCache_, refsInfo_, sourcePtr_, storedRefsBitPattern_, time_, timeError_, tmp, and vertexType_.
|
overrideprivatevirtual |
Polymorphic overlap.
Reimplemented from reco::CompositeCandidate.
Definition at line 270 of file PFCandidate.cc.
References mps_fire::i, edm::Ptr< T >::isNonnull(), edm::Ptr< T >::isNull(), gen::n, reco::Candidate::numberOfSourceCandidatePtrs(), overlap(), sourceCandidatePtr(), reco::Candidate::sourceCandidatePtr(), and sourcePtr_.
Referenced by overlap(), and setHcalDepthEnergyFractions().
|
inlinevirtual |
particle identification code
Definition at line 374 of file PFCandidate.h.
References reco::LeafCandidate::pdgId(), and translatePdgIdToType().
Referenced by PFTester::analyze(), DQMPFCandidateAnalyzer::analyze(), JetTester_HeavyIons::analyze(), JetAnalyzer_HeavyIons::analyze(), BoostedTauSeedsProducer::BoostedTauSeedsProducer(), PFRecoTauAlgorithm::buildPFTau(), PFMuonAlgo::cleanPunchThroughAndFakes(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::color(), metsig::SignAlgoResolutions::evalPF(), METAnalyzer::fillMonitorElement(), PFElectronTranslator::fillMVAValueMap(), PFCandidateBenchmark::fillOne(), GreedyMuonPFCandidateFilter::filter(), InconsistentMuonPFCandidateFilter::filter(), LeptonRecoSkim::filter(), flag(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::isBoson(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::isGluon(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::isHiggs(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::isLepton(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::isPhoton(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::isQuark(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::lineStyle(), reco::modules::HICaloCompatibleTrackSelector::matchPFCandToTrack(), PFMuonAlgo::postClean(), PFAlgo::postCleaning(), reco::RecoTauPiZero::print(), PFPileUpAlgo::process(), MuonWithPFIsoProducer::produce(), DistortedPFCandProducer::produce(), PFElectronTranslator::produce(), EgammaHLTPFChargedIsolationProducer::produce(), EgammaHLTPFNeutralIsolationProducer::produce(), pf2pat::PFMETAlgo::produce(), Type0PFMETcorrInputProducer::produce(), PFLinker::produce(), pat::PATPackedCandidateProducer::produce(), PFPhotonTranslator::produce(), pf2pat::PFIsoDepositAlgo::sameParticle(), setConversionRef(), setDisplacedVertexRef(), setPhotonRef(), setSuperClusterRef(), and setTrackRef().
reco::PFCandidatePhotonExtraRef PFCandidate::photonExtraRef | ( | ) | const |
return a reference to the photon extra
Definition at line 601 of file PFCandidate.cc.
References GETREF, kRefPFPhotonExtraBit, and kRefPFPhotonExtraMask.
Referenced by PFPhotonTranslator::produce(), and rawHoEnergy().
reco::PhotonRef PFCandidate::photonRef | ( | ) | const |
return a reference to the corresponding Photon if any
Definition at line 597 of file PFCandidate.cc.
References GETREF, kRefPhotonBit, and kRefPhotonMask.
Referenced by rawHoEnergy().
|
inline |
Definition at line 368 of file PFCandidate.h.
References positionAtECALEntrance_.
Referenced by HPSPFRecoTauAlgorithm::applyElectronRejection(), reco::tau::atECALEntrance(), PFRecoTauAlgorithm::buildPFTau(), PFCandIsolatorFromDeposits::SingleDeposit::compute(), PFIsolationEstimator::fGetIsolationInRings(), reco::tau::RecoTauIsolationMasking::inCone(), PFTauElecRejectionBenchmark::process(), and pat::PATTauProducer::produce().
|
inline |
|
inline |
return corrected PS2 energy
Definition at line 283 of file PFCandidate.h.
References flag(), ps2Energy_, rescaleMomentum(), and setFlag().
|
inline |
return corrected Ecal energy
Definition at line 225 of file PFCandidate.h.
References rawEcalEnergy_.
Referenced by DQMPFCandidateAnalyzer::analyze(), PFMuonAlgo::cleanPunchThroughAndFakes(), PFElectronTranslator::createBasicCluster(), GreedyMuonPFCandidateFilter::filter(), and pat::PATPackedCandidateProducer::produce().
|
inline |
return raw Hcal energy
Definition at line 235 of file PFCandidate.h.
References rawHcalEnergy_.
Referenced by DQMPFCandidateAnalyzer::analyze(), PFMuonAlgo::cleanPunchThroughAndFakes(), GreedyMuonPFCandidateFilter::filter(), and pat::PATPackedCandidateProducer::produce().
|
inline |
return raw Hcal energy
Definition at line 245 of file PFCandidate.h.
References egammaExtraRef(), photonExtraRef(), photonRef(), rawHoEnergy_, setGsfElectronRef(), setPFEGammaExtraRef(), setPFPhotonExtraRef(), setPhotonRef(), setSuperClusterRef(), and superClusterRef().
void PFCandidate::rescaleMomentum | ( | double | rescaleFactor | ) |
particle momentum *= rescaleFactor
Definition at line 287 of file PFCandidate.cc.
References reco::LeafCandidate::p4(), and reco::LeafCandidate::setP4().
Referenced by pS2Energy().
|
inline |
set mva for electron-muon discrimination
Definition at line 317 of file PFCandidate.h.
References DetachedQuadStep_cff::mva, and mva_e_mu_.
|
inline |
Definition at line 312 of file PFCandidate.h.
References mva_e_pi_.
Referenced by PFEGammaAlgo::fillPFCandidates(), PFAlgo::processBlock(), and PFElectronAlgo::SetCandidates().
|
inline |
set mva for neutral hadron - gamma discrimination
Definition at line 343 of file PFCandidate.h.
References DetachedQuadStep_cff::mva, and mva_gamma_nh_.
|
inline |
set mva for electron-pion discrimination. For charged particles, this variable is set to 0 for particles that are not preided to 1 otherwise For neutral particles, it is set to the default value
Definition at line 308 of file PFCandidate.h.
References mva_Isolated_.
Referenced by PFAlgo::processBlock().
|
inline |
set mva for gamma detection
Definition at line 330 of file PFCandidate.h.
References DetachedQuadStep_cff::mva, and mva_nothing_gamma_.
Referenced by PFAlgo::processBlock(), and PFPhotonAlgo::RunPFPhoton().
|
inline |
set mva for neutral hadron detection
Definition at line 336 of file PFCandidate.h.
References DetachedQuadStep_cff::mva, and mva_nothing_nh_.
|
inline |
set mva for pi-muon discrimination
Definition at line 323 of file PFCandidate.h.
References DetachedQuadStep_cff::mva, and mva_pi_mu_.
void PFCandidate::setConversionRef | ( | const reco::ConversionRef & | ref | ) |
set ref to original reco conversion
Definition at line 539 of file PFCandidate.cc.
References Exception, flag(), gamma, GAMMA_TO_GAMMACONV, edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::key(), kRefConversionBit, kRefConversionMask, pileupDistInMC::num, particleId(), edm::Ref< C, T, F >::productGetter(), edm::Ref< C, T, F >::refCore(), and storeRefInfo().
Referenced by dxyError().
|
inline |
set uncertainty on momentum
Definition at line 295 of file PFCandidate.h.
References deltaP_.
Referenced by PFLinker::produce().
void PFCandidate::setDisplacedVertexRef | ( | const reco::PFDisplacedVertexRef & | ref, |
Flags | flag | ||
) |
set displaced vertex reference
Definition at line 484 of file PFCandidate.cc.
References Exception, flag(), h, edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::key(), kRefDisplacedVertexDauBit, kRefDisplacedVertexDauMask, kRefDisplacedVertexMotBit, kRefDisplacedVertexMotMask, pileupDistInMC::num, particleId(), edm::Ref< C, T, F >::productGetter(), edm::Ref< C, T, F >::refCore(), storeRefInfo(), T_FROM_DISP, and T_TO_DISP.
Referenced by dxyError().
|
inline |
set corrected Ecal energy
Definition at line 218 of file PFCandidate.h.
References funct::abs(), ecalERatio_, and rawEcalEnergy_.
Referenced by PFEGammaAlgo::fillPFCandidates(), PFAlgo::processBlock(), PFLinker::produce(), PFPhotonAlgo::RunPFPhoton(), and PFElectronAlgo::SetCandidates().
void PFCandidate::setFlag | ( | Flags | theFlag, |
bool | value | ||
) |
set a given flag
Definition at line 294 of file PFCandidate.cc.
References flags_.
Referenced by pS2Energy(), PFPhotonAlgo::RunPFPhoton(), and setHcalDepthEnergyFractions().
|
private |
void PFCandidate::setGsfElectronRef | ( | const reco::GsfElectronRef & | ref | ) |
set GsfElectronRef
Definition at line 578 of file PFCandidate.cc.
References edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::key(), kRefGsfElectronBit, kRefGsfElectronMask, edm::Ref< C, T, F >::productGetter(), edm::Ref< C, T, F >::refCore(), and storeRefInfo().
Referenced by PFLinker::produce(), and rawHoEnergy().
void PFCandidate::setGsfTrackRef | ( | const reco::GsfTrackRef & | ref | ) |
set gsftrack reference
Definition at line 463 of file PFCandidate.cc.
References edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::key(), kRefGsfTrackBit, kRefGsfTrackMask, edm::Ref< C, T, F >::productGetter(), edm::Ref< C, T, F >::refCore(), and storeRefInfo().
Referenced by dxyError(), PFEGammaAlgo::fillPFCandidates(), and PFElectronAlgo::SetCandidates().
|
inline |
set the fraction of hcal energy as function of depth (index 0..6 for depth 1..7)
Definition at line 432 of file PFCandidate.h.
References flag(), hcalDepthEnergyFractions_, overlap(), setFlag(), and edm::shift.
Referenced by PFAlgo::setHcalDepthInfo().
|
inline |
set corrected Hcal energy
Definition at line 228 of file PFCandidate.h.
References funct::abs(), hcalERatio_, and rawHcalEnergy_.
Referenced by PFAlgo::processBlock(), PFPhotonAlgo::RunPFPhoton(), and PFElectronAlgo::SetCandidates().
|
inline |
set corrected Hcal energy
Definition at line 238 of file PFCandidate.h.
References funct::abs(), hoERatio_, and rawHoEnergy_.
Referenced by PFAlgo::processBlock().
void PFCandidate::setMuonRef | ( | const reco::MuonRef & | ref | ) |
set muon reference
Definition at line 445 of file PFCandidate.cc.
References Exception, edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::key(), kRefMuonBit, kRefMuonMask, edm::Ref< C, T, F >::productGetter(), edm::Ref< C, T, F >::refCore(), storeRefInfo(), and trackRef().
Referenced by dxyError(), PFLinker::produce(), and PFMuonAlgo::reconstructMuon().
|
inline |
Definition at line 357 of file PFCandidate.h.
References muonTrackType_.
Referenced by PFMuonAlgo::changeTrack().
void PFCandidate::setParticleType | ( | ParticleType | type | ) |
set Particle Type
Definition at line 265 of file PFCandidate.cc.
References reco::LeafCandidate::setPdgId(), and translateTypeToPdgId().
Referenced by PFMuonAlgo::changeTrack(), PFAlgo::processBlock(), DeltaBetaWeights::produce(), and sourceCandidatePtr().
void PFCandidate::setPFEGammaExtraRef | ( | const reco::PFCandidateEGammaExtraRef & | ref | ) |
set the PF EGamma Extra Ref
Definition at line 650 of file PFCandidate.cc.
References edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::key(), kRefPFEGammaExtraBit, kRefPFEGammaExtraMask, edm::Ref< C, T, F >::productGetter(), edm::Ref< C, T, F >::refCore(), and storeRefInfo().
Referenced by PFEGammaProducer::produce(), and rawHoEnergy().
void PFCandidate::setPFElectronExtraRef | ( | const reco::PFCandidateElectronExtraRef & | ref | ) |
set the PF Electron Extra Ref
Definition at line 588 of file PFCandidate.cc.
References edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::key(), kRefPFElectronExtraBit, kRefPFElectronExtraMask, edm::Ref< C, T, F >::productGetter(), edm::Ref< C, T, F >::refCore(), and storeRefInfo().
Referenced by setPositionAtECALEntrance().
void PFCandidate::setPFPhotonExtraRef | ( | const reco::PFCandidatePhotonExtraRef & | ref | ) |
set the PF Photon Extra Ref
Definition at line 645 of file PFCandidate.cc.
References edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::key(), kRefPFPhotonExtraBit, kRefPFPhotonExtraMask, edm::Ref< C, T, F >::productGetter(), edm::Ref< C, T, F >::refCore(), and storeRefInfo().
Referenced by rawHoEnergy().
void PFCandidate::setPhotonRef | ( | const reco::PhotonRef & | phRef | ) |
set ref to the corresponding reco::Photon if any
Definition at line 613 of file PFCandidate.cc.
References e, Exception, gamma, edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::key(), kRefPhotonBit, kRefPhotonMask, pileupDistInMC::num, particleId(), edm::Ref< C, T, F >::productGetter(), edm::Ref< C, T, F >::refCore(), and storeRefInfo().
Referenced by PFLinker::produce(), and rawHoEnergy().
|
inline |
set position at ECAL entrance
Definition at line 349 of file PFCandidate.h.
References positionAtECALEntrance_, and setPFElectronExtraRef().
Referenced by PFEGammaAlgo::fillPFCandidates(), PFPhotonAlgo::RunPFPhoton(), and PFElectronAlgo::SetCandidates().
|
inline |
set corrected PS1 energy
Definition at line 274 of file PFCandidate.h.
References ps1Energy_.
Referenced by PFPhotonAlgo::RunPFPhoton(), and PFElectronAlgo::SetCandidates().
|
inline |
set corrected PS2 energy
Definition at line 280 of file PFCandidate.h.
References ps2Energy_.
Referenced by PFPhotonAlgo::RunPFPhoton(), and PFElectronAlgo::SetCandidates().
|
inline |
Definition at line 126 of file PFCandidate.h.
References sourcePtr_.
Referenced by reco::PFCandidateWithSrcPtrFactory::operator()(), PuppiPhoton::produce(), and VirtualJetProducer::writeJetsWithConstituents().
void PFCandidate::setSuperClusterRef | ( | const reco::SuperClusterRef & | scRef | ) |
Definition at line 629 of file PFCandidate.cc.
References e, Exception, gamma, edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::key(), kRefSuperClusterBit, kRefSuperClusterMask, pileupDistInMC::num, particleId(), edm::Ref< C, T, F >::productGetter(), edm::Ref< C, T, F >::refCore(), and storeRefInfo().
Referenced by PFEGammaAlgo::fillPFCandidates(), PFLinker::produce(), PFEGammaProducer::produce(), rawHoEnergy(), PFPhotonAlgo::RunPFPhoton(), and PFElectronAlgo::SetCandidates().
|
inline |
the timing information
Definition at line 425 of file PFCandidate.h.
References time(), time_, timeError(), and timeError_.
Referenced by PFEGammaAlgo::fillPFCandidates().
void PFCandidate::setTrackRef | ( | const reco::TrackRef & | ref | ) |
set track reference
Definition at line 425 of file PFCandidate.cc.
References reco::LeafCandidate::charge(), Exception, edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::key(), kRefTrackBit, kRefTrackMask, pileupDistInMC::num, particleId(), edm::Ref< C, T, F >::productGetter(), edm::Ref< C, T, F >::refCore(), and storeRefInfo().
Referenced by PFEGammaAlgo::fillPFCandidates(), PFElectronAlgo::SetCandidates(), and sourceCandidatePtr().
void PFCandidate::setV0Ref | ( | const reco::VertexCompositeCandidateRef & | ref | ) |
set ref to original reco conversion
Definition at line 568 of file PFCandidate.cc.
References edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::key(), kRefV0Bit, kRefV0Mask, edm::Ref< C, T, F >::productGetter(), edm::Ref< C, T, F >::refCore(), and storeRefInfo().
Referenced by dxyError().
|
inlineoverride |
Definition at line 409 of file PFCandidate.h.
References kCandVertex, reco::LeafCandidate::setVertex(), vertex(), and vertexType_.
Referenced by PFAlgo::processBlock(), and PFPhotonAlgo::RunPFPhoton().
|
inline |
Definition at line 407 of file PFCandidate.h.
References kCandVertex, reco::LeafCandidate::setVertex(), and vertexType_.
Referenced by PFMuonAlgo::changeTrack(), and PFElectronAlgo::SetCandidates().
|
inlineoverridevirtual |
return a Ptr to one of the source Candidates ( the candidates used to construct this Candidate)
Reimplemented from reco::LeafCandidate.
Definition at line 132 of file PFCandidate.h.
References addElementInBlock(), BPhysicsValidation_cfi::pdgid, setParticleType(), setTrackRef(), sourcePtr_, trackRef(), translatePdgIdToType(), and translateTypeToPdgId().
Referenced by reco::PFCandidateFwdPtrFactory::operator()(), reco::operator<<(), and overlap().
|
private |
Definition at line 370 of file PFCandidate.cc.
References bitPackRefInfo(), getter_, edm::RefCore::productPtr(), refsCollectionCache_, refsInfo_, s_refsBefore, and storedRefsBitPattern_.
Referenced by setConversionRef(), setDisplacedVertexRef(), setGsfElectronRef(), setGsfTrackRef(), setMuonRef(), setPFEGammaExtraRef(), setPFElectronExtraRef(), setPFPhotonExtraRef(), setPhotonRef(), setSuperClusterRef(), setTrackRef(), and setV0Ref().
reco::SuperClusterRef PFCandidate::superClusterRef | ( | ) | const |
return a reference to the corresponding SuperCluster if any
Definition at line 609 of file PFCandidate.cc.
References GETREF, kRefSuperClusterBit, and kRefSuperClusterMask.
Referenced by PFCandWithSuperClusterExtractor::depositFromObject(), PFPhotonAlgo::EvaluateGCorrMVA(), PFPhotonAlgo::EvaluateResMVA(), PFIsolationEstimator::fGetIsolationInRings(), PFPhotonIsolationCalculator::isPhotonParticleVetoed(), PFIsolationEstimator::isPhotonParticleVetoed(), PFPhotonIsolationCalculator::matchPFObject(), PFIsolationEstimator::matchPFObject(), PFLinker::produce(), PFPhotonTranslator::produce(), and rawHoEnergy().
|
inline |
Definition at line 421 of file PFCandidate.h.
References time_.
Referenced by TransientTrackBuilder::build(), PrimaryVertexAssignment::chargedHadronVertex(), pat::PATPackedCandidateProducer::produce(), and setTime().
|
inline |
Definition at line 423 of file PFCandidate.h.
References timeError_.
Referenced by TransientTrackBuilder::build(), PrimaryVertexAssignment::chargedHadronVertex(), pat::PATPackedCandidateProducer::produce(), and setTime().
reco::TrackRef PFCandidate::trackRef | ( | ) | const |
return a reference to the corresponding track, if charged. otherwise, return a null reference
Definition at line 442 of file PFCandidate.cc.
References GETREF, kRefTrackBit, and kRefTrackMask.
Referenced by reco::tau::RecoTauPiZeroStripPlugin2::addCandsToStrip(), reco::tau::RecoTauPiZeroStripPlugin3::addCandsToStrip(), PFMuonAlgo::addMissingMuons(), HPSPFRecoTauAlgorithm::applyElectronRejection(), reco::tau::RecoTauImpactParameterSignificancePlugin::beginEvent(), bestTrack(), PFRecoTauAlgorithm::buildPFTau(), HPSPFRecoTauAlgorithm::buildPFTau(), HPSPFRecoTauAlgorithm::buildThreeProngs(), reco::PFMETProducerMVA::chargedFracInCone(), PFPileUpAlgo::chargedHadronVertex(), PrimaryVertexAssignment::chargedHadronVertex(), PFIsolationEstimator::chargedHadronVertex(), PFPhotonIsolationCalculator::chargedHadronVertex(), PileupJetIdAlgo::computeIdVariables(), reco::PFMETProducerMVA::computePFCandidateInfo(), metsig::SignAlgoResolutions::evalPF(), PFCandCommonVertexFitterBase::fill(), ChargedHadronTrackResolutionFilter::filter(), MuonBadTrackFilter::filter(), FFTJetPFPileupCleaner::findSomeVertexWFakes(), BPHTrackReference::getFromPF(), pat::helper::VertexingHelper::getTrack_(), reco::PFJet::getTrackRefs(), PFPhotonIsolationCalculator::isChargedParticleVetoed(), PFIsolationEstimator::isChargedParticleVetoed(), reco::tau::lead_track_chi2(), btagbtvdeep::lost_inner_hits_from_pfcand(), reco::modules::HICaloCompatibleTrackSelector::matchPFCandToTrack(), reco::tau::PFRecoTauChargedHadronFromPFCandidatePlugin::operator()(), PFTauElecRejectionBenchmark::process(), MuonWithPFIsoProducer::produce(), reco::ParticleFlowForChargedMETProducer::produce(), PFElectronTranslator::produce(), LowPtGSFToPackedCandidateLinker::produce(), pat::PATLostTracks::produce(), EgammaHLTPFChargedIsolationProducer::produce(), PuppiProducer::produce(), pat::PATPackedCandidateProducer::produce(), pat::PATTauProducer::produce(), PFRecoTauChargedHadronProducer::produce(), btagbtvdeep::quality_from_pfcand(), HPSPFRecoTauAlgorithm::refitThreeProng(), setMuonRef(), BoostedDoubleSVProducer::setTracksPV(), sourceCandidatePtr(), toTrackRef(), vertex(), btagbtvdeep::vtx_ass_from_pfcand(), PFRecoTauDiscriminationByHPSSelection::~PFRecoTauDiscriminationByHPSSelection(), PFTau3ProngReco::~PFTau3ProngReco(), PFTauPrimaryVertexProducerBase::~PFTauPrimaryVertexProducerBase(), PFTauSecondaryVertexProducer::~PFTauSecondaryVertexProducer(), and PFTauTransverseImpactParameters::~PFTauTransverseImpactParameters().
PFCandidate::ParticleType PFCandidate::translatePdgIdToType | ( | int | pdgid | ) | const |
Definition at line 233 of file PFCandidate.cc.
References funct::abs(), e, egamma_HF, gamma, h, h0, h_HF, mu, and X.
Referenced by particleId(), PuppiPhoton::produce(), DeltaBetaWeights::produce(), citk::PFIsolationSumProducerForPUPPI::produce(), PuppiProducer::produce(), citk::PFIsolationSumProducer::produce(), SoftKillerProducer::produce(), sourceCandidatePtr(), and VirtualJetProducer::writeJetsWithConstituents().
int PFCandidate::translateTypeToPdgId | ( | ParticleType | type | ) | const |
returns the pdg id corresponding to the particle type. the particle type could be removed at some point to gain some space. low priority
Definition at line 247 of file PFCandidate.cc.
References reco::LeafCandidate::charge(), e, egamma_HF, gamma, h, h0, h_HF, mu, and X.
Referenced by PFCandidate(), setParticleType(), and sourceCandidatePtr().
reco::VertexCompositeCandidateRef PFCandidate::v0Ref | ( | ) | const |
return a reference to the original conversion
Definition at line 573 of file PFCandidate.cc.
References GETREF, kRefV0Bit, and kRefV0Mask.
Referenced by dxyError().
|
overridevirtual |
vertex position (overwritten by PF...)
Reimplemented from reco::LeafCandidate.
Definition at line 656 of file PFCandidate.cc.
References gsfTrackRef(), kCandVertex, kComMuonVertex, kDYTMuonVertex, kGSFVertex, kPickyMuonVertex, kSAMuonVertex, kTPFMSMuonVertex, kTrkMuonVertex, kTrkVertex, muonRef(), trackRef(), reco::LeafCandidate::vertex(), and vertexType_.
Referenced by FWPFCandidateWithHitsProxyBuilder::build(), FWPFCandidate3DProxyBuilder::build(), HPSPFRecoTauAlgorithm::buildThreeProngs(), PFPileUpAlgo::chargedHadronVertex(), PFIsolationEstimator::chargedHadronVertex(), PFPhotonIsolationCalculator::chargedHadronVertex(), PFCandWithSuperClusterExtractor::depositFromObject(), Tau.Tau::dxy(), FFTJetPFPileupCleaner::findSomeVertexWFakes(), PFConcretePFCandidateProducer::produce(), EgammaHLTPFNeutralIsolationProducer::produce(), pat::PATPackedCandidateProducer::produce(), setVertex(), vx(), vy(), and vz().
|
inlineoverridevirtual |
x coordinate of vertex position
Reimplemented from reco::LeafCandidate.
Definition at line 414 of file PFCandidate.h.
References vertex().
Referenced by PFIsolationEstimator::fGetIsolationInRings().
|
inlineoverridevirtual |
y coordinate of vertex position
Reimplemented from reco::LeafCandidate.
Definition at line 415 of file PFCandidate.h.
References vertex().
Referenced by PFIsolationEstimator::fGetIsolationInRings().
|
inlineoverridevirtual |
z coordinate of vertex position
Reimplemented from reco::LeafCandidate.
Definition at line 416 of file PFCandidate.h.
References vertex().
Referenced by PFCandWithSuperClusterExtractor::depositFromObject(), and PFIsolationEstimator::fGetIsolationInRings().
|
friend |
|
static |
Definition at line 394 of file PFCandidate.h.
|
private |
Definition at line 447 of file PFCandidate.h.
Referenced by addElementInBlock(), elementsInBlocks(), operator=(), and PFCandidate().
|
private |
uncertainty on 3-momentum
Definition at line 487 of file PFCandidate.h.
Referenced by deltaP(), operator=(), PFCandidate(), and setDeltaP().
|
private |
corrected ECAL energy ratio (corrected/raw)
Definition at line 460 of file PFCandidate.h.
Referenced by ecalEnergy(), operator=(), PFCandidate(), and setEcalEnergy().
|
mutableprivate |
Definition at line 443 of file PFCandidate.h.
Referenced by addElementInBlock(), elementsInBlocks(), operator=(), PFCandidate(), and ~PFCandidate().
|
private |
Definition at line 448 of file PFCandidate.h.
Referenced by addElementInBlock(), elementsInBlocks(), operator=(), and PFCandidate().
|
private |
all flags, packed (ecal regional, hcal regional, tracking)
Definition at line 484 of file PFCandidate.h.
Referenced by flag(), operator=(), PFCandidate(), and setFlag().
|
private |
Definition at line 524 of file PFCandidate.h.
Referenced by operator=(), PFCandidate(), and storeRefInfo().
|
private |
Definition at line 534 of file PFCandidate.h.
Referenced by hcalDepthEnergyFraction(), hcalDepthEnergyFractions(), operator=(), PFCandidate(), and setHcalDepthEnergyFractions().
|
private |
corrected HCAL energy ratio (corrected/raw)
Definition at line 463 of file PFCandidate.h.
Referenced by hcalEnergy(), operator=(), PFCandidate(), and setHcalEnergy().
|
private |
corrected HO energy ratio (corrected/raw)
Definition at line 466 of file PFCandidate.h.
Referenced by hoEnergy(), operator=(), PFCandidate(), and setHoEnergy().
|
private |
Reference to the best track if it is a muon pF is allowed to switch the default muon track
Definition at line 457 of file PFCandidate.h.
Referenced by bestMuonTrackType(), operator=(), PFCandidate(), and setMuonTrackType().
|
private |
mva for electron-muon discrimination
Definition at line 498 of file PFCandidate.h.
Referenced by mva_e_mu(), operator=(), PFCandidate(), and set_mva_e_mu().
|
private |
mva for electron-pion discrimination
Definition at line 495 of file PFCandidate.h.
Referenced by mva_e_pi(), operator=(), PFCandidate(), and set_mva_e_pi().
|
private |
mva for neutral hadron - gamma discrimination
Definition at line 510 of file PFCandidate.h.
Referenced by mva_gamma_nh(), operator=(), PFCandidate(), and set_mva_gamma_nh().
|
private |
Definition at line 492 of file PFCandidate.h.
Referenced by mva_Isolated(), operator=(), PFCandidate(), and set_mva_Isolated().
|
private |
mva for gamma detection
Definition at line 504 of file PFCandidate.h.
Referenced by mva_nothing_gamma(), operator=(), PFCandidate(), and set_mva_nothing_gamma().
|
private |
mva for neutral hadron detection
Definition at line 507 of file PFCandidate.h.
Referenced by mva_nothing_nh(), operator=(), PFCandidate(), and set_mva_nothing_nh().
|
private |
mva for pi-muon discrimination
Definition at line 501 of file PFCandidate.h.
Referenced by mva_pi_mu(), operator=(), PFCandidate(), and set_mva_pi_mu().
|
private |
position at ECAL entrance, from the PFRecTrack
Definition at line 513 of file PFCandidate.h.
Referenced by operator=(), PFCandidate(), positionAtECALEntrance(), and setPositionAtECALEntrance().
|
private |
corrected PS1 energy
Definition at line 478 of file PFCandidate.h.
Referenced by operator=(), PFCandidate(), pS1Energy(), and setPs1Energy().
|
private |
corrected PS2 energy
Definition at line 481 of file PFCandidate.h.
Referenced by operator=(), PFCandidate(), pS2Energy(), and setPs2Energy().
|
private |
raw ECAL energy
Definition at line 469 of file PFCandidate.h.
Referenced by ecalEnergy(), operator=(), PFCandidate(), rawEcalEnergy(), and setEcalEnergy().
|
private |
raw HCAL energy
Definition at line 472 of file PFCandidate.h.
Referenced by hcalEnergy(), operator=(), PFCandidate(), rawHcalEnergy(), and setHcalEnergy().
|
private |
raw HO energy
Definition at line 475 of file PFCandidate.h.
Referenced by hoEnergy(), operator=(), PFCandidate(), rawHoEnergy(), and setHoEnergy().
|
private |
Definition at line 527 of file PFCandidate.h.
Referenced by operator=(), PFCandidate(), and storeRefInfo().
|
private |
Definition at line 526 of file PFCandidate.h.
Referenced by getRefInfo(), operator=(), PFCandidate(), and storeRefInfo().
|
private |
reference to the source PFCandidate, if any
Definition at line 452 of file PFCandidate.h.
Referenced by flag(), operator=(), overlap(), PFCandidate(), setSourceCandidatePtr(), and sourceCandidatePtr().
|
private |
Definition at line 525 of file PFCandidate.h.
Referenced by getRefInfo(), operator=(), PFCandidate(), and storeRefInfo().
|
private |
timing information (valid if timeError_ >= 0)
Definition at line 530 of file PFCandidate.h.
Referenced by operator=(), PFCandidate(), setTime(), and time().
|
private |
timing information uncertainty (<0 if timing not available)
Definition at line 532 of file PFCandidate.h.
Referenced by isTimeValid(), operator=(), PFCandidate(), setTime(), and timeError().
|
private |
Definition at line 489 of file PFCandidate.h.
Referenced by operator=(), PFCandidate(), setVertex(), setVertexSource(), and vertex().