Go to the documentation of this file. 1 #ifndef ParticleFlowCandidate_PFCandidate_h
2 #define ParticleFlowCandidate_PFCandidate_h
9 #if !defined(__CINT__) && !defined(__MAKECINT__) && !defined(__REFLEX__)
391 double vx()
const override {
return vertex().x(); }
392 double vy()
const override {
return vertex().y(); }
393 double vz()
const override {
return vertex().z(); }
425 #if !defined(__CINT__) && !defined(__MAKECINT__) && !defined(__REFLEX__)
506 unsigned int iMask,
unsigned int iBit,
edm::ProductID& oProdID,
size_t& oIndex,
size_t& aIndex)
const;
reco::TrackRef trackRef() const
PFCandidatePtr sourcePtr_
reference to the source PFCandidate, if any
bool isTimeValid() const
do we have a valid time information
std::array< float, 7 > hcalDepthEnergyFractions_
float mva_nothing_nh() const
mva for neutral hadron detection
void addElementInBlock(const reco::PFBlockRef &blockref, unsigned elementIndex)
add an element to the current PFCandidate
const edm::EDProductGetter * getter_
double vy() const override
y coordinate of vertex position
void setPhotonRef(const reco::PhotonRef &phRef)
set ref to the corresponding reco::Photon if any
float timeError_
timing information uncertainty (<0 if timing not available)
double pS2Energy() const
return corrected PS2 energy
MuonTrackType
map for Global Muon refitters
PFCandidate & operator=(PFCandidate const &)
void setDisplacedVertexRef(const reco::PFDisplacedVertexRef &ref, Flags flag)
set displaced vertex reference
reco::PhotonRef photonRef() const
return a reference to the corresponding Photon if any
void setPs2Energy(float e2)
set corrected PS2 energy
float ps1Energy_
corrected PS1 energy
float rawHcalEnergy_
raw HCAL energy
void setPFEGammaExtraRef(const reco::PFCandidateEGammaExtraRef &ref)
set the PF EGamma Extra Ref
float mva_e_pi() const
mva for electron-pion discrimination
void set_mva_gamma_nh(float mva)
set mva for neutral hadron - gamma discrimination
bool flag(Flags theFlag) const
return a given flag
void setPositionAtECALEntrance(const math::XYZPointF &pos)
set position at ECAL entrance
const math::XYZPointF & positionAtECALEntrance() const
float hcalERatio_
corrected HCAL energy ratio (corrected/raw)
void setDeltaP(double dp)
set uncertainty on momentum
const Point & vertex() const override
vertex position (overwritten by PF...)
double vz() const override
z coordinate of vertex position
void setGsfElectronRef(const reco::GsfElectronRef &ref)
set GsfElectronRef
std::vector< unsigned long long > refsInfo_
float mva_pi_mu_
mva for pi-muon discrimination
virtual void setSourceCandidatePtr(const CandidatePtr &ptr)
Set the ptr to the source Candidate.
CandidatePtr sourceCandidatePtr(size_type i) const override
const ElementsInBlocks & elementsInBlocks() const
void setSuperClusterRef(const reco::SuperClusterRef &scRef)
math::XYZPointF positionAtECALEntrance_
position at ECAL entrance, from the PFRecTrack
double dxyError() const
error on dxy
float mva_e_pi_
mva for electron-pion discrimination
float dzError() const override
uncertainty on dz
float hoERatio_
corrected HO energy ratio (corrected/raw)
double rawHcalEnergy() const
return raw Hcal energy
reco::PFCandidateEGammaExtraRef egammaExtraRef() const
return a reference to the EGamma extra
const math::XYZPoint & vertexLegacy(PFCandidate::PFVertexType vertexType) const
reco::PFDisplacedVertexRef displacedVertexRef(Flags type) const
float ecalERatio_
corrected ECAL energy ratio (corrected/raw)
reco::MuonRef muonRef() const
double deltaP() const
uncertainty on 3-momentum
float mva_nothing_nh_
mva for neutral hadron detection
float time_
timing information (valid if timeError_ >= 0)
const reco::Muon::MuonTrackType bestMuonTrackType() const
get the Best Muon Track Ref
void setFlag(Flags theFlag, bool value)
set a given flag
void setTrackRef(const reco::TrackRef &ref)
set track reference
bool overlap(const Candidate &) const override
Polymorphic overlap.
const std::array< float, 7 > & hcalDepthEnergyFractions() const
fraction of hcal energy at a given depth (index 0..6 for depth 1..7)
float rawHoEnergy_
raw HO energy
Elements elementsStorage_
void set_mva_e_mu(float mva)
set mva for electron-muon discrimination
float mva_e_mu_
mva for electron-muon discrimination
double rawEcalEnergy() const
return corrected Ecal energy
float dxyError() const override
uncertainty on dxy
void setHoEnergy(float eoRaw, float eoCorr)
set corrected Hcal energy
float mva_pi_mu() const
mva for pi-muon discrimination
std::atomic< ElementsInBlocks * > elementsInBlocks_
std::vector< const void * > refsCollectionCache_
void setConversionRef(const reco::ConversionRef &ref)
set ref to original reco conversion
void rescaleMomentum(double rescaleFactor)
particle momentum *= rescaleFactor
int Charge
electric charge type
float hcalDepthEnergyFraction(unsigned int depth) const
fraction of hcal energy at a given depth (depth = 1 .. 7)
std::vector< ElementInBlock > ElementsInBlocks
edm::RefVector< reco::PFBlockCollection > Blocks
void set_mva_Isolated(float mvaI)
~PFCandidate() override
destructor
bool getRefInfo(unsigned int iMask, unsigned int iBit, edm::ProductID &oProdID, size_t &oIndex, size_t &aIndex) const
PFCandidate()
default constructor
void set_mva_nothing_nh(float mva)
set mva for neutral hadron detection
void set_mva_e_pi(float mvaNI)
Structure Point Contains parameters of Gaussian fits to DMRs.
float mva_Isolated() const
void setV0Ref(const reco::VertexCompositeCandidateRef &ref)
set ref to original reco conversion
XYZPointD XYZPoint
point in space with cartesian internal representation
reco::GsfTrackRef gsfTrackRef() const
reco::PFCandidatePhotonExtraRef photonExtraRef() const
return a reference to the photon extra
std::pair< reco::PFBlockRef, unsigned > ElementInBlock
return indices of elements used in the block
reco::VertexCompositeCandidateRef v0Ref() const
return a reference to the original conversion
virtual ParticleType particleId() const
void setEcalEnergy(float eeRaw, float eeCorr)
set corrected Ecal energy
reco::Muon::MuonTrackType muonTrackType_
int pdgId() const final
PDG identifier.
bool isNonnull() const
Checks for non-null.
double pS1Energy() const
return corrected PS1 energy
reco::PFCandidateElectronExtraRef electronExtraRef() const
return a reference to the electron extra
float mva_gamma_nh() const
mva for neutral hadron - gamma discrimination
void set_mva_pi_mu(float mva)
set mva for pi-muon discrimination
double dzError() const
error on dz
double rawHoEnergy() const
return raw Hcal energy
const LorentzVector & p4() const final
four-momentum Lorentz vector
std::ostream & operator<<(std::ostream &, BeamSpot beam)
reco::SuperClusterRef superClusterRef() const
return a reference to the corresponding SuperCluster if any
PFCandidate * clone() const override
return a clone
int translateTypeToPdgId(ParticleType type) const
float rawEcalEnergy_
raw ECAL energy
double ecalEnergy() const
return corrected Ecal energy
void storeRefInfo(unsigned int iMask, unsigned int iBit, bool iIsValid, const edm::RefCore &iCore, size_t iKey, const edm::EDProductGetter *)
friend std::ostream & operator<<(std::ostream &out, const PFCandidate &c)
void setGsfTrackRef(const reco::GsfTrackRef &ref)
set gsftrack reference
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)
static const float bigMva_
static unsigned const int shift
double hcalEnergy() const
return corrected Hcal energy
math::XYZTLorentzVector LorentzVector
void setMuonTrackType(const reco::Muon::MuonTrackType &type)
set the Best Muon Track Ref
unsigned short storedRefsBitPattern_
float mva_nothing_gamma() const
mva for gamma detection
size_t numberOfSourceCandidatePtrs() const override
void setHcalEnergy(float ehRaw, float ehCorr)
set corrected Hcal energy
ParticleType translatePdgIdToType(int pdgid) const
unsigned flags_
all flags, packed (ecal regional, hcal regional, tracking)
#define GET_CANDIDATE_COMPONENT(CAND, TYPE, FUN, TAG)
const reco::Track * bestTrack() const override
Particle reconstructed by the particle flow algorithm.
reco::ConversionRef conversionRef() const
return a reference to the original conversion
particle ID component tag
void setTime(float time, float timeError=0.f)
\set the timing information
Abs< T >::type abs(const T &t)
float ps2Energy_
corrected PS2 energy
ParticleType
particle types
void setMuonRef(const reco::MuonRef &ref)
set muon reference
std::vector< unsigned > Elements
void setPs1Energy(float e1)
set corrected PS1 energy
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
void setSourceCandidatePtr(const PFCandidatePtr &ptr)
reco::GsfElectronRef gsfElectronRef() const
return a reference to the corresponding GsfElectron if any
void setPFElectronExtraRef(const reco::PFCandidateElectronExtraRef &ref)
set the PF Electron Extra Ref
float mva_e_mu() const
mva for electron-muon discrimination
void setPFPhotonExtraRef(const reco::PFCandidatePhotonExtraRef &ref)
set the PF Photon Extra Ref
float deltaP_
uncertainty on 3-momentum
double vx() const override
x coordinate of vertex position
void setParticleType(ParticleType type)
set Particle Type
float mva_nothing_gamma_
mva for gamma detection
float mva_gamma_nh_
mva for neutral hadron - gamma discrimination
void set_mva_nothing_gamma(float mva)
set mva for gamma detection
double hoEnergy() const
return corrected Hcal energy