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 // $Id: Constrained_Z.h,v 1.1 2011/05/26 09:46:53 mseidel Exp $
3 //
4 // File: Constrained_Z.h
5 // Purpose: Do kinematic fitting for a (Z->ll)+jets event.
6 // Created: Apr, 2004, sss
7 //
8 // CMSSW File : interface/Constrained_Z.h
9 // Original Author : Scott Stuart Snyder <snyder@bnl.gov> for D0
10 // Imported to CMSSW by Haryo Sumowidagdo <Suharyo.Sumowidagdo@cern.ch>
11 
12 
36 #ifndef HITFIT_CONSTRAINED_Z_H
37 #define HITFIT_CONSTRAINED_Z_H
38 
39 
42 #include <iosfwd>
43 
44 
45 namespace hitfit {
46 
47 
48 class Defaults;
49 class Lepjets_Event;
50 
51 
57 //
58 // Purpose: Hold on to parameters for the Constrained_Z class.
59 //
60 // Parameters controlling the operation of the fitter:
61 // float zmass - The mass to which the Z should be fixed.
62 //
63 {
64 public:
65  // Constructor. Initialize from a Defaults object.
74  Constrained_Z_Args (const Defaults& defs);
75 
76  // Retrieve parameter values.
80  double zmass () const;
81 
82  // Arguments for subobjects.
87 
88 private:
89  // Hold on to parameter values.
93  double _zmass;
94 
100 };
101 
102 
103 //*************************************************************************
104 
105 
112 //
113 // Purpose: Do kinematic fitting for a (Z->ll)+jets event.
114 //
115 {
116 public:
117  // Constructor.
124 
125  // Do a constrained fit.
146  double constrain (Lepjets_Event& ev, Column_Vector& pull);
147 
148  // Dump out our state.
149  friend std::ostream& operator<< (std::ostream& s, const Constrained_Z& cz);
150 
151 
152 private:
153  // Parameter settings.
158 
159  // The guy that actually does the work.
164 };
165 
166 
167 } // namespace hitfit
168 
169 
170 #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:67
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:67
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:99
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:56
dictionary args
const Fourvec_Constrainer_Args & fourvec_constrainer_args() const
Define an interface for getting parameter settings.
Definition: Defaults.h:62
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.