CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EventDependentAbsVetos.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_IsolationAlgos_EventDependentAbsVetos_h
2 #define PhysicsTools_IsolationAlgos_EventDependentAbsVetos_h
3 
6 
7 namespace reco {
8  namespace isodeposit {
10  public:
12  OtherCandidatesDeltaRVeto(const edm::InputTag candidates, double deltaR) :
13  src_(candidates), deltaR2_(deltaR*deltaR) { }
14 
15  // Virtual destructor (should always be there)
17 
20  virtual bool veto(double eta, double phi, float value) const ;
21 
23  virtual void centerOn(double eta, double phi) { }
24 
26  virtual void setEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup) ;
27 
28  private:
30  float deltaR2_;
31  std::vector<Direction> items_;
32  };
33 
35  public:
37  OtherCandVeto(const edm::InputTag candidates, AbsVeto *veto) :
38  src_(candidates), veto_(veto) { }
39 
40  // Virtual destructor (should always be there)
41  virtual ~OtherCandVeto() {}
42 
45  virtual bool veto(double eta, double phi, float value) const ;
46 
48  virtual void centerOn(double eta, double phi) { }
49 
51  virtual void setEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup) ;
52 
53  private:
55  std::vector<Direction> items_;
56  std::auto_ptr<AbsVeto> veto_;
57  };
58  }
59 }
60 #endif
virtual void centerOn(double eta, double phi)
Nothing to do for this.
virtual bool veto(double eta, double phi, float value) const
virtual bool veto(double eta, double phi, float value) const
OtherCandidatesDeltaRVeto(const edm::InputTag candidates, double deltaR)
Create a veto specifying the input collection of the candidates, and the deltaR.
T eta() const
double deltaR(double eta1, double phi1, double eta2, double phi2)
Definition: deltaR.h:19
int iEvent
Definition: GenABIO.cc:243
virtual void centerOn(double eta, double phi)
Nothing to do for this.
virtual void setEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
Picks up the directions of the given candidates.
OtherCandVeto(const edm::InputTag candidates, AbsVeto *veto)
Create a veto specifying the input collection of the candidates, and the deltaR.
virtual void setEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
Picks up the directions of the given candidates.
Definition: DDAxes.h:10