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 
6 
12 
16 
17 #include <string>
18 
19 namespace edm { class Event; }
20 namespace edm { class EventSetup; }
21 
23 
24 public:
26 
29 
31 
32  virtual void produce(edm::Event&, const edm::EventSetup&);
33 
34 private:
35  class SingleDeposit {
36  public:
38  void cleanup() ;
39  void open(const edm::Event &iEvent, const edm::EventSetup &iSetup) ;
40  double compute(const reco::CandidateBaseRef &cand) ;
41  const reco::IsoDepositMap & map() { return *hDeps_; }
42  private:
45  double deltaR_;
47  double weight_;
48 
52  reco::isodeposit::EventDependentAbsVetos evdepVetos_; // note: these are a subset of the above. Don't delete twice!
56 
57  bool isNumber(const std::string &str) const ;
58  double toNumber(const std::string &str) const ;
59  };
60  // datamembers
61  std::vector<SingleDeposit> sources_;
62 
63 
64 
65 };
66 #endif
std::vector< SingleDeposit > sources_
double compute(const reco::CandidateBaseRef &cand)
StringObjectFunction< reco::Candidate > weightExpr_
virtual ~PFCandIsolatorFromDeposits()
destructor
std::vector< EventDependentAbsVeto * > EventDependentAbsVetos
virtual void produce(edm::Event &, const edm::EventSetup &)
build deposits
int iEvent
Definition: GenABIO.cc:243
reco::isodeposit::EventDependentAbsVetos evdepVetos_
edm::Handle< reco::IsoDepositMap > hDeps_
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:39
double toNumber(const std::string &str) const
edm::ValueMap< double > CandDoubleMap