CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ) :
18  theCandViewTag(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 
45 
46 
49 #include "CandViewExtractor.h"
tuple result
Definition: query.py:137
#define DEFINE_EDM_PLUGIN(factory, type, name)
dbl *** dir
Definition: mlp_gen.cc:35
reco::IsoDeposit::Veto veto(const reco::IsoDeposit::Direction &dir) const