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 
60  public:
62  OtherJetConstituentsDeltaRVeto(Direction dir, const edm::InputTag& jets, double dRjet, const edm::InputTag& pfCandAssocMap, double dRconstituent)
63  : evt_(0),
64  vetoDir_(dir),
65  srcJets_(jets),
66  dR2jet_(dRjet*dRjet),
67  srcPFCandAssocMap_(pfCandAssocMap),
68  dR2constituent_(dRconstituent*dRconstituent)
69  {
70  //std::cout << "<OtherJetConstituentsDeltaRVeto::OtherJetConstituentsDeltaRVeto>:" << std::endl;
71  //std::cout << " vetoDir: eta = " << vetoDir_.eta() << ", phi = " << vetoDir_.phi() << std::endl;
72  //std::cout << " srcJets = " << srcJets_.label() << ":" << srcJets_.instance() << std::endl;
73  //std::cout << " dRjet = " << sqrt(dR2jet_) << std::endl;
74  //std::cout << " srcPFCandAssocMap = " << srcPFCandAssocMap_.label() << ":" << srcPFCandAssocMap_.instance() << std::endl;
75  //std::cout << " dRconstituent = " << sqrt(dR2constituent_) << std::endl;
76  }
77 
78  // Virtual destructor (should always be there)
80 
83  virtual bool veto(double eta, double phi, float value) const;
84 
86  virtual void centerOn(double eta, double phi);
87 
89  virtual void setEvent(const edm::Event& evt, const edm::EventSetup& es);
90 
91  private:
92  void initialize();
93 
94  const edm::Event* evt_;
95 
98  double dR2jet_;
101  std::vector<Direction> items_;
102  };
103  }
104 }
105 #endif
virtual void centerOn(double eta, double phi)
Nothing to do for this.
virtual void setEvent(const edm::Event &evt, const edm::EventSetup &es)
Picks up the directions of the given candidates.
virtual bool veto(double eta, double phi, float value) const
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
virtual void centerOn(double eta, double phi)
Set axis for matching jets.
double deltaR(double eta1, double phi1, double eta2, double phi2)
Definition: deltaR.h:19
int iEvent
Definition: GenABIO.cc:243
vector< PseudoJet > jets
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.
OtherJetConstituentsDeltaRVeto(Direction dir, const edm::InputTag &jets, double dRjet, const edm::InputTag &pfCandAssocMap, double dRconstituent)
Create a veto specifying the input collection of the jets, the candidates, and the deltaR...
dbl *** dir
Definition: mlp_gen.cc:35
Definition: DDAxes.h:10