CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Friends
reco::PFCandidate Class Reference

Particle reconstructed by the particle flow algorithm. More...

#include <PFCandidate.h>

Inheritance diagram for reco::PFCandidate:
reco::CompositeCandidate reco::LeafCandidate reco::Candidate pat::PATObject< reco::PFCandidate > reco::IsolatedPFCandidate reco::PileUpPFCandidate pat::PFParticle

Public Types

typedef edm::RefVector
< reco::PFBlockCollection
Blocks
 
typedef std::pair
< reco::PFBlockRef, unsigned > 
ElementInBlock
 return indices of elements used in the block More...
 
typedef std::vector< unsigned > Elements
 
typedef std::vector
< ElementInBlock
ElementsInBlocks
 
enum  Flags {
  NORMAL =0, E_PHI_SMODULES, E_ETA_0, E_ETA_MODULES,
  E_BARREL_ENDCAP, E_PRESHOWER_EDGE, E_PRESHOWER, E_ENDCAP_EDGE,
  H_ETA_0, H_BARREL_ENDCAP, H_ENDCAP_VFCAL, H_VFCAL_EDGE,
  T_TO_DISP, T_FROM_DISP, T_FROM_V0, T_FROM_GAMMACONV,
  GAMMA_TO_GAMMACONV
}
 
enum  ParticleType {
  X =0, h, e, mu,
  gamma, h0, h_HF, egamma_HF
}
 particle types More...
 
enum  PFVertexType {
  kCandVertex =0, kTrkVertex =1, kComMuonVertex =2, kSAMuonVertex =3,
  kTrkMuonVertex =4, kGSFVertex =5, kTPFMSMuonVertex =6, kPickyMuonVertex =7
}
 
- Public Types inherited from reco::CompositeCandidate
typedef CandidateCollection daughters
 collection of daughters More...
 
typedef std::vector< std::string > role_collection
 
- Public Types inherited from reco::LeafCandidate
typedef int Charge
 electric charge type More...
 
typedef CandidateCollection daughters
 collection of daughter candidates More...
 
typedef unsigned int index
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef
math::PtEtaPhiMLorentzVector 
PolarLorentzVector
 Lorentz vector. More...
 
typedef math::XYZVector Vector
 point in the space More...
 
- Public Types inherited from reco::Candidate
enum  { dimension = 3 }
 
enum  { size = dimension * (dimension + 1)/2 }
 matix size More...
 
typedef int Charge
 electric charge type More...
 
typedef candidate::const_iterator const_iterator
 
typedef math::Error< dimension >
::type 
CovarianceMatrix
 covariance error matrix (3x3) More...
 
typedef unsigned int index
 index type More...
 
typedef candidate::iterator iterator
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef
math::PtEtaPhiMLorentzVector 
PolarLorentzVector
 Lorentz vector. More...
 
typedef size_t size_type
 
typedef math::XYZVector Vector
 point in the space More...
 

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...
 
virtual const reco::TrackbestTrack () const
 
virtual PFCandidateclone () const
 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
 
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 ElementsInBlockselementsInBlocks () 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
 
double hcalEnergy () const
 return corrected Hcal energy More...
 
double hoEnergy () const
 return corrected Hcal energy 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
 
PFCandidateoperator= (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::XYZPointFpositionAtECALEntrance () 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 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 setTrackRef (const reco::TrackRef &ref)
 set track reference More...
 
void setV0Ref (const reco::VertexCompositeCandidateRef &ref)
 set ref to original reco conversion More...
 
virtual void setVertex (const math::XYZPoint &p)
 set vertex More...
 
void setVertexSource (PFVertexType vt)
 
CandidatePtr sourceCandidatePtr (size_type i) const
 
reco::SuperClusterRef superClusterRef () const
 return a reference to the corresponding SuperCluster if any More...
 
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...
 
virtual const Pointvertex () const
 vertex position (overwritten by PF...) More...
 
virtual double vx () const
 x coordinate of vertex position More...
 
virtual double vy () const
 y coordinate of vertex position More...
 
virtual double vz () const
 z coordinate of vertex position More...
 
virtual ~PFCandidate ()
 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::auto_ptr< Candidate >, const std::string &s="")
 add a clone of the passed candidate as daughter More...
 
void applyRoles ()
 
virtual const_iterator begin () const
 first daughter const_iterator More...
 
virtual iterator begin ()
 first daughter iterator More...
 
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...
 
virtual const Candidatedaughter (size_type) const
 return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) More...
 
virtual Candidatedaughter (size_type)
 return daughter at a given position, i = 0, ... numberOfDaughters() - 1 More...
 
virtual Candidatedaughter (const std::string &s)
 return daughter with a specified role name More...
 
virtual const Candidatedaughter (const std::string &s) const
 return daughter with a specified role name More...
 
virtual const_iterator end () const
 last daughter const_iterator More...
 
virtual iterator end ()
 last daughter const_iterator More...
 
virtual const Candidatemother (size_type i=0) const
 return pointer to mother More...
 
std::string name () const
 get the name of the candidate More...
 
virtual size_type numberOfDaughters () const
 number of daughters More...
 
virtual size_type numberOfMothers () const
 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...
 
virtual ~CompositeCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::LeafCandidate
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
 
virtual Vector boostToCM () const GCC11_FINAL
 
virtual int charge () const GCC11_FINAL
 electric charge More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
virtual double energy () const GCC11_FINAL
 energy More...
 
virtual double et () const GCC11_FINAL
 transverse energy More...
 
virtual float eta () const GCC11_FINAL
 momentum pseudorapidity More...
 
virtual void fillVertexCovariance (CovarianceMatrix &v) const
 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...
 
virtual bool hasMasterClone () const
 
virtual bool hasMasterClonePtr () const
 
virtual bool isCaloMuon () const
 
virtual bool isConvertedPhoton () const
 
virtual bool isElectron () const
 
virtual bool isGlobalMuon () const
 
virtual bool isJet () const
 
virtual bool isMuon () const
 
virtual bool isPhoton () const
 
virtual bool isStandAloneMuon () const
 
virtual bool isTrackerMuon () const
 
 LeafCandidate ()
 default constructor More...
 
 LeafCandidate (const Candidate &c)
 
