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.5 2010/02/20 21:00:24 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 
58 #include "TF1.h"
59 #include "TMath.h"
60 
61 //
62 // class declaration
63 //
64 
65 namespace pat {
67  public:
68  explicit PATMHTProducer(const edm::ParameterSet&);
70 
71  private:
72  virtual void beginJob() ;
73  virtual void beginRun(const edm::EventSetup&) ;
74  virtual void produce(edm::Event&, const edm::EventSetup&);
75  virtual void endJob() ;
76 
77  double getJets(edm::Event&, const edm::EventSetup&);
78  double getElectrons(edm::Event&, const edm::EventSetup&);
79  double getMuons(edm::Event&, const edm::EventSetup&);
80  void getTowers(edm::Event&, const edm::EventSetup&);
81 
82 
83  // ----------member data ---------------------------
84 
85  double verbose_;
86 
87  // input tags.
94 
95  std::vector<metsig::SigInputObj> physobjvector_ ;
96 
97  double uncertaintyScaleFactor_; // scale factor for the uncertainty parameters.
98  bool controlledUncertainty_; // use controlled uncertainty parameters.
99 
100 
101  //--- test the uncertainty parameters ---//
102 
104  public:
107  };
108 
109  void setUncertaintyParameters();// fills the following uncertaintyFunctions objects:
116 
122 
123  //--- tags and parameters ---//
124 
126  bool useJets_;
128  bool useMuons_;
129  std::set<CaloTowerDetId> s_clusteredTowers;
130 
131  bool noHF_;
132 
133  double jetPtMin_;
134  double jetEtaMax_;
136 
137  double elePtMin_;
138  double eleEtaMax_;
139 
140  double muonPtMin_;
141  double muonEtaMax_;
145  double muonDPtMax_;
147 
148  // double uncertaintyScaleFactor_; // scale factor for the uncertainty parameters.
149 
153 
157 
160 
163 
170  std::string metCollectionLabel_;
171  std::string significanceLabel_;
172 
173  //--- For Muon Calo Deposits ---//
174  //TrackDetectorAssociator trackAssociator_;
175  //TrackAssociatorParameters trackAssociatorParameters_;
176 
178  bool useHO_ ;
179 
180 
181  };
182  //define this as a plug-in
183 
184 } //end of namespace
185 
186 #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 &)
virtual void produce(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_
double jetPhiUncertaintyParameter0_
virtual void endJob()
edm::InputTag tauLabel_
virtual void beginJob()
uncertaintyFunctions jetCorrUncertainty
uncertaintyFunctions ecalEBUncertainty
double jetEtUncertaintyParameter0_
uncertaintyFunctions hcalHOUncertainty
virtual void beginRun(const edm::EventSetup &)
edm::InputTag muoLabel_
uncertaintyFunctions eleUncertainty
edm::InputTag phoLabel_
std::set< CaloTowerDetId > s_clusteredTowers