75 deposit.setVeto(
veto(candDir));
76 deposit.addCandEnergy(
cand.pt());
79 if (theCacheID !=
event.cacheIdentifier()) {
80 event.getByToken(theCandViewToken, candViewH);
82 candViewH = theCandViewH;
90 LogDebug(
metname) <<
"pdgid=" << it->pdgId() <<
" vtx=" << it->vertex() <<
" dR=" <<
dR 91 <<
" dvz=" << it->vz() -
cand.vz() <<
" drho=" << (it->vertex() -
vtx).Rho();
92 if ((
dR < theDR_Max) && (
dR > theDR_Veto) && (
std::abs(it->vz() -
cand.vz()) < theDiff_z) &&
93 ((it->vertex() -
vtx).Rho() < theDiff_r)) {
96 deposit.addDeposit(dirTrk, it->pt());
106 theDepositLabel(par.getUntrackedParameter<
std::
string>(
"DepositLabel")),
107 theDiff_r(par.getParameter<double>(
"Diff_r")),
108 theDiff_z(par.getParameter<double>(
"Diff_z")),
109 theDR_Max(par.getParameter<double>(
"DR_Max")),
110 theDR_Veto(par.getParameter<double>(
"DR_Veto")) {}
unsigned long CacheIdentifier_t
const std::string metname
edm::Event::CacheIdentifier_t theCacheID
std::vector< Track > TrackCollection
collection of Tracks
edm::EDGetTokenT< edm::View< reco::Candidate > > theCandViewToken
edm::Handle< edm::View< reco::Candidate > > theCandViewH
void initEvent(const edm::Event &ev, const edm::EventSetup &evSetup) override
perform some constly initialization
reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Candidate &muon) const override
reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &muon) const override
~CandViewExtractor() override
std::string theDepositLabel
reco::IsoDeposit::Veto veto(const reco::IsoDeposit::Direction &dir) const
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 T &cand) const
void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &cand) override
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
#define DEFINE_EDM_PLUGIN(factory, type, name)