template<typename P4 >
 LeafCandidate (Charge q, const P4 &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from Any values More...
 
 LeafCandidate (Charge q, const PtEtaPhiMass &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const GlobalVector &p3, float iEnergy, bool massless, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const GlobalVector &p3, float iEnergy, float imass, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
virtual bool longLived () const GCC11_FINAL
 is long lived? More...
 
virtual float mass () const GCC11_FINAL
 mass More...
 
virtual bool massConstraint () const GCC11_FINAL
 do mass constraint? More...
 
virtual float massSqr () const GCC11_FINAL
 mass squared More...
 
virtual const CandidateBaseRefmasterClone () const
 
virtual const CandidatePtrmasterClonePtr () const
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
virtual Vector momentum () const GCC11_FINAL
 spatial momentum vector More...
 
virtual double mt () const GCC11_FINAL
 transverse mass More...
 
virtual double mtSqr () const GCC11_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...
 
virtual double p () const GCC11_FINAL
 magnitude of momentum vector More...
 
virtual const LorentzVectorp4 () const GCC11_FINAL
 four-momentum Lorentz vector More...
 
virtual int pdgId () const GCC11_FINAL
 PDG identifier. More...
 
virtual float phi () const GCC11_FINAL
 momentum azimuthal angle More...
 
virtual const PolarLorentzVectorpolarP4 () const GCC11_FINAL
 four-momentum Lorentz vector More...
 
virtual float pt () const GCC11_FINAL
 transverse momentum More...
 
virtual double px () const GCC11_FINAL
 x coordinate of momentum vector More...
 
virtual double py () const GCC11_FINAL
 y coordinate of momentum vector More...
 
virtual double pz () const GCC11_FINAL
 z coordinate of momentum vector More...
 
virtual double rapidity () const GCC11_FINAL
 rapidity More...
 
virtual void setCharge (Charge q) GCC11_FINAL
 set electric charge More...
 
virtual void setLongLived () GCC11_FINAL
 set long lived flag More...
 
virtual void setMass (double m) GCC11_FINAL
 set particle mass More...
 
virtual void setMassConstraint () GCC11_FINAL
 set mass constraint flag More...
 
virtual void setP4 (const LorentzVector &p4) GCC11_FINAL
 set 4-momentum More...
 
virtual void setP4 (const PolarLorentzVector &p4) GCC11_FINAL
 set 4-momentum More...
 
virtual void setPdgId (int pdgId) GCC11_FINAL
 
virtual void setPz (double pz) GCC11_FINAL
 
virtual void setStatus (int status) GCC11_FINAL
 set status word More...
 
virtual void setThreeCharge (Charge qx3) GCC11_FINAL
 set electric charge More...
 
virtual int status () const GCC11_FINAL
 status word More...
 
virtual double theta () const GCC11_FINAL
 momentum polar angle More...
 
virtual int threeCharge () const GCC11_FINAL
 electric charge More...
 
virtual double vertexChi2 () const
 chi-squares More...
 
virtual double vertexCovariance (int i, int j) const
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix vertexCovariance () const GCC11_FINAL
 return SMatrix More...
 
virtual double vertexNdof () const
 
virtual double vertexNormalizedChi2 () const
 chi-squared divided by n.d.o.f. More...
 
virtual double y () const GCC11_FINAL
 rapidity More...
 
virtual ~LeafCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
 
 Candidate ()
 default constructor More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
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.
 
- Static Public Attributes inherited from reco::LeafCandidate
static const unsigned int longLivedTag = 65536
 long lived flag More...
 
static const unsigned int massConstraintTag = 131072
 do mass constraint flag More...
 

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
 
virtual bool overlap (const Candidate &) const
 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::EDProductGettergetter_
 
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_
 
PFVertexType vertexType_
 

Friends

std::ostream & operator<< (std::ostream &out, const PFCandidate &c)
 

Additional Inherited Members

- Static Public Member Functions inherited from reco::LeafCandidate
static double dmass (GlobalVector v, double e)
 
static double magd (GlobalVector v)
 
- Protected Member Functions inherited from reco::LeafCandidate
void cacheCartesian () const
 set internal cache More...
 
void cachePolar () const
 set internal cache More...
 
void clearCache () const
 clear internal cache More...
 
- Protected Attributes inherited from reco::LeafCandidate
bool cacheCartesianFixed_
 
bool cachePolarFixed_
 has cache been set? More...
 
float eta_
 
float mass_
 
LorentzVector p4Cartesian_
 internal cache for p4 More...
 
PolarLorentzVector p4Polar_
 internal cache for p4 More...
 
int pdgId_
 PDG identifier. More...
 
float phi_
 
float pt_
 four-momentum Lorentz vector More...
 
Charge qx3_
 electric charge More...
 
int status_
 status word More...
 
Point vertex_
 vertex position More...
 

Detailed Description

Particle reconstructed by the particle flow algorithm.

particle candidate from particle flow

Author
Colin Bernet
Date
February 2007

Definition at line 39 of file PFCandidate.h.

Member Typedef Documentation

Definition at line 383 of file PFCandidate.h.

return indices of elements used in the block

return elements return elements in blocks

Definition at line 380 of file PFCandidate.h.

typedef std::vector<unsigned> reco::PFCandidate::Elements

Definition at line 384 of file PFCandidate.h.

Definition at line 381 of file PFCandidate.h.

Member Enumeration Documentation

Enumerator
NORMAL 
E_PHI_SMODULES 
E_ETA_0 
E_ETA_MODULES 
E_BARREL_ENDCAP 
E_PRESHOWER_EDGE 
E_PRESHOWER 
E_ENDCAP_EDGE 
H_ETA_0 
H_BARREL_ENDCAP 
H_ENDCAP_VFCAL 
H_VFCAL_EDGE 
T_TO_DISP 
T_FROM_DISP 
T_FROM_V0 
T_FROM_GAMMACONV 
GAMMA_TO_GAMMACONV 

Definition at line 55 of file PFCandidate.h.

particle types

Enumerator
X 
h 
e 
mu 
gamma 
h0 
h_HF 
egamma_HF 

Definition at line 44 of file PFCandidate.h.

44  {
45  X=0, // undefined
46  h, // charged hadron
47  e, // electron
48  mu, // muon
49  gamma, // photon
50  h0, // neutral hadron
51  h_HF, // HF tower identified as a hadron
52  egamma_HF // HF tower identified as an EM particle
53  };
Enumerator
kCandVertex 
kTrkVertex 
kComMuonVertex 
kSAMuonVertex 
kTrkMuonVertex 
kGSFVertex 
kTPFMSMuonVertex 
kPickyMuonVertex 

Definition at line 76 of file PFCandidate.h.

Constructor & Destructor Documentation

PFCandidate::PFCandidate ( )

default constructor

Definition at line 31 of file PFCandidate.cc.

References muonTrackType_, reco::Muon::None, refsInfo_, reco::LeafCandidate::setPdgId(), translateTypeToPdgId(), and X.

Referenced by clone().

31  :
32  elementsInBlocks_(nullptr),
33  ecalERatio_(1.),
34  hcalERatio_(1.),
35  hoERatio_(1.),
36  rawEcalEnergy_(0.),
37  rawHcalEnergy_(0.),
38  rawHoEnergy_(0.),
39  ps1Energy_(0.),
40  ps2Energy_(0.),
41  flags_(0),
42  deltaP_(0.),
52 {
53 
55 
57  refsInfo_.reserve(3);
58 }
float deltaP_
uncertainty on 3-momentum
Definition: PFCandidate.h:466
reco::Muon::MuonTrackType muonTrackType_
Definition: PFCandidate.h:436
const edm::EDProductGetter * getter_
Definition: PFCandidate.h:503
float hcalERatio_
corrected HCAL energy ratio (corrected/raw)
Definition: PFCandidate.h:442
float rawHcalEnergy_
raw HCAL energy
Definition: PFCandidate.h:451
unsigned flags_
all flags, packed (ecal regional, hcal regional, tracking)
Definition: PFCandidate.h:463
float mva_e_mu_
mva for electron-muon discrimination
Definition: PFCandidate.h:477
static const float bigMva_
Definition: PFCandidate.h:388
float mva_nothing_nh_
mva for neutral hadron detection
Definition: PFCandidate.h:486
float hoERatio_
corrected HO energy ratio (corrected/raw)
Definition: PFCandidate.h:445
float mva_gamma_nh_
mva for neutral hadron - gamma discrimination
Definition: PFCandidate.h:489
float ecalERatio_
corrected ECAL energy ratio (corrected/raw)
Definition: PFCandidate.h:439
float mva_pi_mu_
mva for pi-muon discrimination
Definition: PFCandidate.h:480
float rawEcalEnergy_
raw ECAL energy
Definition: PFCandidate.h:448
float mva_e_pi_
mva for electron-pion discrimination
Definition: PFCandidate.h:474
std::vector< unsigned long long > refsInfo_
Definition: PFCandidate.h:505
float ps1Energy_
corrected PS1 energy
Definition: PFCandidate.h:457
unsigned short storedRefsBitPattern_
Definition: PFCandidate.h:504
int translateTypeToPdgId(ParticleType type) const
Definition: PFCandidate.cc:238
float rawHoEnergy_
raw HO energy
Definition: PFCandidate.h:454
std::atomic< ElementsInBlocks * > elementsInBlocks_
Definition: PFCandidate.h:422
PFVertexType vertexType_
Definition: PFCandidate.h:468
float mva_nothing_gamma_
mva for gamma detection
Definition: PFCandidate.h:483
float ps2Energy_
corrected PS2 energy
Definition: PFCandidate.h:460
virtual void setPdgId(int pdgId) GCC11_FINAL
PFCandidate::PFCandidate ( const PFCandidatePtr sourcePtr)

constructor from a reference (keeps track of source relationship)

Definition at line 61 of file PFCandidate.cc.

References sourcePtr_.

61  :
62  PFCandidate(*sourcePtr)
63 {
64  sourcePtr_ = sourcePtr;
65 }
PFCandidate()
default constructor
Definition: PFCandidate.cc:31
PFCandidatePtr sourcePtr_
reference to the source PFCandidate, if any
Definition: PFCandidate.h:431
PFCandidate::PFCandidate ( Charge  q,
const LorentzVector p4,
ParticleType  particleId 
)

Definition at line 68 of file PFCandidate.cc.

References blocksStorage_, e, elementsStorage_, edm::hlt::Exception, h, mu, muonTrackType_, reco::Muon::None, refsInfo_, edm::RefVector< C, T, F >::reserve(), reco::LeafCandidate::setPdgId(), and translateTypeToPdgId().

70  :
71 
73  elementsInBlocks_(nullptr),
74  ecalERatio_(1.),
75  hcalERatio_(1.),
76  hoERatio_(1.),
77  rawEcalEnergy_(0.),
78  rawHcalEnergy_(0.),
79  rawHoEnergy_(0.),
80  ps1Energy_(0.),
81  ps2Energy_(0.),
82  flags_(0),
83  deltaP_(0.),
93 {
94  refsInfo_.reserve(3);
96  elementsStorage_.reserve(10);
97 
99 
100  // proceed with various consistency checks
101 
102  // charged candidate: track ref and charge must be non null
103  if( partId == h ||
104  partId == e ||
105  partId == mu ) {
106 
107  if( charge == 0 ) {
108  string err;
109  err+="Attempt to construct a charged PFCandidate with a zero charge";
110  throw cms::Exception("InconsistentValue",
111  err.c_str() );
112  }
113  }
114  else {
115  if( charge ) {
116  string err;
117  err += "Attempt to construct a neutral PFCandidate ";
118  err += "with a non-zero charge";
119  throw cms::Exception("InconsistentValue",
120  err.c_str() );
121  }
122  }
123  setPdgId( translateTypeToPdgId( partId ) );
124 }
float deltaP_
uncertainty on 3-momentum
Definition: PFCandidate.h:466
reco::Muon::MuonTrackType muonTrackType_
Definition: PFCandidate.h:436
const edm::EDProductGetter * getter_
Definition: PFCandidate.h:503
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
float hcalERatio_
corrected HCAL energy ratio (corrected/raw)
Definition: PFCandidate.h:442
float rawHcalEnergy_
raw HCAL energy
Definition: PFCandidate.h:451
unsigned flags_
all flags, packed (ecal regional, hcal regional, tracking)
Definition: PFCandidate.h:463
float mva_e_mu_
mva for electron-muon discrimination
Definition: PFCandidate.h:477
static const float bigMva_
Definition: PFCandidate.h:388
float mva_nothing_nh_
mva for neutral hadron detection
Definition: PFCandidate.h:486
float hoERatio_
corrected HO energy ratio (corrected/raw)
Definition: PFCandidate.h:445
float mva_gamma_nh_
mva for neutral hadron - gamma discrimination
Definition: PFCandidate.h:489
float ecalERatio_
corrected ECAL energy ratio (corrected/raw)
Definition: PFCandidate.h:439
float mva_pi_mu_
mva for pi-muon discrimination
Definition: PFCandidate.h:480
float rawEcalEnergy_
raw ECAL energy
Definition: PFCandidate.h:448
float mva_e_pi_
mva for electron-pion discrimination
Definition: PFCandidate.h:474
std::vector< unsigned long long > refsInfo_
Definition: PFCandidate.h:505
float ps1Energy_
corrected PS1 energy
Definition: PFCandidate.h:457
unsigned short storedRefsBitPattern_
Definition: PFCandidate.h:504
int translateTypeToPdgId(ParticleType type) const
Definition: PFCandidate.cc:238
CompositeCandidate(std::string name="")
default constructor
float rawHoEnergy_
raw HO energy
Definition: PFCandidate.h:454
void reserve(size_type n)
Reserve space for RefVector.
Definition: RefVector.h:95
virtual int charge() const GCC11_FINAL
electric charge
std::atomic< ElementsInBlocks * > elementsInBlocks_
Definition: PFCandidate.h:422
PFVertexType vertexType_
Definition: PFCandidate.h:468
float mva_nothing_gamma_
mva for gamma detection
Definition: PFCandidate.h:483
float ps2Energy_
corrected PS2 energy
Definition: PFCandidate.h:460
virtual void setPdgId(int pdgId) GCC11_FINAL
Elements elementsStorage_
Definition: PFCandidate.h:427
PFCandidate::PFCandidate ( const PFCandidate iOther)

copy constructor

Definition at line 126 of file PFCandidate.cc.

References elementsInBlocks_, and tmp.

126  :
127  CompositeCandidate(iOther),
128  elementsInBlocks_(nullptr),
131  sourcePtr_(iOther.sourcePtr_),
133  ecalERatio_(iOther.ecalERatio_),
134  hcalERatio_(iOther.hcalERatio_),
135  hoERatio_(iOther.hoERatio_),
138  rawHoEnergy_(iOther.rawHoEnergy_),
139  ps1Energy_(iOther.ps1Energy_),
140  ps2Energy_(iOther.ps2Energy_),
141  flags_(iOther.flags_),
142  deltaP_(iOther.deltaP_),
143  vertexType_(iOther.vertexType_),
145  mva_e_pi_(iOther.mva_e_pi_),
146  mva_e_mu_(iOther.mva_e_mu_),
147  mva_pi_mu_(iOther.mva_pi_mu_),
152  getter_(iOther.getter_),
154  refsInfo_(iOther.refsInfo_),
156 {
157  auto tmp = iOther.elementsInBlocks_.load(std::memory_order_acquire);
158  if(nullptr != tmp) {
159  elementsInBlocks_.store( new ElementsInBlocks{*tmp}, std::memory_order_release);
160  }
161 }
float deltaP_
uncertainty on 3-momentum
Definition: PFCandidate.h:466
reco::Muon::MuonTrackType muonTrackType_
Definition: PFCandidate.h:436
const edm::EDProductGetter * getter_
Definition: PFCandidate.h:503
float hcalERatio_
corrected HCAL energy ratio (corrected/raw)
Definition: PFCandidate.h:442
float rawHcalEnergy_
raw HCAL energy
Definition: PFCandidate.h:451
unsigned flags_
all flags, packed (ecal regional, hcal regional, tracking)
Definition: PFCandidate.h:463
float mva_e_mu_
mva for electron-muon discrimination
Definition: PFCandidate.h:477
float mva_nothing_nh_
mva for neutral hadron detection
Definition: PFCandidate.h:486
float hoERatio_
corrected HO energy ratio (corrected/raw)
Definition: PFCandidate.h:445
float mva_gamma_nh_
mva for neutral hadron - gamma discrimination
Definition: PFCandidate.h:489
float ecalERatio_
corrected ECAL energy ratio (corrected/raw)
Definition: PFCandidate.h:439
float mva_pi_mu_
mva for pi-muon discrimination
Definition: PFCandidate.h:480
float rawEcalEnergy_
raw ECAL energy
Definition: PFCandidate.h:448
float mva_e_pi_
mva for electron-pion discrimination
Definition: PFCandidate.h:474
std::vector< unsigned long long > refsInfo_
Definition: PFCandidate.h:505
float ps1Energy_
corrected PS1 energy
Definition: PFCandidate.h:457
unsigned short storedRefsBitPattern_
Definition: PFCandidate.h:504
CompositeCandidate(std::string name="")
default constructor
float rawHoEnergy_
raw HO energy
Definition: PFCandidate.h:454
std::vector< ElementInBlock > ElementsInBlocks
std::atomic< ElementsInBlocks * > elementsInBlocks_
Definition: PFCandidate.h:422
PFVertexType vertexType_
Definition: PFCandidate.h:468
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
PFCandidatePtr sourcePtr_
reference to the source PFCandidate, if any
Definition: PFCandidate.h:431
math::XYZPointF positionAtECALEntrance_
position at ECAL entrance, from the PFRecTrack
Definition: PFCandidate.h:492
float mva_nothing_gamma_
mva for gamma detection
Definition: PFCandidate.h:483
float ps2Energy_
corrected PS2 energy
Definition: PFCandidate.h:460
Elements elementsStorage_
Definition: PFCandidate.h:427
std::vector< const void * > refsCollectionCache_
Definition: PFCandidate.h:506
PFCandidate::~PFCandidate ( )
virtual

destructor

Definition at line 202 of file PFCandidate.cc.

References elementsInBlocks_.

202  {
203  delete elementsInBlocks_.load(std::memory_order_acquire);
204 }
std::atomic< ElementsInBlocks * > elementsInBlocks_
Definition: PFCandidate.h:422

Member Function Documentation

void PFCandidate::addElementInBlock ( const reco::PFBlockRef blockref,
unsigned  elementIndex 
)

add an element to the current PFCandidate

add element in block

Definition at line 211 of file PFCandidate.cc.

References blocksStorage_, elementsInBlocks_, elementsStorage_, edm::Ref< C, T, F >::id(), edm::RefVector< C, T, F >::push_back(), and edm::RefVector< C, T, F >::size().

Referenced by PFEGammaAlgo::fillPFCandidates(), PFPhotonAlgo::RunPFPhoton(), and PFElectronAlgo::SetCandidates().

212  {
213  //elementsInBlocks_.push_back( make_pair(blockref.key(), elementIndex) );
214  if (blocksStorage_.size()==0)
215  blocksStorage_ =Blocks(blockref.id());
216  blocksStorage_.push_back(blockref);
217  elementsStorage_.push_back(elementIndex);
218  auto ptr = elementsInBlocks_.exchange(nullptr);
219  delete ptr;
220 }
edm::RefVector< reco::PFBlockCollection > Blocks
Definition: PFCandidate.h:383
ProductID id() const
Accessor for product ID.
Definition: Ref.h:256
std::atomic< ElementsInBlocks * > elementsInBlocks_
Definition: PFCandidate.h:422
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:64
size_type size() const
Size of the RefVector.
Definition: RefVector.h:89
Elements elementsStorage_
Definition: PFCandidate.h:427
const reco::Muon::MuonTrackType reco::PFCandidate::bestMuonTrackType ( ) const
inline

get the Best Muon Track Ref

Definition at line 357 of file PFCandidate.h.

References muonTrackType_.

357  {
358  return muonTrackType_;
359  }
reco::Muon::MuonTrackType muonTrackType_
Definition: PFCandidate.h:436
virtual const reco::Track* reco::PFCandidate::bestTrack ( ) const
inlinevirtual

return a pointer to the best track, if available. otherwise, return a null pointer

Reimplemented from reco::Candidate.

Definition at line 160 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().

160  {
161  if ( (abs(pdgId()) == 11 || pdgId() == 22) && gsfTrackRef().isNonnull() && gsfTrackRef().isAvailable() )
162  return &(*gsfTrackRef());
163  else if ( trackRef().isNonnull() && trackRef().isAvailable() )
164  return &(*trackRef());
165  else
166  return nullptr;
167  }
bool isAvailable() const
Definition: Ref.h:276
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:250
virtual int pdgId() const GCC11_FINAL
PDG identifier.
reco::TrackRef trackRef() const
Definition: PFCandidate.cc:433
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
reco::GsfTrackRef gsfTrackRef() const
Definition: PFCandidate.cc:471
PFCandidate * PFCandidate::clone ( void  ) const
virtual

return a clone

Reimplemented from reco::CompositeCandidate.

Reimplemented in pat::PFParticle, reco::IsolatedPFCandidate, and reco::PileUpPFCandidate.

Definition at line 206 of file PFCandidate.cc.

References PFCandidate().

Referenced by DistortedPFCandProducer::produce().

206  {
207  return new PFCandidate( * this );
208 }
PFCandidate()
default constructor
Definition: PFCandidate.cc:31
reco::ConversionRef PFCandidate::conversionRef ( ) const

return a reference to the original conversion

Definition at line 554 of file PFCandidate.cc.

References GETREF, kRefConversionBit, and kRefConversionMask.

554  {
556 }
#define GETREF(_class_, _mask_, _bit_)
Definition: CountBits.h:4660
double reco::PFCandidate::deltaP ( ) const
inline

uncertainty on 3-momentum

Definition at line 292 of file PFCandidate.h.

References deltaP_.

Referenced by PFElectronTranslator::createGsfElectrons().

292 { return deltaP_;}
float deltaP_
uncertainty on 3-momentum
Definition: PFCandidate.h:466
reco::PFDisplacedVertexRef PFCandidate::displacedVertexRef ( Flags  type) const

return a reference to the corresponding displaced vertex, otherwise, return a null reference

Definition at line 519 of file PFCandidate.cc.

References GETREF, kRefDisplacedVertexDauBit, kRefDisplacedVertexDauMask, kRefDisplacedVertexMotBit, kRefDisplacedVertexMotMask, T_FROM_DISP, and T_TO_DISP.

Referenced by PFCandConnector::analyseNuclearWPrim(), PFCandConnector::isPrimaryNucl(), and PFCandConnector::isSecondaryNucl().

519  {
520  if (type == T_TO_DISP) {
522  }
523  else if (type == T_FROM_DISP) {
525  }
527 }
type
Definition: HCALResponse.h:21
Block of elements.
edm::Ref< PFDisplacedVertexCollection > PFDisplacedVertexRef
persistent reference to a PFDisplacedVertex objects
#define GETREF(_class_, _mask_, _bit_)
Definition: CountBits.h:4660
double reco::PFCandidate::ecalEnergy ( ) const
inline

return corrected Ecal energy

Definition at line 216 of file PFCandidate.h.

References ecalERatio_, and rawEcalEnergy_.

Referenced by PFCandConnector::analyseNuclearWPrim(), and PFCandidateBenchmark::fillOne().

216 { return ecalERatio_*rawEcalEnergy_;}
float ecalERatio_
corrected ECAL energy ratio (corrected/raw)
Definition: PFCandidate.h:439
float rawEcalEnergy_
raw ECAL energy
Definition: PFCandidate.h:448
reco::PFCandidateEGammaExtraRef PFCandidate::egammaExtraRef ( ) const
reco::PFCandidateElectronExtraRef PFCandidate::electronExtraRef ( ) const
const PFCandidate::ElementsInBlocks & PFCandidate::elementsInBlocks ( ) const

Definition at line 679 of file PFCandidate.cc.

References blocksStorage_, elementsInBlocks_, elementsStorage_, edm::RefVector< C, T, F >::size(), and groupFilesInBlocks::temp.

Referenced by FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), PFMuonAlgo::cleanPunchThroughAndFakes(), PFElectronTranslator::correspondingDaughterCandidate(), PFPhotonTranslator::correspondingDaughterCandidate(), PFPhotonAlgo::EvaluateGCorrMVA(), PFPhotonAlgo::EvaluateResMVA(), PFCandidateBenchmark::fillOne(), reco::modules::HICaloCompatibleTrackSelector::matchPFCandToTrack(), PFCandidateChecker::printElementsInBlocks(), PFAlgo::processBlock(), PFElectronTranslator::produce(), and PFPhotonTranslator::produce().

679  {
680 
681  if (nullptr == elementsInBlocks_.load(std::memory_order_acquire))
682  {
683  std::unique_ptr<ElementsInBlocks> temp( new ElementsInBlocks(blocksStorage_.size()));
684  for(unsigned int icopy=0;icopy!=blocksStorage_.size();++icopy)
685  (*temp)[icopy]=std::make_pair(blocksStorage_[icopy],elementsStorage_[icopy]);
686  ElementsInBlocks* expected=nullptr;
687  if(elementsInBlocks_.compare_exchange_strong(expected,temp.get(),std::memory_order_acq_rel)) {
688  temp.release();
689  }
690  }
691  return *(elementsInBlocks_.load(std::memory_order_acquire));
692 }
std::vector< ElementInBlock > ElementsInBlocks
Definition: PFCandidate.h:381
std::vector< ElementInBlock > ElementsInBlocks
std::atomic< ElementsInBlocks * > elementsInBlocks_
Definition: PFCandidate.h:422
size_type size() const
Size of the RefVector.
Definition: RefVector.h:89
Elements elementsStorage_
Definition: PFCandidate.h:427
bool PFCandidate::flag ( Flags  theFlag) const

return a given flag

Definition at line 295 of file PFCandidate.cc.

References flags_.

Referenced by PFCandConnector::isPrimaryNucl(), PFCandConnector::isSecondaryNucl(), setConversionRef(), and setDisplacedVertexRef().

295  {
296 
297  return (flags_>>theFlag) & 1;
298 }
unsigned flags_
all flags, packed (ecal regional, hcal regional, tracking)
Definition: PFCandidate.h:463
bool reco::PFCandidate::flag ( unsigned  shift,
unsigned  flag 
) const
private
bool PFCandidate::getRefInfo ( unsigned int  iMask,
unsigned int  iBit,
edm::ProductID oProdID,
size_t &  oIndex,
size_t &  aIndex 
) const
private

Definition at line 401 of file PFCandidate.cc.

References refsInfo_, s_refsBefore, and storedRefsBitPattern_.

402  {
403 
404  if( 0 == (iBit & storedRefsBitPattern_) ) {
405  return false;
406  }
407  aIndex = s_refsBefore[storedRefsBitPattern_ & iMask];
408  unsigned long long bitPacked = refsInfo_[aIndex];
409  oIndex = bitPacked & 0xFFFFFFFFULL; //low 32 bits are the index
410  unsigned short productIndex = (bitPacked & 0x0000FFFF00000000ULL)>>32;
411  unsigned short processIndex = (bitPacked & 0xFFFF000000000000ULL)>>48;
412  oProductID = edm::ProductID(processIndex,productIndex);
413  return true;
414 }
std::vector< unsigned long long > refsInfo_
Definition: PFCandidate.h:505
unsigned short storedRefsBitPattern_
Definition: PFCandidate.h:504
static const unsigned int s_refsBefore[]
Definition: CountBits.h:14
reco::GsfElectronRef PFCandidate::gsfElectronRef ( ) const

return a reference to the corresponding GsfElectron if any

Definition at line 574 of file PFCandidate.cc.

References GETREF, kRefGsfElectronBit, and kRefGsfElectronMask.

Referenced by SoftPFElectronTagInfoProducer::fillElecProperties(), and SelectionStep< Object >::select().

reco::GsfTrackRef PFCandidate::gsfTrackRef ( ) const
double reco::PFCandidate::hcalEnergy ( ) const
inline

return corrected Hcal energy

Definition at line 226 of file PFCandidate.h.

References hcalERatio_, and rawHcalEnergy_.

Referenced by PFCandConnector::analyseNuclearWPrim(), and PFCandidateBenchmark::fillOne().

226 { return hcalERatio_*rawHcalEnergy_;}
float hcalERatio_
corrected HCAL energy ratio (corrected/raw)
Definition: PFCandidate.h:442
float rawHcalEnergy_
raw HCAL energy
Definition: PFCandidate.h:451
double reco::PFCandidate::hoEnergy ( ) const
inline

return corrected Hcal energy

Definition at line 236 of file PFCandidate.h.

References hoERatio_, and rawHoEnergy_.

236 { return hoERatio_*rawHoEnergy_;}
float hoERatio_
corrected HO energy ratio (corrected/raw)
Definition: PFCandidate.h:445
float rawHoEnergy_
raw HO energy
Definition: PFCandidate.h:454
reco::MuonRef PFCandidate::muonRef ( ) const
float reco::PFCandidate::mva_e_mu ( ) const
inline

mva for electron-muon discrimination

Definition at line 314 of file PFCandidate.h.

References mva_e_mu_.

314 { return mva_e_mu_;}
float mva_e_mu_
mva for electron-muon discrimination
Definition: PFCandidate.h:477
float reco::PFCandidate::mva_e_pi ( ) const
inline

mva for electron-pion discrimination

Definition at line 308 of file PFCandidate.h.

References mva_e_pi_.

Referenced by PFElectronTranslator::createGsfElectrons(), PFElectronTranslator::fillMVAValueMap(), PFCandidateBenchmark::fillOne(), PFAlgo::processBlock(), and PFElectronTranslator::produce().

308 { return mva_e_pi_;}
float mva_e_pi_
mva for electron-pion discrimination
Definition: PFCandidate.h:474
float reco::PFCandidate::mva_gamma_nh ( ) const
inline

mva for neutral hadron - gamma discrimination

Definition at line 340 of file PFCandidate.h.

References mva_gamma_nh_.

340 { return mva_gamma_nh_;}
float mva_gamma_nh_
mva for neutral hadron - gamma discrimination
Definition: PFCandidate.h:489
float reco::PFCandidate::mva_Isolated ( ) const
inline

Definition at line 304 of file PFCandidate.h.

References mva_Isolated_.

304 { return mva_Isolated_;}
float reco::PFCandidate::mva_nothing_gamma ( ) const
inline

mva for gamma detection

Definition at line 327 of file PFCandidate.h.

References mva_nothing_gamma_.

Referenced by PFPhotonIsolationCalculator::isPhotonParticleVetoed(), PFIsolationEstimator::isPhotonParticleVetoed(), PFLinker::produce(), and PFPhotonTranslator::produce().

327 { return mva_nothing_gamma_;}
float mva_nothing_gamma_
mva for gamma detection
Definition: PFCandidate.h:483
float reco::PFCandidate::mva_nothing_nh ( ) const
inline

mva for neutral hadron detection

Definition at line 333 of file PFCandidate.h.

References mva_nothing_nh_.

333 { return mva_nothing_nh_;}
float mva_nothing_nh_
mva for neutral hadron detection
Definition: PFCandidate.h:486
float reco::PFCandidate::mva_pi_mu ( ) const
inline

mva for pi-muon discrimination

Definition at line 320 of file PFCandidate.h.

References mva_pi_mu_.

320 { return mva_pi_mu_;}
float mva_pi_mu_
mva for pi-muon discrimination
Definition: PFCandidate.h:480
size_t reco::PFCandidate::numberOfSourceCandidatePtrs ( ) const
inlinevirtual

return the number of source Candidates ( the candidates used to construct this Candidate)

Reimplemented from reco::LeafCandidate.

Definition at line 126 of file PFCandidate.h.

126  {
127  return 1;
128  }
PFCandidate & PFCandidate::operator= ( PFCandidate const &  iOther)

Definition at line 163 of file PFCandidate.cc.

References blocksStorage_, deltaP_, ecalERatio_, elementsInBlocks_, elementsStorage_, flags_, getter_, hcalERatio_, hoERatio_, muonTrackType_, mva_e_mu_, mva_e_pi_, mva_gamma_nh_, mva_Isolated_, mva_nothing_gamma_, mva_nothing_nh_, mva_pi_mu_, positionAtECALEntrance_, ps1Energy_, ps2Energy_, rawEcalEnergy_, rawHcalEnergy_, rawHoEnergy_, refsCollectionCache_, refsInfo_, sourcePtr_, storedRefsBitPattern_, tmp, and vertexType_.

163  {
164  CompositeCandidate::operator=(iOther);
165  auto tmp = iOther.elementsInBlocks_.load(std::memory_order_acquire);
166  if(nullptr != tmp) {
167  delete elementsInBlocks_.exchange( new ElementsInBlocks{*tmp}, std::memory_order_acq_rel);
168  } else {
169  delete elementsInBlocks_.exchange(nullptr, std::memory_order_acq_rel);
170  }
171  blocksStorage_=iOther.blocksStorage_;
172  elementsStorage_=iOther.elementsStorage_;
173  sourcePtr_=iOther.sourcePtr_;
174  muonTrackType_=iOther.muonTrackType_;
175  ecalERatio_=iOther.ecalERatio_;
176  hcalERatio_=iOther.hcalERatio_;
177  hoERatio_=iOther.hoERatio_;
178  rawEcalEnergy_=iOther.rawEcalEnergy_;
179  rawHcalEnergy_=iOther.rawHcalEnergy_;
180  rawHoEnergy_=iOther.rawHoEnergy_;
181  ps1Energy_=iOther.ps1Energy_;
182  ps2Energy_=iOther.ps2Energy_;
183  flags_=iOther.flags_;
184  deltaP_=iOther.deltaP_;
185  vertexType_=iOther.vertexType_;
186  mva_Isolated_=iOther.mva_Isolated_;
187  mva_e_pi_=iOther.mva_e_pi_;
188  mva_e_mu_=iOther.mva_e_mu_;
189  mva_pi_mu_=iOther.mva_pi_mu_;
190  mva_nothing_gamma_=iOther.mva_nothing_gamma_;
191  mva_nothing_nh_=iOther.mva_nothing_nh_;
192  mva_gamma_nh_=iOther.mva_gamma_nh_;
193  positionAtECALEntrance_=iOther.positionAtECALEntrance_;
194  getter_=iOther.getter_;
195  storedRefsBitPattern_=iOther.storedRefsBitPattern_;
196  refsInfo_=iOther.refsInfo_;
197  refsCollectionCache_=iOther.refsCollectionCache_;
198 
199  return *this;
200 }
float deltaP_
uncertainty on 3-momentum
Definition: PFCandidate.h:466
reco::Muon::MuonTrackType muonTrackType_
Definition: PFCandidate.h:436
const edm::EDProductGetter * getter_
Definition: PFCandidate.h:503
float hcalERatio_
corrected HCAL energy ratio (corrected/raw)
Definition: PFCandidate.h:442
float rawHcalEnergy_
raw HCAL energy
Definition: PFCandidate.h:451
unsigned flags_
all flags, packed (ecal regional, hcal regional, tracking)
Definition: PFCandidate.h:463
float mva_e_mu_
mva for electron-muon discrimination
Definition: PFCandidate.h:477
float mva_nothing_nh_
mva for neutral hadron detection
Definition: PFCandidate.h:486
float hoERatio_
corrected HO energy ratio (corrected/raw)
Definition: PFCandidate.h:445
float mva_gamma_nh_
mva for neutral hadron - gamma discrimination
Definition: PFCandidate.h:489
float ecalERatio_
corrected ECAL energy ratio (corrected/raw)
Definition: PFCandidate.h:439
float mva_pi_mu_
mva for pi-muon discrimination
Definition: PFCandidate.h:480
float rawEcalEnergy_
raw ECAL energy
Definition: PFCandidate.h:448
float mva_e_pi_
mva for electron-pion discrimination
Definition: PFCandidate.h:474
std::vector< unsigned long long > refsInfo_
Definition: PFCandidate.h:505
float ps1Energy_
corrected PS1 energy
Definition: PFCandidate.h:457
unsigned short storedRefsBitPattern_
Definition: PFCandidate.h:504
float rawHoEnergy_
raw HO energy
Definition: PFCandidate.h:454
std::vector< ElementInBlock > ElementsInBlocks
std::atomic< ElementsInBlocks * > elementsInBlocks_
Definition: PFCandidate.h:422
PFVertexType vertexType_
Definition: PFCandidate.h:468
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
PFCandidatePtr sourcePtr_
reference to the source PFCandidate, if any
Definition: PFCandidate.h:431
math::XYZPointF positionAtECALEntrance_
position at ECAL entrance, from the PFRecTrack
Definition: PFCandidate.h:492
float mva_nothing_gamma_
mva for gamma detection
Definition: PFCandidate.h:483
float ps2Energy_
corrected PS2 energy
Definition: PFCandidate.h:460
Elements elementsStorage_
Definition: PFCandidate.h:427
std::vector< const void * > refsCollectionCache_
Definition: PFCandidate.h:506
bool PFCandidate::overlap ( const Candidate other) const
privatevirtual

Polymorphic overlap.

Reimplemented from reco::CompositeCandidate.

Definition at line 261 of file PFCandidate.cc.

References i, edm::Ptr< T >::isNonnull(), edm::Ptr< T >::isNull(), n, reco::Candidate::numberOfSourceCandidatePtrs(), sourceCandidatePtr(), reco::Candidate::sourceCandidatePtr(), and sourcePtr_.

261  {
262  CandidatePtr myPtr = sourceCandidatePtr(0);
263  if (myPtr.isNull()) return false;
264  for (size_t i = 0, n = other.numberOfSourceCandidatePtrs(); i < n; ++i) {
265  CandidatePtr otherPtr = other.sourceCandidatePtr(i);
266  if ((otherPtr == myPtr) ||
267  (sourcePtr_.isNonnull() && otherPtr.isNonnull() && sourcePtr_->overlap(*otherPtr))) {
268  return true;
269  }
270  }
271  return false;
272 }
int i
Definition: DBlmapReader.cc:9
virtual CandidatePtr sourceCandidatePtr(size_type i) const
Definition: Candidate.h:172
CandidatePtr sourceCandidatePtr(size_type i) const
Definition: PFCandidate.h:130
bool isNull() const
Checks for null.
Definition: Ptr.h:148
bool isNonnull() const
Checks for non-null.
Definition: Ptr.h:152
PFCandidatePtr sourcePtr_
reference to the source PFCandidate, if any
Definition: PFCandidate.h:431
virtual size_t numberOfSourceCandidatePtrs() const =0
virtual ParticleType reco::PFCandidate::particleId ( ) const
inlinevirtual

particle identification code

Definition at line 368 of file PFCandidate.h.

References reco::LeafCandidate::pdgId_, and translatePdgIdToType().

Referenced by PFTester::analyze(), PFMuonAlgo::cleanPunchThroughAndFakes(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::color(), metsig::SignAlgoResolutions::evalPF(), PFElectronTranslator::fillMVAValueMap(), PFCandidateBenchmark::fillOne(), GreedyMuonPFCandidateFilter::filter(), InconsistentMuonPFCandidateFilter::filter(), LeptonRecoSkim::filter(), reco::tau::RecoTauQualityCuts::filterCandByType(), reco::tau::RecoTauIsolationMasking::inCone(), 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::tau::qcuts::mapAndCutByType(), reco::modules::HICaloCompatibleTrackSelector::matchPFCandToTrack(), reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), PFAlgo::postCleaning(), PFPileUpAlgo::process(), MuonWithPFIsoProducerCopy::produce(), MuonWithPFIsoProducer::produce(), DistortedPFCandProducer::produce(), PFElectronTranslator::produce(), EgammaHLTPFChargedIsolationProducer::produce(), EgammaHLTPFNeutralIsolationProducer::produce(), Type0PFMETcorrInputProducer::produce(), pf2pat::PFMETAlgo::produce(), PFLinker::produce(), PFPhotonTranslator::produce(), reco::tau::RecoTauIsolationMasking::resolution(), pf2pat::PFIsoDepositAlgo::sameParticle(), setConversionRef(), setDisplacedVertexRef(), setPhotonRef(), setSuperClusterRef(), and setTrackRef().

368 { return translatePdgIdToType(pdgId_);}
int pdgId_
PDG identifier.
ParticleType translatePdgIdToType(int pdgid) const
Definition: PFCandidate.cc:224
reco::PFCandidatePhotonExtraRef PFCandidate::photonExtraRef ( ) const

return a reference to the photon extra

Definition at line 592 of file PFCandidate.cc.

References GETREF, kRefPFPhotonExtraBit, and kRefPFPhotonExtraMask.

Referenced by PFPhotonTranslator::produce().

reco::PhotonRef PFCandidate::photonRef ( ) const

return a reference to the corresponding Photon if any

Definition at line 588 of file PFCandidate.cc.

References GETREF, kRefPhotonBit, and kRefPhotonMask.

588  {
590 }
#define GETREF(_class_, _mask_, _bit_)
Definition: CountBits.h:4660
const math::XYZPointF& reco::PFCandidate::positionAtECALEntrance ( ) const
inline
Returns
position at ECAL entrance

Definition at line 362 of file PFCandidate.h.

References positionAtECALEntrance_.

Referenced by PFCandIsolatorFromDeposits::SingleDeposit::compute(), PFIsolationEstimator::fGetIsolationInRings(), and reco::tau::RecoTauIsolationMasking::inCone().

362  {
364  }
math::XYZPointF positionAtECALEntrance_
position at ECAL entrance, from the PFRecTrack
Definition: PFCandidate.h:492
double reco::PFCandidate::pS1Energy ( ) const
inline

return corrected PS1 energy

Definition at line 271 of file PFCandidate.h.

References ps1Energy_.

271 { return ps1Energy_;}
float ps1Energy_
corrected PS1 energy
Definition: PFCandidate.h:457
double reco::PFCandidate::pS2Energy ( ) const
inline

return corrected PS2 energy

Definition at line 277 of file PFCandidate.h.

References ps2Energy_.

277 { return ps2Energy_;}
float ps2Energy_
corrected PS2 energy
Definition: PFCandidate.h:460
double reco::PFCandidate::rawEcalEnergy ( ) const
inline

return corrected Ecal energy

Definition at line 219 of file PFCandidate.h.

References rawEcalEnergy_.

Referenced by PFMuonAlgo::cleanPunchThroughAndFakes(), PFElectronTranslator::createBasicCluster(), and GreedyMuonPFCandidateFilter::filter().

219 { return rawEcalEnergy_;}
float rawEcalEnergy_
raw ECAL energy
Definition: PFCandidate.h:448
double reco::PFCandidate::rawHcalEnergy ( ) const
inline

return raw Hcal energy

Definition at line 229 of file PFCandidate.h.

References rawHcalEnergy_.

Referenced by PFMuonAlgo::cleanPunchThroughAndFakes(), and GreedyMuonPFCandidateFilter::filter().

229 { return rawHcalEnergy_;}
float rawHcalEnergy_
raw HCAL energy
Definition: PFCandidate.h:451
double reco::PFCandidate::rawHoEnergy ( ) const
inline

return raw Hcal energy

Definition at line 239 of file PFCandidate.h.

References rawHoEnergy_.

239 { return rawHoEnergy_;}
float rawHoEnergy_
raw HO energy
Definition: PFCandidate.h:454
void PFCandidate::rescaleMomentum ( double  rescaleFactor)

particle momentum *= rescaleFactor

Definition at line 278 of file PFCandidate.cc.

References reco::LeafCandidate::p4(), and reco::LeafCandidate::setP4().

278  {
279  LorentzVector rescaledp4 = p4();
280  rescaledp4 *= rescaleFactor;
281  setP4( rescaledp4 );
282 }
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< float > > LorentzVector
Definition: analysisEnums.h:9
virtual void setP4(const LorentzVector &p4) GCC11_FINAL
set 4-momentum
void reco::PFCandidate::set_mva_e_mu ( float  mva)
inline

set mva for electron-muon discrimination

Definition at line 311 of file PFCandidate.h.

References mva_e_mu_.

311 { mva_e_mu_=mva;}
float mva_e_mu_
mva for electron-muon discrimination
Definition: PFCandidate.h:477
void reco::PFCandidate::set_mva_e_pi ( float  mvaNI)
inline

Definition at line 306 of file PFCandidate.h.

References mva_e_pi_.

Referenced by PFEGammaAlgo::fillPFCandidates(), PFAlgo::processBlock(), and PFElectronAlgo::SetCandidates().

306 { mva_e_pi_=mvaNI;}
float mva_e_pi_
mva for electron-pion discrimination
Definition: PFCandidate.h:474
void reco::PFCandidate::set_mva_gamma_nh ( float  mva)
inline

set mva for neutral hadron - gamma discrimination

Definition at line 337 of file PFCandidate.h.

References mva_gamma_nh_.

337 { mva_gamma_nh_=mva;}
float mva_gamma_nh_
mva for neutral hadron - gamma discrimination
Definition: PFCandidate.h:489
void reco::PFCandidate::set_mva_Isolated ( float  mvaI)
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 302 of file PFCandidate.h.

References mva_Isolated_.

Referenced by PFAlgo::processBlock().

302 { mva_Isolated_=mvaI;}
void reco::PFCandidate::set_mva_nothing_gamma ( float  mva)
inline

set mva for gamma detection

Definition at line 324 of file PFCandidate.h.

References mva_nothing_gamma_.

Referenced by PFAlgo::processBlock(), and PFPhotonAlgo::RunPFPhoton().

324 { mva_nothing_gamma_=mva;}
float mva_nothing_gamma_
mva for gamma detection
Definition: PFCandidate.h:483
void reco::PFCandidate::set_mva_nothing_nh ( float  mva)
inline

set mva for neutral hadron detection

Definition at line 330 of file PFCandidate.h.

References mva_nothing_nh_.

330 { mva_nothing_nh_=mva;}
float mva_nothing_nh_
mva for neutral hadron detection
Definition: PFCandidate.h:486
void reco::PFCandidate::set_mva_pi_mu ( float  mva)
inline

set mva for pi-muon discrimination

Definition at line 317 of file PFCandidate.h.

References mva_pi_mu_.

317 { mva_pi_mu_=mva;}
float mva_pi_mu_
mva for pi-muon discrimination
Definition: PFCandidate.h:480
void PFCandidate::setConversionRef ( const reco::ConversionRef ref)

set ref to original reco conversion

Definition at line 530 of file PFCandidate.cc.

References edm::hlt::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().

530  {
531  if( particleId() != gamma ) {
532  string err;
533  err += "PFCandidate::setConversionRef: this is not a (converted) photon ! particleId_=";
534  char num[4];
535  sprintf( num, "%d", particleId());
536  err += num;
537 
538  throw cms::Exception("InconsistentReference",
539  err.c_str() );
540  }
541  else if( !flag( GAMMA_TO_GAMMACONV ) ) {
542  string err;
543  err += "PFCandidate::setConversionRef: particule flag is not GAMMA_TO_GAMMACONV";
544 
545  throw cms::Exception("InconsistentReference",
546  err.c_str() );
547  }
548 
550  iRef.refCore(), iRef.key(),iRef.productGetter());
551 }
bool flag(Flags theFlag) const
return a given flag
Definition: PFCandidate.cc:295
virtual ParticleType particleId() const
Definition: PFCandidate.h:368
void storeRefInfo(unsigned int iMask, unsigned int iBit, bool iIsValid, const edm::RefCore &iCore, size_t iKey, const edm::EDProductGetter *)
Definition: PFCandidate.cc:361
void reco::PFCandidate::setDeltaP ( double  dp)
inline

