CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 { class Event; }
21 namespace edm { class EventSetup; }
22 
24 
25 public:
27 
30 
32 
33  virtual void produce(edm::Event&, const edm::EventSetup&);
34 
35 private:
36  class SingleDeposit {
37  public:
39  void cleanup() ;
40  void open(const edm::Event &iEvent, const edm::EventSetup &iSetup) ;
41  double compute(const reco::CandidateBaseRef &cand) ;
42  const reco::IsoDepositMap & map() { return *hDeps_; }
43  private:
46  double deltaR_;
48  double weight_;
49 
53  reco::isodeposit::EventDependentAbsVetos evdepVetos_; // note: these are a subset of the above. Don't delete twice!
57 
58  bool isNumber(const std::string &str) const ;
59  double toNumber(const std::string &str) const ;
60  };
61  // datamembers
62  std::vector<SingleDeposit> sources_;
63 
64 
65 
66 };
67 #endif
std::vector< SingleDeposit > sources_
double compute(const reco::CandidateBaseRef &cand)
StringObjectFunction< reco::Candidate > weightExpr_
SingleDeposit(const edm::ParameterSet &, edm::ConsumesCollector &&iC)
virtual ~PFCandIsolatorFromDeposits()
destructor
std::vector< EventDependentAbsVeto * > EventDependentAbsVetos
Definition: Event.h:16
virtual void produce(edm::Event &, const edm::EventSetup &)
build deposits
int iEvent
Definition: GenABIO.cc:230
reco::isodeposit::EventDependentAbsVetos evdepVetos_
edm::Handle< reco::IsoDepositMap > hDeps_
edm::EDGetTokenT< reco::IsoDepositMap > srcToken_
bool isNumber(const std::string &str) const
PFCandIsolatorFromDeposits(const edm::ParameterSet &)
constructor with config
void open(const edm::Event &iEvent, const edm::EventSetup &iSetup)
std::vector< AbsVeto * > AbsVetos
Definition: IsoDeposit.h:40
double toNumber(const std::string &str) const
edm::ValueMap< double > CandDoubleMap