CMS 3D CMS Logo

Constrained_Z.h
Go to the documentation of this file.
1 //
2 //
3 // File: Constrained_Z.h
4 // Purpose: Do kinematic fitting for a (Z->ll)+jets event.
5 // Created: Apr, 2004, sss
6 //
7 // CMSSW File : interface/Constrained_Z.h
8 // Original Author : Scott Stuart Snyder <snyder@bnl.gov> for D0
9 // Imported to CMSSW by Haryo Sumowidagdo <Suharyo.Sumowidagdo@cern.ch>
10 
33 #ifndef HITFIT_CONSTRAINED_Z_H
34 #define HITFIT_CONSTRAINED_Z_H
35 
38 #include <iosfwd>
39 
40 namespace hitfit {
41 
42  class Defaults;
43  class Lepjets_Event;
44 
50  //
51  // Purpose: Hold on to parameters for the Constrained_Z class.
52  //
53  // Parameters controlling the operation of the fitter:
54  // float zmass - The mass to which the Z should be fixed.
55  //
56  {
57  public:
58  // Constructor. Initialize from a Defaults object.
67  Constrained_Z_Args(const Defaults& defs);
68 
69  // Retrieve parameter values.
73  double zmass() const;
74 
75  // Arguments for subobjects.
80 
81  private:
82  // Hold on to parameter values.
86  double _zmass;
87 
93  };
94 
95  //*************************************************************************
96 
103  //
104  // Purpose: Do kinematic fitting for a (Z->ll)+jets event.
105  //
106  {
107  public:
108  // Constructor.
115 
116  // Do a constrained fit.
137  double constrain(Lepjets_Event& ev, Column_Vector& pull);
138 
139  // Dump out our state.
140  friend std::ostream& operator<<(std::ostream& s, const Constrained_Z& cz);
141 
142  private:
143  // Parameter settings.
148 
149  // The guy that actually does the work.
154  };
155 
156 } // namespace hitfit
157 
158 #endif // not HITFIT_CONSTRAINED_Z_H
writedatasetfile.args
args
Definition: writedatasetfile.py:18
hitfit::Constrained_Z_Args::zmass
double zmass() const
Definition: Constrained_Z.cc:59
hitfit::Column_Vector
CLHEP::HepVector Column_Vector
Definition: matutil.h:63
hitfit
Definition: Base_Constrainer.h:43
hitfit::Constrained_Z_Args::Constrained_Z_Args
Constrained_Z_Args(const Defaults &defs)
Constructor, initialize from a Defaults object.
Definition: Constrained_Z.cc:50
hitfit::Fourvec_Constrainer
Do a kinematic fit for a set of four-momenta, given a set of mass constraints.
Definition: Fourvec_Constrainer.h:220
hitfit::Constrained_Z
Do a constrained kinematic fitting for a event.
Definition: Constrained_Z.h:102
hitfit::Constrained_Z::_args
const Constrained_Z_Args & _args
Definition: Constrained_Z.h:147
alignCSCRings.s
s
Definition: alignCSCRings.py:92
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
matutil.h
Define matrix types for the HitFit package, and supply a few additional operations.
hitfit::Constrained_Z_Args::_fourvec_constrainer_args
Fourvec_Constrainer_Args _fourvec_constrainer_args
Definition: Constrained_Z.h:92
hitfit::Constrained_Z::_constrainer
Fourvec_Constrainer _constrainer
Definition: Constrained_Z.h:153
hitfit::Constrained_Z::Constrained_Z
Constrained_Z(const Constrained_Z_Args &args)
Constructor, create an instance of the Constrained_Z object from the argument object.
Definition: Constrained_Z.cc:78
hitfit::Constrained_Z::constrain
double constrain(Lepjets_Event &ev, Column_Vector &pull)
Do a constrained fit of event. Returns the pull quantities in pull. Returns the ,...
Definition: Constrained_Z.cc:201
hitfit::Constrained_Z_Args::_zmass
double _zmass
Definition: Constrained_Z.h:86
hitfit::Constrained_Z_Args
Hold on to parameters for the Constrained_Z class.
Definition: Constrained_Z.h:49
hitfit::Constrained_Z_Args::fourvec_constrainer_args
const Fourvec_Constrainer_Args & fourvec_constrainer_args() const
Definition: Constrained_Z.cc:68
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
hitfit::Defaults
Define an interface for getting parameter settings.
Definition: Defaults.h:57
hitfit::Constrained_Z::operator<<
friend std::ostream & operator<<(std::ostream &s, const Constrained_Z &cz)
Output stream operator, print the content of this Constrained_Z to an output stream.
Definition: Constrained_Z.cc:236
Fourvec_Constrainer.h
Do a kinematic fit for a set of four-vectors, given a set of mass constraints.
hitfit::Fourvec_Constrainer_Args
Hold on to parameters for the Fourvec_Constrainer class.
Definition: Fourvec_Constrainer.h:93