set uncertainty on momentum

Definition at line 289 of file PFCandidate.h.

References deltaP_, and reco::dp.

289 {deltaP_ = dp;}
float deltaP_
uncertainty on 3-momentum
Definition: PFCandidate.h:466
auto dp
Definition: deltaR.h:24
void PFCandidate::setDisplacedVertexRef ( const reco::PFDisplacedVertexRef ref,
Flags  flag 
)

set displaced vertex reference

Definition at line 475 of file PFCandidate.cc.

References edm::hlt::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.

475  {
476 
477  if( particleId() != h ) {
478  string err;
479  err += "PFCandidate::setDisplacedVertexRef: this is not a hadron! particleId_=";
480  char num[4];
481  sprintf( num, "%d", particleId());
482  err += num;
483 
484  throw cms::Exception("InconsistentReference",
485  err.c_str() );
486  }
487  else if( !flag( T_FROM_DISP ) && !flag( T_TO_DISP ) ) {
488  string err;
489  err += "PFCandidate::setDisplacedVertexRef: particule flag is neither T_FROM_DISP nor T_TO_DISP";
490 
491  throw cms::Exception("InconsistentReference",
492  err.c_str() );
493  }
494 
495 
496  if (type == T_TO_DISP && flag( T_TO_DISP ))
498  iRef.isNonnull(),
499  iRef.refCore(), iRef.key(),iRef.productGetter());
500  else if (type == T_FROM_DISP && flag( T_FROM_DISP ))
502  iRef.isNonnull(),
503  iRef.refCore(), iRef.key(),iRef.productGetter());
504  else if ( (type == T_FROM_DISP && !flag( T_FROM_DISP ))
505  ||
506  (type == T_TO_DISP && !flag( T_TO_DISP )) ){
507  string err;
508  err += "PFCandidate::setDisplacedVertexRef: particule flag is not switched on";
509 
510  throw cms::Exception("InconsistentReference",
511  err.c_str() );
512  }
513 
514 }
type
Definition: HCALResponse.h:21
bool flag(Flags theFlag) const
return a given flag
Definition: PFCandidate.cc:295
virtual ParticleType particleId() const
Definition: PFCandidate.h:368
void storeRefInfo(unsigned int iMask, unsigned int iBit, bool iIsValid, const edm::RefCore &iCore, size_t iKey, const edm::EDProductGetter *)
Definition: PFCandidate.cc:361
void reco::PFCandidate::setEcalEnergy ( float  eeRaw,
float  eeCorr 
)
inline

