CMS 3D CMS Logo

gentop.h
Go to the documentation of this file.
1 //
2 //
3 // File: hitfit/gentop.h
4 // Purpose: Toy ttbar event generator for testing.
5 // Created: Jul, 2000, sss.
6 //
7 // This is a very simple event generator for ttbar events, to allow some
8 // basic tests of the mass fitting code. We generate random ttbars,
9 // with kinematics pulled out of a hat, and then decay them into l+jets
10 // events. No radiation or other such luxuries, and, as mentioned, any
11 // kinematic distribuions will certainly be wrong. But the generated
12 // events should satisfy the l+jets mass constraints.
13 //
14 // CMSSW File : interface/gentop.h
15 // Original Author : Scott Stuart Snyder <snyder@bnl.gov> for D0
16 // Imported to CMSSW by Haryo Sumowidagdo <Suharyo.Sumowidagdo@cern.ch>
17 //
18 
54 #include <string>
55 #include <iosfwd>
56 
57 #include "CLHEP/Random/Random.h"
58 
59 namespace hitfit {
60 
61  class Defaults;
62  class Lepjets_Event;
63 
70  //
71  // Hold on to parameters for the toy event generator.
72  // float mt - Generated top mass.
73  // float sigma_mt - Width of top mass distribution.
74  //
75  // float mh - Generated Higgs mass.
76  // float sigma_mh - Width of Higgs mass distribution.
77  //
78  // float mw - Generated W mass.
79  // float sigma_mw - Width of W mass distribution.
80  //
81  // float mb - Generated b mass.
82  // float sigma_mb - Width of b mass distribution.
83  //
84  // float t_pt_mean - Mean pt of the generated top quarks.
85  // (It will be drawn from an exponential distribution.)
86  // float recoil_pt_mean-Mean pt of ttbar system.
87  // (It will be drawn from an exponential distribution.)
88  // float boost_sigma - Width of z-boost of ttbar system.
89  // float m_boost - Mass of z-boost of ttbar system.
90  // float sxv_tageff - Assumed efficiency of SVX b-tag.
91  // bool smear - If true, smear the event.
92  // bool smear_dir - If false, smear only energies, not directions.
93  // bool muon - If false, decay leptonic ts into electrons.
94  // Otherwise, decay into muons.
95  // string ele_res_str - Electron resolution, for Vector_Resolution.
96  // string muo_res_str - Muon resolution, for Vector_Resolution.
97  // string jet_res_str - Jet resolution, for Vector_Resolution.
98  // string kt_res_str - Kt resolution, for Resolution.
99  //
100  {
101  public:
102  // Constructor. Initialize from a Defaults object.
131  Gentop_Args(const Defaults& defs);
132 
133  // Retrieve parameter values.
134 
138  double t_pt_mean() const;
139 
143  double mt() const;
144 
148  double sigma_mt() const;
149 
153  double mh() const;
154 
158  double sigma_mh() const;
159 
163  double recoil_pt_mean() const;
164 
168  double boost_sigma() const;
169 
173  double m_boost() const;
174 
178  double mb() const;
179 
183  double sigma_mb() const;
184 
188  double mw() const;
189 
193  double sigma_mw() const;
194 
198  double svx_tageff() const;
199 
203  bool smear() const;
204 
208  bool smear_dir() const;
209 
213  bool muon() const;
214 
218  std::string ele_res_str() const;
219 
223  std::string muo_res_str() const;
224 
228  std::string jet_res_str() const;
229 
233  std::string kt_res_str() const;
234 
235  private:
236  // Hold on to parameter values.
237 
242  double _t_pt_mean;
243 
247  double _mt;
248 
252  double _sigma_mt;
253 
257  double _mh;
258 
262  double _sigma_mh;
263 
269 
273  double _boost_sigma;
274 
278  double _m_boost;
279 
283  double _mb;
284 
288  double _sigma_mb;
289 
293  double _mw;
294 
298  double _sigma_mw;
299 
304  double _svx_tageff;
305 
310  bool _smear;
311 
317 
322  bool _muon;
323 
328 
333 
338 
344  };
345 
346  // Generate a ttbar -> ljets event.
354  Lepjets_Event gentop(const Gentop_Args& args, CLHEP::HepRandomEngine& engine);
355 
356  // Generate a ttH -> ljets+bb event.
365  Lepjets_Event gentth(const Gentop_Args& args, CLHEP::HepRandomEngine& engine);
366 
367 } // namespace hitfit
writedatasetfile.args
args
Definition: writedatasetfile.py:18
hitfit::Gentop_Args::muon
bool muon() const
Return the value of muon parameter.
Definition: gentop.cc:164
hitfit::Gentop_Args::ele_res_str
std::string ele_res_str() const
Return the value of ele_res_str parameter.
Definition: gentop.cc:236
hitfit
Definition: Base_Constrainer.h:43
hitfit::Gentop_Args::_kt_res_str
std::string _kt_res_str
Definition: gentop.h:343
hitfit::Gentop_Args::kt_res_str
std::string kt_res_str() const
Return the value of kt_res_str parameter.
Definition: gentop.cc:263
hitfit::Gentop_Args::sigma_mt
double sigma_mt() const
Return the value of sigma_mt parameter.
Definition: gentop.cc:110
hitfit::gentop
Lepjets_Event gentop(const Gentop_Args &args, CLHEP::HepRandomEngine &engine)
Generate a event.
Definition: gentop.cc:513
hitfit::Gentop_Args::_t_pt_mean
double _t_pt_mean
Definition: gentop.h:242
hitfit::Gentop_Args::_sigma_mh
double _sigma_mh
Definition: gentop.h:262
hitfit::Gentop_Args::boost_sigma
double boost_sigma() const
Return the value of boost_sigma parameter.
Definition: gentop.cc:182
hitfit::Gentop_Args
Hold on to parameters for the toy event generator.
Definition: gentop.h:69
hitfit::Gentop_Args::mh
double mh() const
Return the value of mh parameter.
Definition: gentop.cc:128
hitfit::Gentop_Args::_muon
bool _muon
Definition: gentop.h:322
hitfit::Gentop_Args::_smear
bool _smear
Definition: gentop.h:310
hitfit::Gentop_Args::smear
bool smear() const
Return the value of smear parameter.
Definition: gentop.cc:146
hitfit::Gentop_Args::_sigma_mw
double _sigma_mw
Definition: gentop.h:298
hitfit::Gentop_Args::jet_res_str
std::string jet_res_str() const
Return the value of jet_res_str parameter.
Definition: gentop.cc:254
hitfit::gentth
Lepjets_Event gentth(const Gentop_Args &args, CLHEP::HepRandomEngine &engine)
Generate a event.
Definition: gentop.cc:587
hitfit::Gentop_Args::m_boost
double m_boost() const
Return the value of m_boost parameter.
Definition: gentop.cc:191
hitfit::Gentop_Args::_recoil_pt_mean
double _recoil_pt_mean
Definition: gentop.h:268
hitfit::Gentop_Args::recoil_pt_mean
double recoil_pt_mean() const
Return the value of recoil_pt_mean parameter.
Definition: gentop.cc:173
hitfit::Lepjets_Event
Represent a simple event consisting of lepton(s) and jet(s). An instance of this class holds a list o...
Definition: Lepjets_Event.h:62
hitfit::Gentop_Args::mw
double mw() const
Return the value of mw parameter.
Definition: gentop.cc:218
hitfit::Gentop_Args::Gentop_Args
Gentop_Args(const Defaults &defs)
Constructor, initialize an instance of Gentop_Args from an instance of Defaults object.
Definition: gentop.cc:64
hitfit::Gentop_Args::t_pt_mean
double t_pt_mean() const
Return the value of t_pt_mean parameter.
Definition: gentop.cc:92
hitfit::Gentop_Args::_sigma_mb
double _sigma_mb
Definition: gentop.h:288
hitfit::Gentop_Args::_svx_tageff
double _svx_tageff
Definition: gentop.h:304
hitfit::Gentop_Args::_mt
double _mt
Definition: gentop.h:247
hitfit::Gentop_Args::_muo_res_str
std::string _muo_res_str
Definition: gentop.h:332
hitfit::Gentop_Args::_ele_res_str
std::string _ele_res_str
Definition: gentop.h:327
hitfit::Gentop_Args::_sigma_mt
double _sigma_mt
Definition: gentop.h:252
hitfit::Gentop_Args::mt
double mt() const
Return the value of mt parameter.
Definition: gentop.cc:101
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
hitfit::Gentop_Args::sigma_mh
double sigma_mh() const
Return the value of sigma_mh parameter.
Definition: gentop.cc:137
hitfit::Gentop_Args::sigma_mw
double sigma_mw() const
Return the value of sigma_mw parameter.
Definition: gentop.cc:227
hitfit::Gentop_Args::mb
double mb() const
Return the value of mb parameter.
Definition: gentop.cc:200
hitfit::Gentop_Args::_mb
double _mb
Definition: gentop.h:283
hitfit::Gentop_Args::_mw
double _mw
Definition: gentop.h:293
hitfit::Gentop_Args::_boost_sigma
double _boost_sigma
Definition: gentop.h:273
hitfit::Gentop_Args::_jet_res_str
std::string _jet_res_str
Definition: gentop.h:337
hitfit::Gentop_Args::sigma_mb
double sigma_mb() const
Return the value of sigma_mb parameter.
Definition: gentop.cc:209
hitfit::Gentop_Args::_smear_dir
bool _smear_dir
Definition: gentop.h:316
hitfit::Defaults
Define an interface for getting parameter settings.
Definition: Defaults.h:57
hitfit::Gentop_Args::smear_dir
bool smear_dir() const
Return the value of smear_dir parameter.
Definition: gentop.cc:155
hitfit::Gentop_Args::_m_boost
double _m_boost
Definition: gentop.h:278
hitfit::Gentop_Args::svx_tageff
double svx_tageff() const
Return the value of svx_tageff parameter.
Definition: gentop.cc:119
hitfit::Gentop_Args::_mh
double _mh
Definition: gentop.h:257
hitfit::Gentop_Args::muo_res_str
std::string muo_res_str() const
Return the value of muon_res_str parameter.
Definition: gentop.cc:245