15 theDepositLabel(par.getUntrackedParameter<
std::
string>(
"DepositLabel")),
16 theVetoSuperClusterMatch(par.getParameter<
bool>(
"SCMatch_Veto")),
17 theMissHitVetoSuperClusterMatch(par.getParameter<
bool>(
"MissHitSCMatch_Veto")),
18 theDiff_r(par.getParameter<double>(
"Diff_r")),
19 theDiff_z(par.getParameter<double>(
"Diff_z")),
20 theDR_Max(par.getParameter<double>(
"DR_Max")),
21 theDR_Veto(par.getParameter<double>(
"DR_Veto"))
47 deposit.setVeto(
veto(candDir) );
48 deposit.addCandEnergy(cand.
pt());
55 for (PFCandidateCollection::const_iterator it = PFCandH->begin(), ed = PFCandH->end(); it != ed; ++it) {
64 deposit.addDeposit(dirTrk, it->pt());
76 deposit.setVeto(
veto(candDir) );
77 deposit.addCandEnergy(cand.
pt());
84 for (PFCandidateCollection::const_iterator it = PFCandH->begin(), ed = PFCandH->end(); it != ed; ++it) {
98 deposit.addDeposit(dirTrk, it->pt());
111 deposit.setVeto(
veto(candDir) );
112 deposit.addCandEnergy(cand.
pt());
118 for (PFCandidateCollection::const_iterator it = PFCandH->begin(), ed = PFCandH->end(); it != ed; ++it) {
126 deposit.addDeposit(dirTrk, it->pt());
138 deposit.setVeto(
veto(candDir) );
139 deposit.addCandEnergy(cand.
pt());
145 for (PFCandidateCollection::const_iterator it = PFCandH->begin(), ed = PFCandH->end(); it != ed; ++it) {
155 deposit.addDeposit(dirTrk, it->pt());
GsfTrackRef gsfTrack() const override
reference to a GsfTrack
bool isNonnull() const
Checks for non-null.
double eta() const final
momentum pseudorapidity
edm::EDGetTokenT< reco::PFCandidateCollection > thePFCandToken
double phi() const
azimuthal angle of momentum vector
double pt() const final
transverse momentum
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
bool theVetoSuperClusterMatch
const Point & vertex() const override
vertex position (overwritten by PF...)
const Point & vertex() const
reference point on the track. This method is DEPRECATED, please use referencePoint() instead ...
double eta() const
pseudorapidity of momentum vector
bool theMissHitVetoSuperClusterMatch
double pt() const
track transverse momentum
const Point & vertex() const override
vertex position (overwritten by PF...)
math::XYZPoint Point
point in the space
Abs< T >::type abs(const T &t)
reco::IsoDeposit depositFromObject(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Photon &cand) const
reco::IsoDeposit::Veto veto(const reco::IsoDeposit::Direction &dir) const
double vz() const override
z coordinate of vertex position
double deltaR(double eta1, double eta2, double phi1, double phi2)
double vz() const
z coordinate of the reference point on track
PFCandWithSuperClusterExtractor()
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
Particle reconstructed by the particle flow algorithm.
SuperClusterRef superCluster() const override
reference to a SuperCluster
#define DEFINE_EDM_PLUGIN(factory, type, name)
reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &muon) const override
double phi() const final
momentum azimuthal angle
double vz() const override
z coordinate of vertex position
reco::SuperClusterRef superClusterRef() const
return a reference to the corresponding SuperCluster if any