set corrected Ecal energy

Definition at line 212 of file PFCandidate.h.

References funct::abs(), ecalERatio_, and rawEcalEnergy_.

Referenced by PFEGammaAlgo::fillPFCandidates(), PFAlgo::processBlock(), PFPhotonAlgo::RunPFPhoton(), and PFElectronAlgo::SetCandidates().

212  {
213  rawEcalEnergy_ = eeRaw; ecalERatio_= std::abs(eeRaw)<1.e-6 ? 1.0 : eeCorr/eeRaw;}
float ecalERatio_
corrected ECAL energy ratio (corrected/raw)
Definition: PFCandidate.h:439
float rawEcalEnergy_
raw ECAL energy
Definition: PFCandidate.h:448
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
void PFCandidate::setFlag ( Flags  theFlag,
bool  value 
)

set a given flag

Definition at line 285 of file PFCandidate.cc.

References flags_.

Referenced by PFPhotonAlgo::RunPFPhoton().

285  {
286 
287  if(value)
288  flags_ = flags_ | (1<<theFlag);
289  else
290  flags_ = flags_ ^ (1<<theFlag);
291 }
unsigned flags_
all flags, packed (ecal regional, hcal regional, tracking)
Definition: PFCandidate.h:463
void reco::PFCandidate::setFlag ( unsigned  shift,
unsigned  flag,
bool  value 
)
private
void PFCandidate::setGsfElectronRef ( const reco::GsfElectronRef ref)

