Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:32:38

0001 #ifndef TFitConstraintMGaus_hh
0002 #define TFitConstraintMGaus_hh
0003 
0004 #include "PhysicsTools/KinFitter/interface/TFitConstraintM.h"
0005 
0006 #include <vector>
0007 
0008 class TAbsFitParticle;
0009 
0010 class TFitConstraintMGaus : public TFitConstraintM {
0011 public:
0012   TFitConstraintMGaus();
0013   TFitConstraintMGaus(std::vector<TAbsFitParticle*>* ParList1,
0014                       std::vector<TAbsFitParticle*>* ParList2,
0015                       Double_t Mass = 0,
0016                       Double_t Width = 0);
0017   TFitConstraintMGaus(const TString& name,
0018                       const TString& title,
0019                       std::vector<TAbsFitParticle*>* ParList1,
0020                       std::vector<TAbsFitParticle*>* ParList2,
0021                       Double_t Mass = 0,
0022                       Double_t Width = 0);
0023 
0024   ~TFitConstraintMGaus() override;
0025 
0026   Double_t getInitValue() override;
0027   Double_t getCurrentValue() override;
0028   TMatrixD* getDerivativeAlpha() override;
0029 
0030   void setMassConstraint(Double_t Mass, Double_t Width);
0031 
0032   TString getInfoString() override;
0033   void print() override;
0034 
0035 protected:
0036   Double_t _width;
0037 
0038   void init();
0039 
0040 private:
0041   ClassDefOverride(TFitConstraintMGaus, 0)
0042 };
0043 
0044 #endif