CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/PhysicsTools/KinFitter/interface/TFitConstraintMGaus.h

Go to the documentation of this file.
00001 #ifndef TFitConstraintMGaus_hh
00002 #define TFitConstraintMGaus_hh
00003 
00004 #include "PhysicsTools/KinFitter/interface/TFitConstraintM.h"
00005 
00006 #include <vector>
00007 
00008 class TAbsFitParticle;
00009 
00010 class TFitConstraintMGaus: public TFitConstraintM {
00011 
00012 public :
00013 
00014   TFitConstraintMGaus();
00015   TFitConstraintMGaus(std::vector<TAbsFitParticle*>* ParList1,
00016                       std::vector<TAbsFitParticle*>* ParList2,
00017                       Double_t Mass = 0, Double_t Width = 0);
00018   TFitConstraintMGaus(const TString &name, const TString &title,
00019                       std::vector<TAbsFitParticle*>* ParList1,
00020                       std::vector<TAbsFitParticle*>* ParList2,
00021                       Double_t Mass = 0, Double_t Width = 0);
00022 
00023   virtual ~TFitConstraintMGaus();
00024 
00025   virtual Double_t getInitValue();
00026   virtual Double_t getCurrentValue();
00027   virtual TMatrixD* getDerivativeAlpha();
00028 
00029   void setMassConstraint(Double_t Mass, Double_t Width);
00030 
00031   virtual TString getInfoString();
00032   virtual void print(); 
00033 
00034 protected :
00035   
00036   Double_t _width;
00037 
00038   void init();
00039 
00040 
00041 };
00042 
00043 #endif
00044