25 fisInitialized(kFALSE)
73 if(bApplyVeto && iParticleType==
kElectron){
180 float fTempPhoton = 0.0;
183 float fTempNeutral = 0.0;
186 float fTempCharged = 0.0;
189 float fTempChargedAll = 0.0;
228 fPt = pfCandidate->
pt();
229 fVx = pfCandidate->
vx();
230 fVy = pfCandidate->
vy();
231 fVz = pfCandidate->
vz();
235 for(
unsigned iPF=0; iPF<pfParticlesColl->size(); iPF++) {
239 if(&pfParticle==(pfCandidate))
242 if(pfParticle.
pdgId()==22){
304 for(
unsigned iPF=0; iPF<pfParticlesColl->size(); iPF++) {
313 if(pfParticle.
pdgId()==22){
320 fEta = direction.Eta();
321 fPhi = direction.Phi();
322 fVx = pfParticle.
vx();
323 fVy = pfParticle.
vy();
324 fVz = pfParticle.
vz();
338 fEta = direction.Eta();
339 fPhi = direction.Phi();
340 fVx = pfParticle.
vx();
341 fVy = pfParticle.
vy();
342 fVz = pfParticle.
vz();
357 fEta = direction.Eta();
358 fPhi = direction.Phi();
409 fPt = electron->
pt();
410 fVx = electron->
vx();
411 fVy = electron->
vy();
412 fVz = electron->
vz();
419 for(
unsigned iPF=0; iPF<pfParticlesColl->size(); iPF++) {
424 if(pfParticle.
pdgId()==22){
583 float fVtxMainZ = (*vtxMain).z();
598 double dxy = pfIsoCand->
trackRef()->dxy( (*vtxMain).position() );
620 double dxy = ( -(vtx->x() -
fVx)*pfIsoCand->
py() + (vtx->y() -
fVy)*pfIsoCand->
px()) / pfIsoCand->
pt();
691 unsigned nFoundVertex = 0;
697 for( reco::VertexCollection::const_iterator iv=vertices.begin(); iv!=vertices.end(); ++iv, ++
index) {
708 if(baseRef == trackBaseRef ) {
725 edm::LogWarning(
"TrackOnTwoVertex")<<
"a track is shared by at least two verteces. Used to be an assert";
733 double dzmin = 10000.;
734 double ztrack = pfcand.
vertex().z();
735 bool foundVertex =
false;
737 for( reco::VertexCollection::const_iterator iv=vertices.begin(); iv!=vertices.end(); ++iv, ++
index) {
762 for(reco::PFCandidateCollection::const_iterator iPF=Candidates->begin();iPF !=Candidates->end();iPF++){
808 for(reco::PFCandidateCollection::const_iterator iPF=Candidates->begin();iPF !=Candidates->end();iPF++){
824 for(reco::PFCandidateCollection::const_iterator iPF=Candidates->begin();iPF !=Candidates->end();iPF++){
827 if(pfParticle.
pt()>
fPt){
831 fPt = pfParticle.
pt();
void setRectangleVetoEndcap(Bool_t bValue=kTRUE)
void setDeltaRVetoBarrel(Bool_t bValue=kTRUE)
float fRectangleDeltaPhiVetoEndcapNeutrals
GsfTrackRef gsfTrack() const override
reference to a GsfTrack
int pdgId() const final
PDG identifier.
std::vector< float > fIsolationInRingsNeutral
std::vector< float > fIsolationInRingsPhoton
bool isNonnull() const
Checks for non-null.
double eta() const final
momentum pseudorapidity
void setNumberOfCrystalEndcapPhotons(float fValue=-1)
void setDeltaRVetoEndcap(Bool_t bValue=kTRUE)
float fDeltaRVetoEndcapPhotons
void setRectangleDeltaPhiVetoBarrelPhotons(float fValue=-1.0)
trackRef_iterator tracks_end() const
last iterator over tracks
void setApplyMissHitPhVeto(Bool_t bValue=kFALSE)
float mva_nothing_gamma() const
mva for gamma detection
double vy() const override
y coordinate of vertex position
float fRectangleDeltaPhiVetoBarrelNeutrals
float fRectangleDeltaEtaVetoEndcapCharged
std::vector< float > fGetIsolationInRings(const reco::PFCandidate *pfCandidate, const reco::PFCandidateCollection *pfParticlesColl, reco::VertexRef vtx, edm::Handle< reco::VertexCollection > vertices)
float fDeltaRVetoBarrelPhotons
float isChargedParticleVetoed(const reco::PFCandidate *pfIsoCand, edm::Handle< reco::VertexCollection > vertices)
void setApplyDzDxyVeto(Bool_t bValue=kTRUE)
reco::VertexRef chargedHadronVertex(edm::Handle< reco::VertexCollection > verticies, const reco::PFCandidate &pfcand)
float fRectangleDeltaEtaVetoEndcapPhotons
double px() const final
x coordinate of momentum vector
float fRectangleDeltaEtaVetoBarrelCharged
float fRectangleDeltaPhiVetoBarrelCharged
void setNumbersOfRings(int iValue=1)
void setDeltaRVetoBarrelNeutrals(float fValue=-1.0)
void setDeltaRVetoEndcapNeutrals(float fValue=-1.0)
double pt() const final
transverse momentum
std::vector< Vertex > VertexCollection
collection of Vertex objects
float fDeltaRVetoEndcapNeutrals
void setDeltaRVetoBarrelCharged(float fValue=-1.0)
float isPhotonParticleVetoed(const reco::PFCandidate *pfIsoCand)
void initialize(Bool_t bApplyVeto, int iParticleType)
std::vector< float > fIsolationInRings
void setDeltaRVetoEndcapPhotons(float fValue=-1.0)
void setApplyPFPUVeto(Bool_t bValue=kFALSE)
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
void setRectangleVetoBarrel(Bool_t bValue=kTRUE)
void setRectangleDeltaEtaVetoBarrelNeutrals(float fValue=-1.0)
edm::Ref< SuperClusterCollection > SuperClusterRef
reference to an object in a collection of SuperCluster objects
float fRectangleDeltaPhiVetoEndcapCharged
const math::XYZPointF & positionAtECALEntrance() const
std::vector< float > fIsolationInRingsChargedAll
float fRectangleDeltaEtaVetoBarrelNeutrals
reco::TrackRef trackRef() const
float fDeltaRVetoBarrelNeutrals
const Point & vertex() const override
vertex position (overwritten by PF...)
void setUseCrystalSize(Bool_t bValue=kFALSE)
void setParticleType(int iValue)
float fDeltaRVetoEndcapCharged
void setRectangleDeltaPhiVetoBarrelCharged(float fValue=-1.0)
int matchPFObject(const reco::Photon *photon, const reco::PFCandidateCollection *pfParticlesColl)
Abs< T >::type abs(const T &t)
double vx() const override
x coordinate of vertex position
void setRectangleDeltaPhiVetoEndcapNeutrals(float fValue=-1.0)
void setRectangleDeltaPhiVetoBarrelNeutrals(float fValue=-1.0)
float fRectangleDeltaPhiVetoBarrelPhotons
void setRectangleDeltaEtaVetoBarrelCharged(float fValue=-1.0)
float isNeutralParticleVetoed(const reco::PFCandidate *pfIsoCand)
void initializeRings(int iNumberOfRings, float fRingSize)
float trackWeight(const TREF &r) const
returns the weight with which a Track has contributed to the vertex-fit.
std::vector< float > fIsolationInRingsCharged
void setDeltaRVetoBarrelPhotons(float fValue=-1.0)
edm::Ref< VertexCollection > VertexRef
persistent reference to a Vertex
reco::SuperClusterRef refSC
bool isNull() const
Checks for null.
void initializeElectronIsolation(Bool_t bApplyVeto)
double vz() const override
z coordinate of vertex position
void setRectangleDeltaPhiVetoEndcapCharged(float fValue=-1.0)
Bool_t checkClosestZVertex
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
void setRectangleDeltaEtaVetoEndcapCharged(float fValue=-1.0)
T const * product() const
void setRectangleDeltaEtaVetoEndcapPhotons(float fValue=-1.0)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
void setDeltaRVetoEndcapCharged(float fValue=-1.0)
double py() const final
y coordinate of momentum vector
void setApplyVeto(Bool_t bValue=kTRUE)
void initializeElectronIsolationInRings(Bool_t bApplyVeto, int iNumberOfRings, float fRingSize)
void setRingSize(float fValue=0.4)
Particle reconstructed by the particle flow algorithm.
Bool_t bApplyMissHitPhVeto
double vy() const override
y coordinate of vertex position
SuperClusterRef superCluster() const override
reference to a SuperCluster
float fRectangleDeltaEtaVetoEndcapNeutrals
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
void initializePhotonIsolation(Bool_t bApplyVeto)
void setRectangleDeltaPhiVetoEndcapPhotons(float fValue=-1.0)
float fGetIsolation(const reco::PFCandidate *pfCandidate, const reco::PFCandidateCollection *pfParticlesColl, reco::VertexRef vtx, edm::Handle< reco::VertexCollection > vertices)
void setRectangleDeltaEtaVetoBarrelPhotons(float fValue=-1.0)
trackRef_iterator tracks_begin() const
first iterator over tracks
float fRectangleDeltaEtaVetoBarrelPhotons
void setRectangleDeltaEtaVetoEndcapNeutrals(float fValue=-1.0)
void setConeSize(float fValue=0.4)
float fDeltaRVetoBarrelCharged
Bool_t bRectangleVetoEndcap
double phi() const final
momentum azimuthal angle
double vx() const override
x coordinate of vertex position
double vz() const override
z coordinate of vertex position
Bool_t bRectangleVetoBarrel
float fRectangleDeltaPhiVetoEndcapPhotons
reco::SuperClusterRef superClusterRef() const
return a reference to the corresponding SuperCluster if any
void initializePhotonIsolationInRings(Bool_t bApplyVeto, int iNumberOfRings, float fRingSize)
float fNumberOfCrystalEndcapPhotons