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 
8 
15 
16 namespace muonisolation {
17 
19  public:
22 
23  ~CandViewExtractor() override {}
24 
25  void fillVetos(const edm::Event& ev, const edm::EventSetup& evSetup, const reco::TrackCollection& cand) override {}
26 
27  /* virtual reco::IsoDeposit::Vetos vetos(const edm::Event & ev,
28  const edm::EventSetup & evSetup, const reco::Candidate & cand) const;
29 
30  virtual reco::IsoDeposit::Vetos vetos(const edm::Event & ev,
31  const edm::EventSetup & evSetup, const reco::Track & cand) const;
32 */
33 
34  void initEvent(const edm::Event& ev, const edm::EventSetup& evSetup) override;
35 
37  const edm::EventSetup& evSetup,
38  const reco::Track& muon) const override {
39  return depositFromObject(ev, evSetup, muon);
40  }
41 
43  const edm::EventSetup& evSetup,
44  const reco::Candidate& muon) const override {
45  return depositFromObject(ev, evSetup, muon);
46  }
47 
48  private:
50 
51  template <typename T>
52  reco::IsoDeposit depositFromObject(const edm::Event& ev, const edm::EventSetup& evSetup, const T& cand) const;
53 
54  // Parameter set
56  std::string theDepositLabel; // name for deposit
59  double theDiff_r; // transverse distance to vertex
60  double theDiff_z; // z distance to vertex
61  double theDR_Max; // Maximum cone angle for deposits
62  double theDR_Veto; // Veto cone angle
63  };
64 
65 } // namespace muonisolation
66 
67 #endif
muon
Definition: MuonCocktails.h:17
muonisolation::CandViewExtractor::CandViewExtractor
CandViewExtractor()
Definition: CandViewExtractor.h:20
edm::EDGetTokenT
Definition: EDGetToken.h:33
muonisolation::CandViewExtractor::depositFromObject
reco::IsoDeposit depositFromObject(const edm::Event &ev, const edm::EventSetup &evSetup, const T &cand) const
reco::IsoDeposit::Veto
Definition: IsoDeposit.h:59
muonisolation::CandViewExtractor::fillVetos
void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &cand) override
Definition: CandViewExtractor.h:25
edm::Handle
Definition: AssociativeIterator.h:50
CandidateFwd.h
muonisolation::CandViewExtractor::theDiff_z
double theDiff_z
Definition: CandViewExtractor.h:60
Track.h
TrackFwd.h
reco::Track
Definition: Track.h:27
IsoDeposit.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
IsoDepositExtractor.h
edm::Event::CacheIdentifier_t
unsigned long CacheIdentifier_t
Definition: Event.h:117
edm::ParameterSet
Definition: ParameterSet.h:47
cand
Definition: decayParser.h:32
muonisolation::CandViewExtractor
Definition: CandViewExtractor.h:18
edm::EventSetup
Definition: EventSetup.h:58
muonisolation::CandViewExtractor::theDR_Max
double theDR_Max
Definition: CandViewExtractor.h:61
reco::Candidate
Definition: Candidate.h:27
muonisolation
Definition: CandViewExtractor.h:16
muonisolation::CandViewExtractor::theCacheID
edm::Event::CacheIdentifier_t theCacheID
Definition: CandViewExtractor.h:58
T
long double T
Definition: Basic3DVectorLD.h:48
muonisolation::CandViewExtractor::theCandViewToken
edm::EDGetTokenT< edm::View< reco::Candidate > > theCandViewToken
Definition: CandViewExtractor.h:55
muonisolation::CandViewExtractor::theDiff_r
double theDiff_r
Definition: CandViewExtractor.h:59
muonisolation::CandViewExtractor::theCandViewH
edm::Handle< edm::View< reco::Candidate > > theCandViewH
Definition: CandViewExtractor.h:57
reco::isodeposit::Direction
Definition: IsoDepositDirection.h:19
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
muonisolation::CandViewExtractor::initEvent
void initEvent(const edm::Event &ev, const edm::EventSetup &evSetup) override
perform some constly initialization
Definition: CandViewExtractor.cc:39
muonisolation::CandViewExtractor::deposit
reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Candidate &muon) const override
Definition: CandViewExtractor.h:42
muonisolation::CandViewExtractor::deposit
reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &muon) const override
Definition: CandViewExtractor.h:36
reco::IsoDeposit
Definition: IsoDeposit.h:49
muonisolation::CandViewExtractor::theDR_Veto
double theDR_Veto
Definition: CandViewExtractor.h:62
ConsumesCollector.h
Candidate.h
reco::isodeposit::IsoDepositExtractor
Definition: IsoDepositExtractor.h:24
muonisolation::CandViewExtractor::veto
reco::IsoDeposit::Veto veto(const reco::IsoDeposit::Direction &dir) const
Definition: CandViewExtractor.cc:32
edm::Event
Definition: Event.h:73
muonisolation::CandViewExtractor::~CandViewExtractor
~CandViewExtractor() override
Definition: CandViewExtractor.h:23
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23
muonisolation::CandViewExtractor::theDepositLabel
std::string theDepositLabel
Definition: CandViewExtractor.h:56