set GsfElectronRef

Definition at line 569 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().

569  {
571  iRef.refCore(), iRef.key(),iRef.productGetter());
572 }
void storeRefInfo(unsigned int iMask, unsigned int iBit, bool iIsValid, const edm::RefCore &iCore, size_t iKey, const edm::EDProductGetter *)
Definition: PFCandidate.cc:361
void PFCandidate::setGsfTrackRef ( const reco::GsfTrackRef ref)

set gsftrack reference

Definition at line 454 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 PFEGammaAlgo::fillPFCandidates(), and PFElectronAlgo::SetCandidates().

454  {
455 // Removed by F. Beaudette. Would like to be able to save the GsfTrackRef even for charged pions
456 // if( particleId() != e ) {
457 // string err;
458 // err += "PFCandidate::setGsfTrackRef: this is not an electron ! particleId_=";
459 // char num[4];
460 // sprintf( num, "%d", particleId());
461 // err += num;
462 //
463 // throw cms::Exception("InconsistentReference",
464 // err.c_str() );
465 // }
466 
467  storeRefInfo(kRefGsfTrackMask, kRefGsfTrackBit, iRef.isNonnull(),
468  iRef.refCore(), iRef.key(),iRef.productGetter());
469 }
void storeRefInfo(unsigned int iMask, unsigned int iBit, bool iIsValid, const edm::RefCore &iCore, size_t iKey, const edm::EDProductGetter *)
Definition: PFCandidate.cc:361
void reco::PFCandidate::setHcalEnergy ( float  ehRaw,
float  ehCorr 
)
inline

