CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PATMHTProducer.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: PATMHTProducer
4 // Class: PATMHTProducer
5 //
13 //
14 // Original Author: Xin Shi & Freya Blekman, Cornell University
15 // Created: Fri Sep 12 17:58:29 CEST 2008
16 // $Id: PATMHTProducer.h,v 1.7 2013/02/27 23:26:56 wmtan Exp $
17 //
18 //
19 
20 #ifndef PhysicsTools_PatAlgos_PATMHTProducer_h
21 #define PhysicsTools_PatAlgos_PATMHTProducer_h
22 
23 
24 
25 // system include files
26 #include <memory>
27 
28 // user include files
29 
34 
36 
40 
41 
51 
52 
56 
57 #include "TF1.h"
58 #include "TMath.h"
59 
60 //
61 // class declaration
62 //
63 
64 namespace pat {
66  public:
67  explicit PATMHTProducer(const edm::ParameterSet&);
69 
70  private:
71  virtual void beginJob() ;
72  virtual void produce(edm::Event&, const edm::EventSetup&) override;
73  virtual void endJob() ;
74 
75  double getJets(edm::Event&, const edm::EventSetup&);
76  double getElectrons(edm::Event&, const edm::EventSetup&);
77  double getMuons(edm::Event&, const edm::EventSetup&);
78  void getTowers(edm::Event&, const edm::EventSetup&);
79 
80 
81  // ----------member data ---------------------------
82 
83  double verbose_;
84 
85  // input tags.
92 
93  std::vector<metsig::SigInputObj> physobjvector_ ;
94 
95  double uncertaintyScaleFactor_; // scale factor for the uncertainty parameters.
96  bool controlledUncertainty_; // use controlled uncertainty parameters.
97 
98 
99  //--- test the uncertainty parameters ---//
100 
102  public:
105  };
106 
107  void setUncertaintyParameters();// fills the following uncertaintyFunctions objects:
114 
120 
121  //--- tags and parameters ---//
122 
124  bool useJets_;
126  bool useMuons_;
127  std::set<CaloTowerDetId> s_clusteredTowers;
128 
129  bool noHF_;
130 
131  double jetPtMin_;
132  double jetEtaMax_;
134 
135  double elePtMin_;
136  double eleEtaMax_;
137 
138  double muonPtMin_;
139  double muonEtaMax_;
143  double muonDPtMax_;
145 
146  // double uncertaintyScaleFactor_; // scale factor for the uncertainty parameters.
147 
151 
155 
158 
161 
170 
171  //--- For Muon Calo Deposits ---//
172  //TrackDetectorAssociator trackAssociator_;
173  //TrackAssociatorParameters trackAssociatorParameters_;
174 
176  bool useHO_ ;
177 
178 
179  };
180  //define this as a plug-in
181 
182 } //end of namespace
183 
184 #endif
double eleEtUncertaintyParameter0_
uncertaintyFunctions hcalHEUncertainty
edm::InputTag CorJetAlgorithmTag_
double getJets(edm::Event &, const edm::EventSetup &)
edm::InputTag eleLabel_
double muonPhiUncertaintyParameter0_
uncertaintyFunctions muonUncertainty
uncertaintyFunctions ecalEEUncertainty
uncertaintyFunctions jetUncertainty
double jetEtUncertaintyParameter1_
double elePhiUncertaintyParameter0_
double jetEtUncertaintyParameter2_
edm::InputTag jetLabel_
double jetPhiUncertaintyParameter2_
uncertaintyFunctions hcalHBUncertainty
double getMuons(edm::Event &, const edm::EventSetup &)
edm::InputTag mhtLabel_
double muonEtUncertaintyParameter0_
PATMHTProducer(const edm::ParameterSet &)
std::string metCollectionLabel_
edm::InputTag CaloJetAlgorithmTag_
uncertaintyFunctions muonCorrUncertainty
double getElectrons(edm::Event &, const edm::EventSetup &)
std::string significanceLabel_
uncertaintyFunctions hcalHFUncertainty
std::vector< metsig::SigInputObj > physobjvector_
void getTowers(edm::Event &, const edm::EventSetup &)
std::string JetCorrectionService_
edm::InputTag ElectronTag_
double uncertaintyScaleFactor_
edm::InputTag MuonTag_
edm::InputTag CaloTowerTag_
double jetPhiUncertaintyParameter1_
virtual void produce(edm::Event &, const edm::EventSetup &) override
double jetPhiUncertaintyParameter0_
virtual void endJob()
edm::InputTag tauLabel_
virtual void beginJob()
uncertaintyFunctions jetCorrUncertainty
uncertaintyFunctions ecalEBUncertainty
double jetEtUncertaintyParameter0_
uncertaintyFunctions hcalHOUncertainty
edm::InputTag muoLabel_
uncertaintyFunctions eleUncertainty
edm::InputTag phoLabel_
std::set< CaloTowerDetId > s_clusteredTowers