CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
WPlusJetsEventSelector.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_PatExamples_interface_WPlusJetsEventSelector_h
2 #define PhysicsTools_PatExamples_interface_WPlusJetsEventSelector_h
3 
18 
20  public:
22  WPlusJetsEventSelector( edm::ParameterSet const & params );
23 
24  virtual void scaleJets(double scale) {jetScale_ = scale;}
25 
26  virtual bool operator()( edm::EventBase const & t, pat::strbitset & ret);
28 
29  std::vector<reco::ShallowClonePtrCandidate> const & selectedJets () const { return selectedJets_; }
30  std::vector<reco::ShallowClonePtrCandidate> const & cleanedJets () const { return cleanedJets_; }
31  std::vector<reco::ShallowClonePtrCandidate> const & selectedElectrons() const { return selectedElectrons_;}
32  std::vector<reco::ShallowClonePtrCandidate> const & selectedMuons () const { return selectedMuons_; }
33  reco::ShallowClonePtrCandidate const & selectedMET () const { return met_; }
34 
35  void printSelectors(std::ostream & out) const {
36  out << "PV Selector: " << std::endl;
37  pvSelector_.print(out);
38  out << "Muon ID Tight Selector: " << std::endl;
39  muonIdTight_.print(out);
40  out << "Electron ID Tight Selector: " << std::endl;
42  out << "Muon ID Loose Selector: " << std::endl;
43  muonIdLoose_.print(out);
44  out << "Electron ID Loose Selector: " << std::endl;
46  out << "Calo Jet Selector: " << std::endl;
47  jetIdLoose_.print(out);
48  out << "PF Jet Selector: " << std::endl;
49  pfjetIdLoose_.print(out);
50  }
51 
52  protected:
53 
59 
60  std::string muTrig_;
61  std::string eleTrig_;
62 
63  std::vector<reco::ShallowClonePtrCandidate> selectedJets_;
64  std::vector<reco::ShallowClonePtrCandidate> selectedMuons_;
65  std::vector<reco::ShallowClonePtrCandidate> selectedElectrons_;
66  std::vector<reco::ShallowClonePtrCandidate> looseMuons_;
67  std::vector<reco::ShallowClonePtrCandidate> looseElectrons_;
68  std::vector<reco::ShallowClonePtrCandidate> selectedMETs_;
69  std::vector<reco::ShallowClonePtrCandidate> cleanedJets_;
70  std::vector<reco::ShallowClonePtrCandidate> selectedElectrons2_;
72 
80 
81  int minJets_;
82 
83  double muJetDR_;
84  double eleJetDR_;
85 
87  bool ePlusJets_;
88 
89  double muPtMin_ ;
90  double muEtaMax_ ;
91  double eleEtMin_ ;
92  double eleEtaMax_;
93 
94  double muPtMinLoose_ ;
95  double muEtaMaxLoose_ ;
96  double eleEtMinLoose_ ;
98 
99  double jetPtMin_ ;
100  double jetEtaMax_;
101 
102  double jetScale_;
103 
104  double metMin_;
105 
106  index_type inclusiveIndex_;
107  index_type triggerIndex_;
108  index_type pvIndex_;
109  index_type lep1Index_;
110  index_type lep2Index_;
111  index_type lep3Index_;
112  index_type lep4Index_;
113  index_type metIndex_;
114  index_type zvetoIndex_;
115  index_type conversionIndex_;
116  index_type cosmicIndex_;
117  index_type jet1Index_;
118  index_type jet2Index_;
119  index_type jet3Index_;
120  index_type jet4Index_;
121  index_type jet5Index_;
122 
123 };
124 
125 
126 #endif
std::vector< reco::ShallowClonePtrCandidate > selectedElectrons_
ElectronVPlusJetsIDSelectionFunctor electronIdLoose_
ElectronVPlusJetsIDSelectionFunctor electronIdTight_
PFJetIDSelectionFunctor pfjetIdLoose_
reco::ShallowClonePtrCandidate met_
std::vector< reco::ShallowClonePtrCandidate > const & cleanedJets() const
JetIDSelectionFunctor jetIdLoose_
void printSelectors(std::ostream &out) const
std::vector< reco::ShallowClonePtrCandidate > selectedElectrons2_
std::vector< reco::ShallowClonePtrCandidate > selectedJets_
std::vector< reco::ShallowClonePtrCandidate > const & selectedMuons() const
std::vector< reco::ShallowClonePtrCandidate > selectedMuons_
PF Jet selector for pat::Jets.
tuple out
Definition: dbtoconf.py:99
Jet selector for pat::Jets and for CaloJets.
void print(std::ostream &out) const
Print the cut flow.
Definition: Selector.h:234
virtual bool operator()(edm::EventBase const &t, pat::strbitset &ret)
A selector of events.
Definition: EventSelector.h:15
std::vector< reco::ShallowClonePtrCandidate > looseElectrons_
reco::ShallowClonePtrCandidate const & selectedMET() const
virtual void scaleJets(double scale)
std::vector< reco::ShallowClonePtrCandidate > selectedMETs_
std::vector< reco::ShallowClonePtrCandidate > cleanedJets_
std::vector< reco::ShallowClonePtrCandidate > const & selectedJets() const
MuonVPlusJetsIDSelectionFunctor muonIdLoose_
std::vector< reco::ShallowClonePtrCandidate > const & selectedElectrons() const
MuonVPlusJetsIDSelectionFunctor muonIdTight_
std::vector< reco::ShallowClonePtrCandidate > looseMuons_