set corrected Hcal energy

Definition at line 222 of file PFCandidate.h.

References funct::abs(), hcalERatio_, and rawHcalEnergy_.

Referenced by PFAlgo::processBlock(), PFPhotonAlgo::RunPFPhoton(), and PFElectronAlgo::SetCandidates().

222  {
223  rawHcalEnergy_ = ehRaw; hcalERatio_= std::abs(ehRaw)<1.e-6 ? 1.0 : ehCorr/ehRaw;}
float hcalERatio_
corrected HCAL energy ratio (corrected/raw)
Definition: PFCandidate.h:442
float rawHcalEnergy_
raw HCAL energy
Definition: PFCandidate.h:451
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
void reco::PFCandidate::setHoEnergy ( float  eoRaw,
float  eoCorr 
)
inline

set corrected Hcal energy

Definition at line 232 of file PFCandidate.h.

References funct::abs(), hoERatio_, and rawHoEnergy_.

Referenced by PFAlgo::processBlock().

232  {
233  rawHoEnergy_ = eoRaw; hoERatio_= std::abs(eoRaw)<1.e-6 ? 1.0 : eoCorr/eoRaw;}
float hoERatio_
corrected HO energy ratio (corrected/raw)
Definition: PFCandidate.h:445
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
float rawHoEnergy_
raw HO energy
Definition: PFCandidate.h:454
void PFCandidate::setMuonRef ( const reco::MuonRef ref)

set muon reference

Definition at line 436 of file PFCandidate.cc.

References edm::hlt::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 PFLinker::produce(), and PFMuonAlgo::reconstructMuon().

436  {
437 
438  if( trackRef() != iRef->track() ) {
439  string err;
440  err += "PFCandidate::setMuonRef: inconsistent track references!";
441 
442  throw cms::Exception("InconsistentReference",
443  err.c_str() );
444  }
445 
446  storeRefInfo(kRefMuonMask, kRefMuonBit, iRef.isNonnull(),
447  iRef.refCore(), iRef.key(),iRef.productGetter());
448 }
reco::TrackRef trackRef() const
Definition: PFCandidate.cc:433
void storeRefInfo(unsigned int iMask, unsigned int iBit, bool iIsValid, const edm::RefCore &iCore, size_t iKey, const edm::EDProductGetter *)
Definition: PFCandidate.cc:361
void reco::PFCandidate::setMuonTrackType ( const reco::Muon::MuonTrackType type)
inline

set the Best Muon Track Ref

Definition at line 351 of file PFCandidate.h.

References muonTrackType_.

Referenced by PFMuonAlgo::changeTrack().

351  {
353  }
type
Definition: HCALResponse.h:21
reco::Muon::MuonTrackType muonTrackType_
Definition: PFCandidate.h:436
void PFCandidate::setParticleType ( ParticleType  type)

set Particle Type

Definition at line 256 of file PFCandidate.cc.

References reco::LeafCandidate::setPdgId(), and translateTypeToPdgId().

Referenced by PFMuonAlgo::changeTrack(), PFAlgo::processBlock(), and DeltaBetaWeights::produce().

256  {
258 }
type
Definition: HCALResponse.h:21
int translateTypeToPdgId(ParticleType type) const
Definition: PFCandidate.cc:238
virtual void setPdgId(int pdgId) GCC11_FINAL
void PFCandidate::setPFEGammaExtraRef ( const reco::PFCandidateEGammaExtraRef ref)

set the PF EGamma Extra Ref

Definition at line 641 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().

641  {
642  //std::cout << " before storeRefInfo " << kRefPFEGammaExtraMask << " " << kRefPFEGammaExtraBit << " " << iRef.isNonnull() << " " << iRef.key() << " " << std::endl;
644  iRef.refCore(), iRef.key(),iRef.productGetter());
645 }
void storeRefInfo(unsigned int iMask, unsigned int iBit, bool iIsValid, const edm::RefCore &iCore, size_t iKey, const edm::EDProductGetter *)
Definition: PFCandidate.cc:361
void PFCandidate::setPFElectronExtraRef ( const reco::PFCandidateElectronExtraRef ref)

set the PF Electron Extra Ref

Definition at line 579 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().

579  {
581  iRef.refCore(), iRef.key(),iRef.productGetter());
582 }
void storeRefInfo(unsigned int iMask, unsigned int iBit, bool iIsValid, const edm::RefCore &iCore, size_t iKey, const edm::EDProductGetter *)
Definition: PFCandidate.cc:361
void PFCandidate::setPFPhotonExtraRef ( const reco::PFCandidatePhotonExtraRef ref)

