CMS 3D CMS Logo

CandViewExtractor.h
Go to the documentation of this file.
1 #ifndef MuonIsolation_CandViewExtractor_H
2 #define MuonIsolation_CandViewExtractor_H
3 
4 #include <string>
5 #include <vector>
6 
7 
9 
16 
17 namespace muonisolation {
18 
20 
21 public:
22 
25 
26  ~CandViewExtractor() override{}
27 
28  void fillVetos (const edm::Event & ev,
29  const edm::EventSetup & evSetup, const reco::TrackCollection & cand) override { }
30 
31 /* virtual reco::IsoDeposit::Vetos vetos(const edm::Event & ev,
32  const edm::EventSetup & evSetup, const reco::Candidate & cand) const;
33 
34  virtual reco::IsoDeposit::Vetos vetos(const edm::Event & ev,
35  const edm::EventSetup & evSetup, const reco::Track & cand) const;
36 */
37 
38  void initEvent(const edm::Event & ev, const edm::EventSetup & evSetup) override;
39 
41  const edm::EventSetup & evSetup, const reco::Track & muon) const override {
42  return depositFromObject(ev, evSetup, muon);
43  }
44 
46  const edm::EventSetup & evSetup, const reco::Candidate & muon) const override {
47  return depositFromObject(ev, evSetup, muon);
48  }
49 
50 private:
52 
53  template<typename T>
55  const edm::EventSetup & evSetup, const T &cand) const ;
56 
57  // Parameter set
59  std::string theDepositLabel; // name for deposit
62  double theDiff_r; // transverse distance to vertex
63  double theDiff_z; // z distance to vertex
64  double theDR_Max; // Maximum cone angle for deposits
65  double theDR_Veto; // Veto cone angle
66 };
67 
68 }
69 
70 #endif
unsigned long CacheIdentifier_t
Definition: Event.h:109
reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &muon) const override
edm::Event::CacheIdentifier_t theCacheID
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:15
edm::Handle< edm::View< reco::Candidate > > theCandViewH
bool ev
void initEvent(const edm::Event &ev, const edm::EventSetup &evSetup) override
perform some constly initialization
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
dbl *** dir
Definition: mlp_gen.cc:35
reco::IsoDeposit::Veto veto(const reco::IsoDeposit::Direction &dir) const
long double T
edm::EDGetTokenT< edm::View< reco::Candidate > > theCandViewToken
reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Candidate &muon) const override