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  virtual ~CandViewExtractor(){}
27 
28  virtual void fillVetos (const edm::Event & ev,
29  const edm::EventSetup & evSetup, const reco::TrackCollection & cand) { }
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  virtual void initEvent(const edm::Event & ev, const edm::EventSetup & evSetup);
39 
40  virtual reco::IsoDeposit deposit (const edm::Event & ev,
41  const edm::EventSetup & evSetup, const reco::Track & muon) const {
42  return depositFromObject(ev, evSetup, muon);
43  }
44 
45  virtual reco::IsoDeposit deposit (const edm::Event & ev,
46  const edm::EventSetup & evSetup, const reco::Candidate & muon) const {
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:102
virtual reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Candidate &muon) const
edm::Event::CacheIdentifier_t theCacheID
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
edm::Handle< edm::View< reco::Candidate > > theCandViewH
bool ev
virtual void initEvent(const edm::Event &ev, const edm::EventSetup &evSetup)
perform some constly initialization
virtual void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &cand)
virtual reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &muon) const
reco::IsoDeposit depositFromObject(const edm::Event &ev, const edm::EventSetup &evSetup, const T &cand) const
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