set the PF Photon Extra Ref

Definition at line 636 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().

636  {
638  iRef.refCore(), iRef.key(),iRef.productGetter());
639 }
void storeRefInfo(unsigned int iMask, unsigned int iBit, bool iIsValid, const edm::RefCore &iCore, size_t iKey, const edm::EDProductGetter *)
Definition: PFCandidate.cc:361
void PFCandidate::setPhotonRef ( const reco::PhotonRef phRef)

set ref to the corresponding reco::Photon if any

Definition at line 604 of file PFCandidate.cc.

References e, edm::hlt::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().

604  {
605  if( particleId() != gamma && particleId() != e) {
606  string err;
607  err += "PFCandidate::setSuperClusterRef: this is not an electron neither a photon ! particleId_=";
608  char num[4];
609  sprintf( num, "%d", particleId());
610  err += num;
611 
612  throw cms::Exception("InconsistentReference", err.c_str() );
613  }
614 
615  storeRefInfo(kRefPhotonMask, kRefPhotonBit, iRef.isNonnull(),
616  iRef.refCore(), iRef.key(),iRef.productGetter());
617 
618 }
virtual ParticleType particleId() const
Definition: PFCandidate.h:368
void storeRefInfo(unsigned int iMask, unsigned int iBit, bool iIsValid, const edm::RefCore &iCore, size_t iKey, const edm::EDProductGetter *)
Definition: PFCandidate.cc:361
void reco::PFCandidate::setPositionAtECALEntrance ( const math::XYZPointF pos)
inline

set position at ECAL entrance

Definition at line 343 of file PFCandidate.h.

References positionAtECALEntrance_.

Referenced by PFEGammaAlgo::fillPFCandidates(), PFPhotonAlgo::RunPFPhoton(), and PFElectronAlgo::SetCandidates().

343  {
345  }
math::XYZPointF positionAtECALEntrance_
position at ECAL entrance, from the PFRecTrack
Definition: PFCandidate.h:492
void reco::PFCandidate::setPs1Energy ( float  e1)
inline

set corrected PS1 energy

Definition at line 268 of file PFCandidate.h.

References reco::e1, and ps1Energy_.

Referenced by PFPhotonAlgo::RunPFPhoton(), and PFElectronAlgo::SetCandidates().

268 {ps1Energy_ = e1;}
float ps1Energy_
corrected PS1 energy
Definition: PFCandidate.h:457
Float e1
Definition: deltaR.h:22
void reco::PFCandidate::setPs2Energy ( float  e2)
inline

set corrected PS2 energy

Definition at line 274 of file PFCandidate.h.

References reco::e2, and ps2Energy_.

Referenced by PFPhotonAlgo::RunPFPhoton(), and PFElectronAlgo::SetCandidates().

274 {ps2Energy_ = e2;}
Float e2
Definition: deltaR.h:23
float ps2Energy_
corrected PS2 energy
Definition: PFCandidate.h:460
void reco::PFCandidate::setSourceCandidatePtr ( const PFCandidatePtr ptr)
inline

Definition at line 124 of file PFCandidate.h.

References sourcePtr_.

Referenced by reco::PFCandidateWithSrcPtrFactory::operator()(), and FFTJetPFPileupCleaner::produce().

124 { sourcePtr_ = ptr; }
PFCandidatePtr sourcePtr_
reference to the source PFCandidate, if any
Definition: PFCandidate.h:431
void PFCandidate::setSuperClusterRef ( const reco::SuperClusterRef scRef)

Definition at line 620 of file PFCandidate.cc.

References e, edm::hlt::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(), PFPhotonAlgo::RunPFPhoton(), and PFElectronAlgo::SetCandidates().

620  {
621  if( particleId() != gamma && particleId() != e) {
622  string err;
623  err += "PFCandidate::setSuperClusterRef: this is not an electron neither a photon ! particleId_=";
624  char num[4];
625  sprintf( num, "%d", particleId());
626  err += num;
627 
628  throw cms::Exception("InconsistentReference", err.c_str() );
629  }
630 
632  iRef.refCore(), iRef.key(),iRef.productGetter());
633 
634 }
virtual ParticleType particleId() const
Definition: PFCandidate.h:368
void storeRefInfo(unsigned int iMask, unsigned int iBit, bool iIsValid, const edm::RefCore &iCore, size_t iKey, const edm::EDProductGetter *)
Definition: PFCandidate.cc:361
void PFCandidate::setTrackRef ( const reco::TrackRef ref)

set track reference

Definition at line 416 of file PFCandidate.cc.

References reco::LeafCandidate::charge(), edm::hlt::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(), and PFElectronAlgo::SetCandidates().

416  {
417  if(!charge()) {
418  string err;
419  err += "PFCandidate::setTrackRef: this is a neutral candidate! ";
420  err += "particleId_=";
421  char num[4];
422  sprintf( num, "%d", particleId());
423  err += num;
424 
425  throw cms::Exception("InconsistentReference",
426  err.c_str() );
427  }
428 
429  storeRefInfo(kRefTrackMask, kRefTrackBit, iRef.isNonnull(),
430  iRef.refCore(), iRef.key(),iRef.productGetter());
431 }
virtual int charge() const GCC11_FINAL
electric charge
virtual ParticleType particleId() const
Definition: PFCandidate.h:368
void storeRefInfo(unsigned int iMask, unsigned int iBit, bool iIsValid, const edm::RefCore &iCore, size_t iKey, const edm::EDProductGetter *)
Definition: PFCandidate.cc:361
void PFCandidate::setV0Ref ( const reco::VertexCompositeCandidateRef ref)

set ref to original reco conversion

Definition at line 559 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().

559  {
560  storeRefInfo(kRefV0Mask, kRefV0Bit, iRef.isNonnull(),
561  iRef.refCore(), iRef.key(),iRef.productGetter());
562 }
void storeRefInfo(unsigned int iMask, unsigned int iBit, bool iIsValid, const edm::RefCore &iCore, size_t iKey, const edm::EDProductGetter *)
Definition: PFCandidate.cc:361
virtual void reco::PFCandidate::setVertex ( const math::XYZPoint vertex)
inlinevirtual

set vertex

Reimplemented from reco::LeafCandidate.

Definition at line 403 of file PFCandidate.h.

References kCandVertex, reco::LeafCandidate::p(), reco::LeafCandidate::vertex_, and vertexType_.

Referenced by PFAlgo::processBlock(), PFConcretePFCandidateProducer::produce(), and PFPhotonAlgo::RunPFPhoton().

403  {
405  }
virtual double p() const GCC11_FINAL
magnitude of momentum vector
Point vertex_
vertex position
PFVertexType vertexType_
Definition: PFCandidate.h:468
void reco::PFCandidate::setVertexSource ( PFVertexType  vt)
inline

Definition at line 401 of file PFCandidate.h.

References kCandVertex, reco::LeafCandidate::vertex_, and vertexType_.

Referenced by PFMuonAlgo::changeTrack(), and PFElectronAlgo::SetCandidates().

401 { vertexType_=vt; if (vertexType_!=kCandVertex) vertex_=Point(0.,0.,0.);}
Point vertex_
vertex position
PFVertexType vertexType_
Definition: PFCandidate.h:468
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:32
CandidatePtr reco::PFCandidate::sourceCandidatePtr ( size_type  i) const
inlinevirtual

return a Ptr to one of the source Candidates ( the candidates used to construct this Candidate)

Reimplemented from reco::LeafCandidate.

Definition at line 130 of file PFCandidate.h.

References sourcePtr_.

Referenced by overlap().

130  {
131  return sourcePtr_;
132  }
PFCandidatePtr sourcePtr_
reference to the source PFCandidate, if any
Definition: PFCandidate.h:431
void PFCandidate::storeRefInfo ( unsigned int  iMask,
unsigned int  iBit,
bool  iIsValid,
const edm::RefCore iCore,
size_t  iKey,
const edm::EDProductGetter iGetter 
)
private

Definition at line 361 of file PFCandidate.cc.

References bitPackRefInfo(), compareJSON::const, 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().

366  {
367 
368  size_t index = s_refsBefore[storedRefsBitPattern_ & iMask];
369  if ( 0 == getter_) {
370  getter_ = iGetter;
371  }
372 
373  if(iIsValid) {
374  if(0 == (storedRefsBitPattern_ & iBit) ) {
375  refsInfo_.insert(refsInfo_.begin()+index, bitPackRefInfo(iCore,iKey));
376  if (iGetter==0)
378  static_cast<void const*>(iCore.productPtr()));
379  else
381  } else {
382  assert(refsInfo_.size()>index);
383  *(refsInfo_.begin()+index)=bitPackRefInfo(iCore,iKey);
384  if (iGetter==0)
385  *(refsCollectionCache_.begin()+index)=static_cast<void const*>(iCore.productPtr());
386  else
387  *(refsCollectionCache_.begin()+index)=nullptr;
388 
389  }
390  storedRefsBitPattern_ |= iBit;
391  } else{
392  if( storedRefsBitPattern_ & iBit) {
393  refsInfo_.erase(refsInfo_.begin()+index);
395  storedRefsBitPattern_ ^= iBit;
396  }
397  }
398 
399 }
const edm::EDProductGetter * getter_
Definition: PFCandidate.h:503
std::vector< unsigned long long > refsInfo_
Definition: PFCandidate.h:505
static unsigned long long bitPackRefInfo(const edm::RefCore &iCore, size_t iIndex)
Definition: PFCandidate.cc:354
void const * productPtr() const
Definition: RefCore.h:32
unsigned short storedRefsBitPattern_
Definition: PFCandidate.h:504
unsigned int index
Definition: LeafCandidate.h:36
static const unsigned int s_refsBefore[]
Definition: CountBits.h:14
string const
Definition: compareJSON.py:14
std::vector< const void * > refsCollectionCache_
Definition: PFCandidate.h:506
reco::SuperClusterRef PFCandidate::superClusterRef ( ) const
reco::TrackRef PFCandidate::trackRef ( ) const
PFCandidate::ParticleType PFCandidate::translatePdgIdToType ( int  pdgid) const

Definition at line 224 of file PFCandidate.cc.

References funct::abs(), e, egamma_HF, gamma, h, h0, h_HF, mu, and X.

Referenced by particleId(), DeltaBetaWeights::produce(), and citk::PFIsolationSumProducer::produce().

