MarlinKinfit  0.4.0
SimplePhotonFitObject.h
1 
2 #ifndef __SIMPLEPHOTONFITOBJECT_H
3 #define __SIMPLEPHOTONFITOBJECT_H
4 
5 #include "ParticleFitObject.h"
6 
7 // Class SimplePhotonFitObject
9 
32  public:
33  SimplePhotonFitObject(double px, double py, double pz,
34  double Dpz);
35 
38  );
39 
41  virtual SimplePhotonFitObject *copy() const;
42 
44  virtual SimplePhotonFitObject& assign (const BaseFitObject& source
45  );
46 
49  );
50 
51  virtual ~SimplePhotonFitObject();
52 
54  virtual const char *getParamName (int ilocal
55  ) const;
56 
58  virtual bool updateParams (double p[],
59  int idim
60  );
61 
62 
63  // these depend on actual parametrisation!
64  virtual double getDPx(int ilocal) const;
65  virtual double getDPy(int ilocal) const;
66  virtual double getDPz(int ilocal) const;
67  virtual double getDE(int ilocal) const;
68 
69  virtual double getFirstDerivative_Meta_Local( int iMeta, int ilocal , int metaSet ) const;
70  virtual double getSecondDerivative_Meta_Local( int iMeta, int ilocal , int jlocal , int metaSet ) const;
71 
72  virtual int getNPar() const {return NPAR;}
73 
74  protected:
75 
76  void updateCache() const;
77 
78  mutable double pt2, p2, p,
79  dE0, dE1, dE2,
80  chi2;
81 
82  enum {NPAR=3};
83 
84 };
85 
86 
87 
88 #endif // __SIMPLEPHOTONFITOBJECT_H
virtual double getDPx(int ilocal) const
Return d p_x / d par_ilocal (derivative of px w.r.t. local parameter ilocal)
Definition: SimplePhotonFitObject.cc:122
virtual double getDE(int ilocal) const
Return d E / d par_ilocal (derivative of E w.r.t. local parameter ilocal)
Definition: SimplePhotonFitObject.cc:164
SimplePhotonFitObject(double px, double py, double pz, double Dpz)
Definition: SimplePhotonFitObject.cc:44
Class for ISR/Beamstrahlung photons with (p_x,p_y (both fix), p_z (free)) in kinematic fits...
Definition: SimplePhotonFitObject.h:31
SimplePhotonFitObject & operator=(const SimplePhotonFitObject &rhs)
Assignment.
Definition: SimplePhotonFitObject.cc:70
virtual double getDPz(int ilocal) const
Return d p_z / d par_ilocal (derivative of pz w.r.t. local parameter ilocal)
Definition: SimplePhotonFitObject.cc:150
Abstract base class for particle objects of kinematic fits.
Definition: ParticleFitObject.h:63
virtual double getDPy(int ilocal) const
Return d p_y / d par_ilocal (derivative of py w.r.t. local parameter ilocal)
Definition: SimplePhotonFitObject.cc:136
virtual const char * getParamName(int ilocal) const
Get name of parameter ilocal.
Definition: SimplePhotonFitObject.cc:94
virtual int getNPar() const
Get total number of parameters of this FitObject.
Definition: SimplePhotonFitObject.h:72
Declares class ParticleFitObject.
virtual SimplePhotonFitObject * copy() const
Return a new copy of itself.
Definition: SimplePhotonFitObject.cc:77
virtual SimplePhotonFitObject & assign(const BaseFitObject &source)
Assign from anther object, if of same type.
Definition: SimplePhotonFitObject.cc:81
virtual bool updateParams(double p[], int idim)
Read values from global vector, readjust vector; return: significant change.
Definition: SimplePhotonFitObject.cc:103
Abstract base class for particle objects of kinematic fits.
Definition: BaseFitObject.h:110