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 }
26 /*
27 reco::IsoDeposit::Vetos CandViewExtractor::vetos(const edm::Event & ev,
28  const edm::EventSetup & evSetup, const reco::Candidate & cand) const
29 {
30  reco::isodeposit::Direction dir(cand.eta(),cand.phi());
31  return reco::IsoDeposit::Vetos(1,veto(dir));
32 }
33 */
34 
36 {
38  result.vetoDir = dir;
39  result.dR = theDR_Veto;
40  return result;
41 }
42 
46 }
47 
50 
51 
54 #include "CandViewExtractor.h"
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:460
edm::Event::CacheIdentifier_t theCacheID
edm::Handle< edm::View< reco::Candidate > > theCandViewH
bool ev
virtual void initEvent(const edm::Event &ev, const edm::EventSetup &evSetup)
perform some constly initialization
CacheIdentifier_t cacheIdentifier() const
Definition: Event.cc:33
fixed size matrix
HLT enums.
#define DEFINE_EDM_PLUGIN(factory, type, name)
dbl *** dir
Definition: mlp_gen.cc:35
reco::IsoDeposit::Veto veto(const reco::IsoDeposit::Direction &dir) const
edm::EDGetTokenT< edm::View< reco::Candidate > > theCandViewToken