224  {
225  switch (std::abs(pdgid)) {
226  case 211: return h;
227  case 11: return e;
228  case 13: return mu;
229  case 22: return gamma;
230  case 130: return h0;
231  case 1: return h_HF;
232  case 2: return egamma_HF;
233  case 0: return X;
234  default: return X;
235  }
236 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
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 238 of file PFCandidate.cc.

References reco::LeafCandidate::charge(), e, egamma_HF, gamma, h, h0, h_HF, mu, and X.

Referenced by PFCandidate(), and setParticleType().

238  {
239 
240  int thecharge = charge();
241 
242  switch( type ) {
243  case h: return thecharge*211; // pi+
244  case e: return thecharge*(-11);
245  case mu: return thecharge*(-13);
246  case gamma: return 22;
247  case h0: return 130; // K_L0
248  case h_HF: return 1; // dummy pdg code
249  case egamma_HF: return 2; // dummy pdg code
250  case X:
251  default: return 0;
252  }
253 }
type
Definition: HCALResponse.h:21
virtual int charge() const GCC11_FINAL
electric charge
reco::VertexCompositeCandidateRef PFCandidate::v0Ref ( ) const

return a reference to the original conversion

Definition at line 564 of file PFCandidate.cc.

References GETREF, kRefV0Bit, and kRefV0Mask.

const math::XYZPoint & PFCandidate::vertex ( ) const
virtual

vertex position (overwritten by PF...)

Reimplemented from reco::LeafCandidate.

Definition at line 647 of file PFCandidate.cc.

References gsfTrackRef(), kCandVertex, kComMuonVertex, kGSFVertex, kPickyMuonVertex, kSAMuonVertex, kTPFMSMuonVertex, kTrkMuonVertex, kTrkVertex, muonRef(), trackRef(), reco::LeafCandidate::vertex_, and vertexType_.

Referenced by FWPFCandidateWithHitsProxyBuilder::build(), FWPFCandidate3DProxyBuilder::build(), PFPileUpAlgo::chargedHadronVertex(), PFIsolationEstimator::chargedHadronVertex(), PFPhotonIsolationCalculator::chargedHadronVertex(), PFCandWithSuperClusterExtractor::depositFromObject(), FFTJetPFPileupCleaner::findSomeVertexWFakes(), PFConcretePFCandidateProducer::produce(), EgammaHLTPFNeutralIsolationProducer::produce(), pat::PATPackedCandidateProducer::produce(), vx(), vy(), and vz().

647  {
648  switch (vertexType_) {
649  case kCandVertex:
650  return vertex_;
651  break;
652  case kTrkVertex:
653  return trackRef()->vertex();
654  break;
655  case kComMuonVertex:
656  return muonRef()->combinedMuon()->vertex();
657  break;
658  case kSAMuonVertex:
659  return muonRef()->standAloneMuon()->vertex();
660  break;
661  case kTrkMuonVertex:
662  return muonRef()->track()->vertex();
663  break;
664  case kTPFMSMuonVertex:
665  return muonRef()->tpfmsTrack()->vertex();
666  break;
667  case kPickyMuonVertex:
668  return muonRef()->pickyTrack()->vertex();
669  break;
670 
671  case kGSFVertex:
672  return gsfTrackRef()->vertex();
673  break;
674  }
675  return vertex_;
676 }
Point vertex_
vertex position
reco::TrackRef trackRef() const
Definition: PFCandidate.cc:433
reco::MuonRef muonRef() const
Definition: PFCandidate.cc:450
PFVertexType vertexType_
Definition: PFCandidate.h:468
reco::GsfTrackRef gsfTrackRef() const
Definition: PFCandidate.cc:471
virtual double reco::PFCandidate::vx ( ) const
inlinevirtual

x coordinate of vertex position

Reimplemented from reco::LeafCandidate.

Definition at line 408 of file PFCandidate.h.

References vertex().

Referenced by PFIsolationEstimator::fGetIsolationInRings().

408 {return vertex().x();}
virtual const Point & vertex() const
vertex position (overwritten by PF...)
Definition: PFCandidate.cc:647
virtual double reco::PFCandidate::vy ( ) const
inlinevirtual

y coordinate of vertex position

Reimplemented from reco::LeafCandidate.

Definition at line 409 of file PFCandidate.h.

References vertex().

Referenced by PFIsolationEstimator::fGetIsolationInRings().

409 {return vertex().y();}
virtual const Point & vertex() const
vertex position (overwritten by PF...)
Definition: PFCandidate.cc:647
virtual double reco::PFCandidate::vz ( ) const
inlinevirtual

z coordinate of vertex position

Reimplemented from reco::LeafCandidate.

Definition at line 410 of file PFCandidate.h.

References vertex().

Referenced by PFCandWithSuperClusterExtractor::depositFromObject(), and PFIsolationEstimator::fGetIsolationInRings().

410 {return vertex().z();}
virtual const Point & vertex() const
vertex position (overwritten by PF...)
Definition: PFCandidate.cc:647

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const PFCandidate c 
)
friend

Member Data Documentation

const float PFCandidate::bigMva_ = -999.
static

Definition at line 388 of file PFCandidate.h.

Blocks reco::PFCandidate::blocksStorage_
private

Definition at line 426 of file PFCandidate.h.

Referenced by addElementInBlock(), elementsInBlocks(), operator=(), and PFCandidate().

float reco::PFCandidate::deltaP_
private

uncertainty on 3-momentum

Definition at line 466 of file PFCandidate.h.

Referenced by deltaP(), operator=(), and setDeltaP().

float reco::PFCandidate::ecalERatio_
private

corrected ECAL energy ratio (corrected/raw)

Definition at line 439 of file PFCandidate.h.

Referenced by ecalEnergy(), operator=(), and setEcalEnergy().

std::atomic<ElementsInBlocks*> reco::PFCandidate::elementsInBlocks_
mutableprivate
Elements reco::PFCandidate::elementsStorage_
private

Definition at line 427 of file PFCandidate.h.

Referenced by addElementInBlock(), elementsInBlocks(), operator=(), and PFCandidate().

unsigned reco::PFCandidate::flags_
private

all flags, packed (ecal regional, hcal regional, tracking)

Definition at line 463 of file PFCandidate.h.

Referenced by flag(), operator=(), and setFlag().

const edm::EDProductGetter* reco::PFCandidate::getter_
private

Definition at line 503 of file PFCandidate.h.

Referenced by operator=(), and storeRefInfo().

float reco::PFCandidate::hcalERatio_
private

corrected HCAL energy ratio (corrected/raw)

Definition at line 442 of file PFCandidate.h.

Referenced by hcalEnergy(), operator=(), and setHcalEnergy().

float reco::PFCandidate::hoERatio_
private

corrected HO energy ratio (corrected/raw)

Definition at line 445 of file PFCandidate.h.

Referenced by hoEnergy(), operator=(), and setHoEnergy().

reco::Muon::MuonTrackType reco::PFCandidate::muonTrackType_
private

Reference to the best track if it is a muon pF is allowed to switch the default muon track

Definition at line 436 of file PFCandidate.h.

Referenced by bestMuonTrackType(), operator=(), PFCandidate(), and setMuonTrackType().

float reco::PFCandidate::mva_e_mu_
private

mva for electron-muon discrimination

Definition at line 477 of file PFCandidate.h.

Referenced by mva_e_mu(), operator=(), and set_mva_e_mu().

float reco::PFCandidate::mva_e_pi_
private

mva for electron-pion discrimination

Definition at line 474 of file PFCandidate.h.

Referenced by mva_e_pi(), operator=(), and set_mva_e_pi().

float reco::PFCandidate::mva_gamma_nh_
private

mva for neutral hadron - gamma discrimination

Definition at line 489 of file PFCandidate.h.

Referenced by mva_gamma_nh(), operator=(), and set_mva_gamma_nh().

float reco::PFCandidate::mva_Isolated_
private

Definition at line 471 of file PFCandidate.h.

Referenced by mva_Isolated(), operator=(), and set_mva_Isolated().

float reco::PFCandidate::mva_nothing_gamma_
private

mva for gamma detection

Definition at line 483 of file PFCandidate.h.

Referenced by mva_nothing_gamma(), operator=(), and set_mva_nothing_gamma().

float reco::PFCandidate::mva_nothing_nh_
private

mva for neutral hadron detection

Definition at line 486 of file PFCandidate.h.

Referenced by mva_nothing_nh(), operator=(), and set_mva_nothing_nh().

float reco::PFCandidate::mva_pi_mu_
private

mva for pi-muon discrimination

Definition at line 480 of file PFCandidate.h.

Referenced by mva_pi_mu(), operator=(), and set_mva_pi_mu().

math::XYZPointF reco::PFCandidate::positionAtECALEntrance_
private

position at ECAL entrance, from the PFRecTrack

Definition at line 492 of file PFCandidate.h.

Referenced by operator=(), positionAtECALEntrance(), and setPositionAtECALEntrance().

float reco::PFCandidate::ps1Energy_
private

corrected PS1 energy

Definition at line 457 of file PFCandidate.h.

Referenced by operator=(), pS1Energy(), and setPs1Energy().

float reco::PFCandidate::ps2Energy_
private

corrected PS2 energy

Definition at line 460 of file PFCandidate.h.

Referenced by operator=(), pS2Energy(), and setPs2Energy().

float reco::PFCandidate::rawEcalEnergy_
private

raw ECAL energy

Definition at line 448 of file PFCandidate.h.

Referenced by ecalEnergy(), operator=(), rawEcalEnergy(), and setEcalEnergy().

float reco::PFCandidate::rawHcalEnergy_
private

raw HCAL energy

Definition at line 451 of file PFCandidate.h.

Referenced by hcalEnergy(), operator=(), rawHcalEnergy(), and setHcalEnergy().

float reco::PFCandidate::rawHoEnergy_
private

raw HO energy

Definition at line 454 of file PFCandidate.h.

Referenced by hoEnergy(), operator=(), rawHoEnergy(), and setHoEnergy().

std::vector<const void *> reco::PFCandidate::refsCollectionCache_
private

Definition at line 506 of file PFCandidate.h.

Referenced by operator=(), and storeRefInfo().

std::vector<unsigned long long> reco::PFCandidate::refsInfo_
private

Definition at line 505 of file PFCandidate.h.

Referenced by getRefInfo(), operator=(), PFCandidate(), and storeRefInfo().

PFCandidatePtr reco::PFCandidate::sourcePtr_
private

reference to the source PFCandidate, if any

Definition at line 431 of file PFCandidate.h.

Referenced by operator=(), overlap(), PFCandidate(), setSourceCandidatePtr(), and sourceCandidatePtr().

unsigned short reco::PFCandidate::storedRefsBitPattern_
private

Definition at line 504 of file PFCandidate.h.

Referenced by getRefInfo(), operator=(), and storeRefInfo().

PFVertexType reco::PFCandidate::vertexType_
private

Definition at line 468 of file PFCandidate.h.

Referenced by operator=(), setVertex(), setVertexSource(), and vertex().