CMS 3D CMS Logo

CandViewExtractor.cc
Go to the documentation of this file.
1 #include "CandViewExtractor.h"
2 
10 
11 using namespace edm;
12 using namespace reco;
13 using namespace muonisolation;
14 
15 #include "CandViewExtractor.icc"
16 
17 CandViewExtractor::CandViewExtractor(const ParameterSet& par, edm::ConsumesCollector&& iC)
18  : theCandViewToken(iC.consumes<View<Candidate> >(par.getParameter<edm::InputTag>("inputCandView"))),
19  theDepositLabel(par.getUntrackedParameter<std::string>("DepositLabel")),
20  theDiff_r(par.getParameter<double>("Diff_r")),
21  theDiff_z(par.getParameter<double>("Diff_z")),
22  theDR_Max(par.getParameter<double>("DR_Max")),
23  theDR_Veto(par.getParameter<double>("DR_Veto")) {}
24 /*
25 reco::IsoDeposit::Vetos CandViewExtractor::vetos(const edm::Event & ev,
26  const edm::EventSetup & evSetup, const reco::Candidate & cand) const
27 {
28  reco::isodeposit::Direction dir(cand.eta(),cand.phi());
29  return reco::IsoDeposit::Vetos(1,veto(dir));
30 }
31 */
32 
35  result.vetoDir = dir;
36  result.dR = theDR_Veto;
37  return result;
38 }
39 
43 }
44 
47 
50 #include "CandViewExtractor.h"
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:525
edm::Event::CacheIdentifier_t theCacheID
edm::EDGetTokenT< edm::View< reco::Candidate > > theCandViewToken
edm::Handle< edm::View< reco::Candidate > > theCandViewH
bool ev
void initEvent(const edm::Event &ev, const edm::EventSetup &evSetup) override
perform some constly initialization
CacheIdentifier_t cacheIdentifier() const
Definition: Event.cc:33
fixed size matrix
HLT enums.
#define DEFINE_EDM_PLUGIN(factory, type, name)
reco::IsoDeposit::Veto veto(const reco::IsoDeposit::Direction &dir) const