CMS 3D CMS Logo

CandIsolatorFromDeposits.h
Go to the documentation of this file.
1 #ifndef MuonIsolationProducers_CandIsolatorFromDeposits_H
2 #define MuonIsolationProducers_CandIsolatorFromDeposits_H
3 
7 
13 
17 
18 #include <string>
19 
20 namespace edm {
21  class Event;
22 }
23 namespace edm {
24  class EventSetup;
25 }
26 
28 public:
30 
33 
34  ~CandIsolatorFromDeposits() override;
35 
36  void produce(edm::Event &, const edm::EventSetup &) override;
37 
38 private:
39  class SingleDeposit {
40  public:
42  void cleanup();
43  void open(const edm::Event &iEvent, const edm::EventSetup &iSetup);
44  double compute(const reco::CandidateBaseRef &cand);
45  const reco::IsoDepositMap &map() { return *hDeps_; }
46 
47  private:
50  double deltaR_;
52  double weight_;
55  reco::isodeposit::EventDependentAbsVetos evdepVetos_; // note: these are a subset of the above. Don't delete twice!
58  };
59  // datamembers
60  std::vector<SingleDeposit> sources_;
61 };
62 #endif
CandIsolatorFromDeposits::SingleDeposit::compute
double compute(const reco::CandidateBaseRef &cand)
Definition: CandIsolatorFromDeposits.cc:103
CandIsolatorFromDeposits::SingleDeposit::mode_
Mode mode_
Definition: CandIsolatorFromDeposits.h:48
CandIsolatorFromDeposits::SingleDeposit
Definition: CandIsolatorFromDeposits.h:39
CandIsolatorFromDeposits::SingleDeposit::deltaR_
double deltaR_
Definition: CandIsolatorFromDeposits.h:50
CandIsolatorFromDeposits::SingleDeposit::weightExpr_
StringObjectFunction< reco::Candidate > weightExpr_
Definition: CandIsolatorFromDeposits.h:53
CandIsolatorFromDeposits::Mode
Mode
Definition: CandIsolatorFromDeposits.h:31
StringObjectFunction< reco::Candidate >
CandIsolatorFromDeposits::SingleDeposit::cleanup
void cleanup()
Definition: CandIsolatorFromDeposits.cc:88
edm::EDGetTokenT
Definition: EDGetToken.h:33
edm
HLT enums.
Definition: AlignableModifier.h:19
CandIsolatorFromDeposits::CandIsolatorFromDeposits
CandIsolatorFromDeposits(const edm::ParameterSet &)
constructor with config
Definition: CandIsolatorFromDeposits.cc:138
CandIsolatorFromDeposits::sources_
std::vector< SingleDeposit > sources_
Definition: CandIsolatorFromDeposits.h:60
CandIsolatorFromDeposits::SingleDeposit::SingleDeposit
SingleDeposit(const edm::ParameterSet &, edm::ConsumesCollector &&iC)
Definition: CandIsolatorFromDeposits.cc:36
CandIsolatorFromDeposits::SingleDeposit::usesFunction_
bool usesFunction_
Definition: CandIsolatorFromDeposits.h:51
EDProducer.h
EventDependentAbsVeto.h
edm::Handle
Definition: AssociativeIterator.h:50
CandIsolatorFromDeposits::Sum
Definition: CandIsolatorFromDeposits.h:31
CandIsolatorFromDeposits::SumRelative
Definition: CandIsolatorFromDeposits.h:31
CandIsolatorFromDeposits::CandDoubleMap
edm::ValueMap< double > CandDoubleMap
Definition: CandIsolatorFromDeposits.h:29
reco::isodeposit::AbsVetos
std::vector< AbsVeto * > AbsVetos
Definition: IsoDeposit.h:43
CandIsolatorFromDeposits::SingleDeposit::hDeps_
edm::Handle< reco::IsoDepositMap > hDeps_
Definition: CandIsolatorFromDeposits.h:57
TrackFwd.h
MuonFwd.h
CandIsolatorFromDeposits::NearestDR
Definition: CandIsolatorFromDeposits.h:31
Event
IsoDeposit.h
edm::ParameterSet
Definition: ParameterSet.h:36
CandIsolatorFromDeposits::SingleDeposit::skipDefaultVeto_
bool skipDefaultVeto_
Definition: CandIsolatorFromDeposits.h:56
CandIsolatorFromDeposits::Max
Definition: CandIsolatorFromDeposits.h:31
CandIsolatorFromDeposits::SingleDeposit::open
void open(const edm::Event &iEvent, const edm::EventSetup &iSetup)
Definition: CandIsolatorFromDeposits.cc:96
CandIsolatorFromDeposits::SingleDeposit::vetos_
reco::isodeposit::AbsVetos vetos_
Definition: CandIsolatorFromDeposits.h:54
CandIsolatorFromDeposits::SingleDeposit::map
const reco::IsoDepositMap & map()
Definition: CandIsolatorFromDeposits.h:45
cand
Definition: decayParser.h:34
iEvent
int iEvent
Definition: GenABIO.cc:224
CandIsolatorFromDeposits::Sum2
Definition: CandIsolatorFromDeposits.h:31
edm::stream::EDProducer
Definition: EDProducer.h:38
CandIsolatorFromDeposits::SingleDeposit::srcToken_
edm::EDGetTokenT< reco::IsoDepositMap > srcToken_
Definition: CandIsolatorFromDeposits.h:49
edm::EventSetup
Definition: EventSetup.h:57
CandIsolatorFromDeposits::~CandIsolatorFromDeposits
~CandIsolatorFromDeposits() override
destructor
Definition: CandIsolatorFromDeposits.cc:150
CandIsolatorFromDeposits::produce
void produce(edm::Event &, const edm::EventSetup &) override
build deposits
Definition: CandIsolatorFromDeposits.cc:157
edm::ValueMap
Definition: ValueMap.h:107
CandIsolatorFromDeposits::MaxRelative
Definition: CandIsolatorFromDeposits.h:31
edm::RefToBase< Candidate >
CandIsolatorFromDeposits::SingleDeposit::weight_
double weight_
Definition: CandIsolatorFromDeposits.h:52
CandIsolatorFromDeposits::SumDR
Definition: CandIsolatorFromDeposits.h:31
CandIsolatorFromDeposits::Count
Definition: CandIsolatorFromDeposits.h:31
ConsumesCollector.h
Candidate.h
IsoDepositFwd.h
reco::isodeposit::EventDependentAbsVetos
std::vector< EventDependentAbsVeto * > EventDependentAbsVetos
Definition: EventDependentAbsVeto.h:15
EventSetup
ParameterSet.h
OwnVector.h
CandIsolatorFromDeposits::Sum2Relative
Definition: CandIsolatorFromDeposits.h:31
edm::Event
Definition: Event.h:73
StringObjectFunction.h
CandIsolatorFromDeposits::SingleDeposit::evdepVetos_
reco::isodeposit::EventDependentAbsVetos evdepVetos_
Definition: CandIsolatorFromDeposits.h:55
CandIsolatorFromDeposits
Definition: CandIsolatorFromDeposits.h:27
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
CandIsolatorFromDeposits::MeanDR
Definition: CandIsolatorFromDeposits.h:31