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
const Constrained_Z_Args & _args
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.
CLHEP::HepVector Column_Vector
Definition: matutil.h:63
Define matrix types for the HitFit package, and supply a few additional operations.
Do a constrained kinematic fitting for a event.
Fourvec_Constrainer _constrainer
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
double constrain(Lepjets_Event &ev, Column_Vector &pull)
Do a constrained fit of event. Returns the pull quantities in pull. Returns the , this will be negative if the fit failed to converge.
Fourvec_Constrainer_Args _fourvec_constrainer_args
Definition: Constrained_Z.h:92
Constrained_Z(const Constrained_Z_Args &args)
Constructor, create an instance of the Constrained_Z object from the argument object.
Hold on to parameters for the Constrained_Z class.
Definition: Constrained_Z.h:49
Define an interface for getting parameter settings.
Definition: Defaults.h:57
Do a kinematic fit for a set of four-vectors, given a set of mass constraints.
const Fourvec_Constrainer_Args & fourvec_constrainer_args() const
Constrained_Z_Args(const Defaults &defs)
Constructor, initialize from a Defaults object.
Do a kinematic fit for a set of four-momenta, given a set of mass constraints.
Hold on to parameters for the Fourvec_Constrainer class.