CMS 3D CMS Logo

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 // system include files
23 #include <memory>
24 
25 // user include files
26 
31 
33 
37 
47 
51 
52 #include "TF1.h"
53 #include "TMath.h"
54 
55 //
56 // class declaration
57 //
58 
59 namespace pat {
61  public:
62  explicit PATMHTProducer(const edm::ParameterSet&);
63  ~PATMHTProducer() override;
64 
65  private:
66  void produce(edm::Event&, const edm::EventSetup&) override;
67 
68  double getJets(edm::Event&, const edm::EventSetup&);
69  double getElectrons(edm::Event&, const edm::EventSetup&);
70  double getMuons(edm::Event&, const edm::EventSetup&);
71  void getTowers(edm::Event&, const edm::EventSetup&);
72 
73  // ----------member data ---------------------------
74 
75  double verbose_;
76 
77  // input tags.
84 
85  std::vector<metsig::SigInputObj> physobjvector_;
86 
87  double uncertaintyScaleFactor_; // scale factor for the uncertainty parameters.
88  bool controlledUncertainty_; // use controlled uncertainty parameters.
89 
90  //--- test the uncertainty parameters ---//
91 
93  public:
94  std::unique_ptr<TF1> etUncertainty;
95  std::unique_ptr<TF1> phiUncertainty;
96  };
97 
98  void setUncertaintyParameters(); // fills the following uncertaintyFunctions objects:
105 
111 
112  //--- tags and parameters ---//
113 
115  bool useJets_;
117  bool useMuons_;
118  std::set<CaloTowerDetId> s_clusteredTowers;
119 
120  bool noHF_;
121 
122  double jetPtMin_;
123  double jetEtaMax_;
125 
126  double elePtMin_;
127  double eleEtaMax_;
128 
129  double muonPtMin_;
130  double muonEtaMax_;
134  double muonDPtMax_;
136 
137  // double uncertaintyScaleFactor_; // scale factor for the uncertainty parameters.
138 
142 
146 
149 
152 
161 
162  //--- For Muon Calo Deposits ---//
163  //TrackDetectorAssociator trackAssociator_;
164  //TrackAssociatorParameters trackAssociatorParameters_;
165 
167  bool useHO_;
168  };
169  //define this as a plug-in
170 
171 } // namespace pat
172 
173 #endif
pat::PATMHTProducer::muonTrackD0Max_
double muonTrackD0Max_
Definition: PATMHTProducer.h:131
pat::PATMHTProducer::hcalHFUncertainty
uncertaintyFunctions hcalHFUncertainty
Definition: PATMHTProducer.h:104
pat::PATMHTProducer::eleToken_
edm::EDGetTokenT< edm::View< pat::Electron > > eleToken_
Definition: PATMHTProducer.h:80
pat::PATMHTProducer::controlledUncertainty_
bool controlledUncertainty_
Definition: PATMHTProducer.h:88
significanceAlgo.h
pat::PATMHTProducer::CorJetAlgorithmTag_
edm::InputTag CorJetAlgorithmTag_
Definition: PATMHTProducer.h:154
pat::PATMHTProducer
Definition: PATMHTProducer.h:60
pat::PATMHTProducer::getMuons
double getMuons(edm::Event &, const edm::EventSetup &)
Definition: PATMHTProducer.cc:281
pat::PATMHTProducer::useJets_
bool useJets_
Definition: PATMHTProducer.h:115
MessageLogger.h
pat::PATMHTProducer::jetToken_
edm::EDGetTokenT< edm::View< pat::Jet > > jetToken_
Definition: PATMHTProducer.h:79
pat::PATMHTProducer::muonPtMin_
double muonPtMin_
Definition: PATMHTProducer.h:129
pat::PATMHTProducer::muonUncertainty
uncertaintyFunctions muonUncertainty
Definition: PATMHTProducer.h:109
pat::PATMHTProducer::muonCorrUncertainty
uncertaintyFunctions muonCorrUncertainty
Definition: PATMHTProducer.h:110
edm::EDGetTokenT
Definition: EDGetToken.h:33
pat::PATMHTProducer::jetEtUncertaintyParameter0_
double jetEtUncertaintyParameter0_
Definition: PATMHTProducer.h:139
pat::PATMHTProducer::useElectrons_
bool useElectrons_
Definition: PATMHTProducer.h:116
Muon.h
pat::PATMHTProducer::jetUncertainty
uncertaintyFunctions jetUncertainty
Definition: PATMHTProducer.h:106
pat::PATMHTProducer::muonDPtMax_
double muonDPtMax_
Definition: PATMHTProducer.h:134
pat::PATMHTProducer::phoToken_
edm::EDGetTokenT< edm::View< pat::Photon > > phoToken_
Definition: PATMHTProducer.h:83
Photon.h
pat::PATMHTProducer::physobjvector_
std::vector< metsig::SigInputObj > physobjvector_
Definition: PATMHTProducer.h:85
pat::PATMHTProducer::uncertaintyFunctions
Definition: PATMHTProducer.h:92
EDProducer.h
pat::PATMHTProducer::useHO_
bool useHO_
Definition: PATMHTProducer.h:167
pat::PATMHTProducer::jetPhiUncertaintyParameter0_
double jetPhiUncertaintyParameter0_
Definition: PATMHTProducer.h:143
pat::PATMHTProducer::jetPtMin_
double jetPtMin_
Definition: PATMHTProducer.h:122
pat::PATMHTProducer::MuonTag_
edm::InputTag MuonTag_
Definition: PATMHTProducer.h:156
pat::PATMHTProducer::ecalEEUncertainty
uncertaintyFunctions ecalEEUncertainty
Definition: PATMHTProducer.h:100
Tau.h
pat::PATMHTProducer::towerEtThreshold_
double towerEtThreshold_
Definition: PATMHTProducer.h:166
pat::PATMHTProducer::jetEtUncertaintyParameter1_
double jetEtUncertaintyParameter1_
Definition: PATMHTProducer.h:140
pat::PATMHTProducer::elePhiUncertaintyParameter0_
double elePhiUncertaintyParameter0_
Definition: PATMHTProducer.h:148
FileInPath.h
SignAlgoResolutions.h
pat::PATMHTProducer::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: PATMHTProducer.cc:56
MakerMacros.h
pat::PATMHTProducer::mhtLabel_
edm::InputTag mhtLabel_
Definition: PATMHTProducer.h:78
SigInputObj.h
pat::PATMHTProducer::~PATMHTProducer
~PATMHTProducer() override
Definition: PATMHTProducer.cc:54
pat::PATMHTProducer::uncertaintyFunctions::phiUncertainty
std::unique_ptr< TF1 > phiUncertainty
Definition: PATMHTProducer.h:95
pat::PATMHTProducer::jetPhiUncertaintyParameter2_
double jetPhiUncertaintyParameter2_
Definition: PATMHTProducer.h:145
pat::PATMHTProducer::eleUncertainty
uncertaintyFunctions eleUncertainty
Definition: PATMHTProducer.h:108
pat::PATMHTProducer::ElectronTag_
edm::InputTag ElectronTag_
Definition: PATMHTProducer.h:157
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
pat::PATMHTProducer::getElectrons
double getElectrons(edm::Event &, const edm::EventSetup &)
Definition: PATMHTProducer.cc:197
pat::PATMHTProducer::jetEtaMax_
double jetEtaMax_
Definition: PATMHTProducer.h:123
pat::PATMHTProducer::CaloJetAlgorithmTag_
edm::InputTag CaloJetAlgorithmTag_
Definition: PATMHTProducer.h:153
pat::PATMHTProducer::verbose_
double verbose_
Definition: PATMHTProducer.h:75
pat::PATMHTProducer::muoToken_
edm::EDGetTokenT< edm::View< pat::Muon > > muoToken_
Definition: PATMHTProducer.h:81
edm::ParameterSet
Definition: ParameterSet.h:47
pat::PATMHTProducer::elePtMin_
double elePtMin_
Definition: PATMHTProducer.h:126
pat::PATMHTProducer::getJets
double getJets(edm::Event &, const edm::EventSetup &)
Definition: PATMHTProducer.cc:117
Event.h
pat::PATMHTProducer::hcalHEUncertainty
uncertaintyFunctions hcalHEUncertainty
Definition: PATMHTProducer.h:102
pat::PATMHTProducer::useMuons_
bool useMuons_
Definition: PATMHTProducer.h:117
pat::PATMHTProducer::metCollectionLabel_
std::string metCollectionLabel_
Definition: PATMHTProducer.h:159
pat::PATMHTProducer::tauToken_
edm::EDGetTokenT< edm::View< pat::Tau > > tauToken_
Definition: PATMHTProducer.h:82
pat::PATMHTProducer::significanceLabel_
std::string significanceLabel_
Definition: PATMHTProducer.h:160
pat::PATMHTProducer::useCaloTowers_
bool useCaloTowers_
Definition: PATMHTProducer.h:114
LorentzVector.h
pat::PATMHTProducer::eleEtUncertaintyParameter0_
double eleEtUncertaintyParameter0_
Definition: PATMHTProducer.h:147
pat::PATMHTProducer::s_clusteredTowers
std::set< CaloTowerDetId > s_clusteredTowers
Definition: PATMHTProducer.h:118
pat::PATMHTProducer::CaloTowerTag_
edm::InputTag CaloTowerTag_
Definition: PATMHTProducer.h:158
pat::PATMHTProducer::JetCorrectionService_
std::string JetCorrectionService_
Definition: PATMHTProducer.h:155
edm::stream::EDProducer
Definition: EDProducer.h:38
pat::PATMHTProducer::uncertaintyFunctions::etUncertainty
std::unique_ptr< TF1 > etUncertainty
Definition: PATMHTProducer.h:94
edm::EventSetup
Definition: EventSetup.h:58
pat
Definition: HeavyIon.h:7
Jet.h
InputTag.h
pat::PATMHTProducer::hcalHBUncertainty
uncertaintyFunctions hcalHBUncertainty
Definition: PATMHTProducer.h:101
pat::PATMHTProducer::jetEtUncertaintyParameter2_
double jetEtUncertaintyParameter2_
Definition: PATMHTProducer.h:141
pat::PATMHTProducer::getTowers
void getTowers(edm::Event &, const edm::EventSetup &)
pat::PATMHTProducer::jetCorrUncertainty
uncertaintyFunctions jetCorrUncertainty
Definition: PATMHTProducer.h:107
pat::PATMHTProducer::muonChiSqMax_
double muonChiSqMax_
Definition: PATMHTProducer.h:135
Frameworkfwd.h
pat::PATMHTProducer::ecalEBUncertainty
uncertaintyFunctions ecalEBUncertainty
Definition: PATMHTProducer.h:99
pat::PATMHTProducer::muonTrackDzMax_
double muonTrackDzMax_
Definition: PATMHTProducer.h:132
pat::PATMHTProducer::hcalHOUncertainty
uncertaintyFunctions hcalHOUncertainty
Definition: PATMHTProducer.h:103
MHT.h
pat::PATMHTProducer::PATMHTProducer
PATMHTProducer(const edm::ParameterSet &)
Definition: PATMHTProducer.cc:8
Electron.h
pat::PATMHTProducer::muonNHitsMin_
int muonNHitsMin_
Definition: PATMHTProducer.h:133
Candidate.h
pat::PATMHTProducer::setUncertaintyParameters
void setUncertaintyParameters()
Definition: PATMHTProducer.cc:338
pat::PATMHTProducer::jetEMfracMax_
double jetEMfracMax_
Definition: PATMHTProducer.h:124
pat::PATMHTProducer::jetPhiUncertaintyParameter1_
double jetPhiUncertaintyParameter1_
Definition: PATMHTProducer.h:144
View.h
ParameterSet.h
pat::PATMHTProducer::muonPhiUncertaintyParameter0_
double muonPhiUncertaintyParameter0_
Definition: PATMHTProducer.h:151
edm::Event
Definition: Event.h:73
pat::PATMHTProducer::muonEtaMax_
double muonEtaMax_
Definition: PATMHTProducer.h:130
edm::InputTag
Definition: InputTag.h:15
pat::PATMHTProducer::eleEtaMax_
double eleEtaMax_
Definition: PATMHTProducer.h:127
pat::PATMHTProducer::noHF_
bool noHF_
Definition: PATMHTProducer.h:120
pat::PATMHTProducer::muonEtUncertaintyParameter0_
double muonEtUncertaintyParameter0_
Definition: PATMHTProducer.h:150
pat::PATMHTProducer::uncertaintyScaleFactor_
double uncertaintyScaleFactor_
Definition: PATMHTProducer.h:87