CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
11 
35 #ifndef HITFIT_CONSTRAINED_Z_H
36 #define HITFIT_CONSTRAINED_Z_H
37 
38 
41 #include <iosfwd>
42 
43 
44 namespace hitfit {
45 
46 
47 class Defaults;
48 class Lepjets_Event;
49 
50 
56 //
57 // Purpose: Hold on to parameters for the Constrained_Z class.
58 //
59 // Parameters controlling the operation of the fitter:
60 // float zmass - The mass to which the Z should be fixed.
61 //
62 {
63 public:
64  // Constructor. Initialize from a Defaults object.
73  Constrained_Z_Args (const Defaults& defs);
74 
75  // Retrieve parameter values.
79  double zmass () const;
80 
81  // Arguments for subobjects.
86 
87 private:
88  // Hold on to parameter values.
92  double _zmass;
93 
99 };
100 
101 
102 //*************************************************************************
103 
104 
111 //
112 // Purpose: Do kinematic fitting for a (Z->ll)+jets event.
113 //
114 {
115 public:
116  // Constructor.
123 
124  // Do a constrained fit.
145  double constrain (Lepjets_Event& ev, Column_Vector& pull);
146 
147  // Dump out our state.
148  friend std::ostream& operator<< (std::ostream& s, const Constrained_Z& cz);
149 
150 
151 private:
152  // Parameter settings.
157 
158  // The guy that actually does the work.
163 };
164 
165 
166 } // namespace hitfit
167 
168 
169 #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:66
bool ev
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:66
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:98
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:55
const Fourvec_Constrainer_Args & fourvec_constrainer_args() const
Define an interface for getting parameter settings.
Definition: Defaults.h:61
Do a kinematic fit for a set of four-vectors, given a set of mass constraints.
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.