test
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 //
17 //
18 
19 #ifndef PhysicsTools_PatAlgos_PATMHTProducer_h
20 #define PhysicsTools_PatAlgos_PATMHTProducer_h
21 
22 
23 
24 // system include files
25 #include <memory>
26 
27 // user include files
28 
33 
35 
39 
40 
50 
51 
55 
56 #include "TF1.h"
57 #include "TMath.h"
58 
59 //
60 // class declaration
61 //
62 
63 namespace pat {
65  public:
66  explicit PATMHTProducer(const edm::ParameterSet&);
68 
69  private:
70  virtual void beginJob() ;
71  virtual void produce(edm::Event&, const edm::EventSetup&) override;
72  virtual void endJob() ;
73 
74  double getJets(edm::Event&, const edm::EventSetup&);
75  double getElectrons(edm::Event&, const edm::EventSetup&);
76  double getMuons(edm::Event&, const edm::EventSetup&);
77  void getTowers(edm::Event&, const edm::EventSetup&);
78 
79 
80  // ----------member data ---------------------------
81 
82  double verbose_;
83 
84  // input tags.
91 
92  std::vector<metsig::SigInputObj> physobjvector_ ;
93 
94  double uncertaintyScaleFactor_; // scale factor for the uncertainty parameters.
95  bool controlledUncertainty_; // use controlled uncertainty parameters.
96 
97 
98  //--- test the uncertainty parameters ---//
99 
101  public:
104  };
105 
106  void setUncertaintyParameters();// fills the following uncertaintyFunctions objects:
113 
119 
120  //--- tags and parameters ---//
121 
123  bool useJets_;
125  bool useMuons_;
126  std::set<CaloTowerDetId> s_clusteredTowers;
127 
128  bool noHF_;
129 
130  double jetPtMin_;
131  double jetEtaMax_;
133 
134  double elePtMin_;
135  double eleEtaMax_;
136 
137  double muonPtMin_;
138  double muonEtaMax_;
142  double muonDPtMax_;
144 
145  // double uncertaintyScaleFactor_; // scale factor for the uncertainty parameters.
146 
150 
154 
157 
160 
169 
170  //--- For Muon Calo Deposits ---//
171  //TrackDetectorAssociator trackAssociator_;
172  //TrackAssociatorParameters trackAssociatorParameters_;
173 
175  bool useHO_ ;
176 
177 
178  };
179  //define this as a plug-in
180 
181 } //end of namespace
182 
183 #endif
edm::EDGetTokenT< edm::View< pat::Photon > > phoToken_
double eleEtUncertaintyParameter0_
uncertaintyFunctions hcalHEUncertainty
edm::InputTag CorJetAlgorithmTag_
double getJets(edm::Event &, const edm::EventSetup &)
double muonPhiUncertaintyParameter0_
edm::EDGetTokenT< edm::View< pat::Muon > > muoToken_
uncertaintyFunctions muonUncertainty
uncertaintyFunctions ecalEEUncertainty
uncertaintyFunctions jetUncertainty
double jetEtUncertaintyParameter1_
double elePhiUncertaintyParameter0_
double jetEtUncertaintyParameter2_
double jetPhiUncertaintyParameter2_
uncertaintyFunctions hcalHBUncertainty
double getMuons(edm::Event &, const edm::EventSetup &)
edm::InputTag mhtLabel_
edm::EDGetTokenT< edm::View< pat::Tau > > tauToken_
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 &)
edm::EDGetTokenT< edm::View< pat::Electron > > eleToken_
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::EDGetTokenT< edm::View< pat::Jet > > jetToken_
virtual void beginJob()
uncertaintyFunctions jetCorrUncertainty
uncertaintyFunctions ecalEBUncertainty
double jetEtUncertaintyParameter0_
uncertaintyFunctions hcalHOUncertainty
uncertaintyFunctions eleUncertainty
std::set< CaloTowerDetId > s_clusteredTowers