CMS 3D CMS Logo

PFCandIsolatorFromDeposit.h
Go to the documentation of this file.
1 #ifndef PFCandIsolatorFromDeposits_H
2 #define PFCandIsolatorFromDeposits_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  ~PFCandIsolatorFromDeposits() 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_;
53 
57  reco::isodeposit::EventDependentAbsVetos evdepVetos_; // note: these are a subset of the above. Don't delete twice!
61 
62  bool isNumber(const std::string &str) const;
63  double toNumber(const std::string &str) const;
64  };
65  // datamembers
66  std::vector<SingleDeposit> sources_;
67 };
68 #endif
PFCandIsolatorFromDeposits::SingleDeposit::deltaR_
double deltaR_
Definition: PFCandIsolatorFromDeposit.h:50
PFCandIsolatorFromDeposits::Max
Definition: PFCandIsolatorFromDeposit.h:31
PFCandIsolatorFromDeposits::SingleDeposit::weight_
double weight_
Definition: PFCandIsolatorFromDeposit.h:52
PFCandIsolatorFromDeposits::Sum2
Definition: PFCandIsolatorFromDeposit.h:31
StringObjectFunction< reco::Candidate >
PFCandIsolatorFromDeposits
Definition: PFCandIsolatorFromDeposit.h:27
edm::EDGetTokenT
Definition: EDGetToken.h:33
PFCandIsolatorFromDeposits::MaxRelative
Definition: PFCandIsolatorFromDeposit.h:31
edm
HLT enums.
Definition: AlignableModifier.h:19
EDProducer.h
PFCandIsolatorFromDeposits::Sum
Definition: PFCandIsolatorFromDeposit.h:31
PFCandIsolatorFromDeposits::SingleDeposit::compute
double compute(const reco::CandidateBaseRef &cand)
Definition: PFCandIsolatorFromDeposit.cc:131
EventDependentAbsVeto.h
edm::Handle
Definition: AssociativeIterator.h:50
PFCandIsolatorFromDeposits::SumRelative
Definition: PFCandIsolatorFromDeposit.h:31
PFCandIsolatorFromDeposits::SingleDeposit::mode_
Mode mode_
Definition: PFCandIsolatorFromDeposit.h:48
reco::isodeposit::AbsVetos
std::vector< AbsVeto * > AbsVetos
Definition: IsoDeposit.h:43
TrackFwd.h
MuonFwd.h
str
#define str(s)
Definition: TestProcessor.cc:51
Event
PFCandIsolatorFromDeposits::SingleDeposit::isNumber
bool isNumber(const std::string &str) const
Definition: PFCandIsolatorFromDeposit.cc:34
PFCandIsolatorFromDeposits::SingleDeposit::evdepVetos_
reco::isodeposit::EventDependentAbsVetos evdepVetos_
Definition: PFCandIsolatorFromDeposit.h:57
PFCandIsolatorFromDeposits::SingleDeposit::map
const reco::IsoDepositMap & map()
Definition: PFCandIsolatorFromDeposit.h:45
IsoDeposit.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PFCandIsolatorFromDeposits::~PFCandIsolatorFromDeposits
~PFCandIsolatorFromDeposits() override
destructor
Definition: PFCandIsolatorFromDeposit.cc:191
edm::ParameterSet
Definition: ParameterSet.h:47
PFCandIsolatorFromDeposits::SingleDeposit::srcToken_
edm::EDGetTokenT< reco::IsoDepositMap > srcToken_
Definition: PFCandIsolatorFromDeposit.h:49
PFCandIsolatorFromDeposits::produce
void produce(edm::Event &, const edm::EventSetup &) override
build deposits
Definition: PFCandIsolatorFromDeposit.cc:198
PFCandIsolatorFromDeposits::SingleDeposit::toNumber
double toNumber(const std::string &str) const
Definition: PFCandIsolatorFromDeposit.cc:38
PFCandIsolatorFromDeposits::Mode
Mode
Definition: PFCandIsolatorFromDeposit.h:31
cand
Definition: decayParser.h:32
iEvent
int iEvent
Definition: GenABIO.cc:224
PFCandIsolatorFromDeposits::Sum2Relative
Definition: PFCandIsolatorFromDeposit.h:31
edm::stream::EDProducer
Definition: EDProducer.h:38
edm::EventSetup
Definition: EventSetup.h:57
PFCandIsolatorFromDeposits::SingleDeposit::SingleDeposit
SingleDeposit(const edm::ParameterSet &, edm::ConsumesCollector &&iC)
Definition: PFCandIsolatorFromDeposit.cc:40
PFCandIsolatorFromDeposits::SingleDeposit::usesFunction_
bool usesFunction_
Definition: PFCandIsolatorFromDeposit.h:51
PFCandIsolatorFromDeposits::CandDoubleMap
edm::ValueMap< double > CandDoubleMap
Definition: PFCandIsolatorFromDeposit.h:29
PFCandIsolatorFromDeposits::PFCandIsolatorFromDeposits
PFCandIsolatorFromDeposits(const edm::ParameterSet &)
constructor with config
Definition: PFCandIsolatorFromDeposit.cc:179
PFCandIsolatorFromDeposits::SingleDeposit::barrelVetos_
reco::isodeposit::AbsVetos barrelVetos_
Definition: PFCandIsolatorFromDeposit.h:55
PFCandIsolatorFromDeposits::SingleDeposit
Definition: PFCandIsolatorFromDeposit.h:39
PFCandIsolatorFromDeposits::SingleDeposit::cleanup
void cleanup()
Definition: PFCandIsolatorFromDeposit.cc:112
edm::ValueMap
Definition: ValueMap.h:107
PFCandIsolatorFromDeposits::SingleDeposit::skipDefaultVeto_
bool skipDefaultVeto_
Definition: PFCandIsolatorFromDeposit.h:58
edm::RefToBase< Candidate >
PFCandIsolatorFromDeposits::NearestDR
Definition: PFCandIsolatorFromDeposit.h:31
PFCandIsolatorFromDeposits::SingleDeposit::hDeps_
edm::Handle< reco::IsoDepositMap > hDeps_
Definition: PFCandIsolatorFromDeposit.h:60
ConsumesCollector.h
Candidate.h
IsoDepositFwd.h
reco::isodeposit::EventDependentAbsVetos
std::vector< EventDependentAbsVeto * > EventDependentAbsVetos
Definition: EventDependentAbsVeto.h:15
EventSetup
ParameterSet.h
PFCandIsolatorFromDeposits::Count
Definition: PFCandIsolatorFromDeposit.h:31
OwnVector.h
PFCandIsolatorFromDeposits::SingleDeposit::endcapVetos_
reco::isodeposit::AbsVetos endcapVetos_
Definition: PFCandIsolatorFromDeposit.h:56
edm::Event
Definition: Event.h:73
StringObjectFunction.h
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
PFCandIsolatorFromDeposits::SingleDeposit::usePivotForBarrelEndcaps_
bool usePivotForBarrelEndcaps_
Definition: PFCandIsolatorFromDeposit.h:59
PFCandIsolatorFromDeposits::SingleDeposit::open
void open(const edm::Event &iEvent, const edm::EventSetup &iSetup)
Definition: PFCandIsolatorFromDeposit.cc:124
PFCandIsolatorFromDeposits::SingleDeposit::weightExpr_
StringObjectFunction< reco::Candidate > weightExpr_
Definition: PFCandIsolatorFromDeposit.h:54
PFCandIsolatorFromDeposits::sources_
std::vector< SingleDeposit > sources_
Definition: PFCandIsolatorFromDeposit.h:66