BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
GammaShape.h
Go to the documentation of this file.
1#ifndef VertexFit_GammaShape_H
2#define VertexFit_GammaShape_H
3
4//
5//use for gamma dynamic adjust
6//
7
8#include <cmath>
9#include "CLHEP/Matrix/Vector.h"
10#include "CLHEP/Vector/LorentzVector.h"
11#include "CLHEP/Vector/ThreeVector.h"
12#include "CLHEP/Matrix/SymMatrix.h"
13#include "CLHEP/Matrix/Matrix.h"
14using CLHEP::HepVector;
15using CLHEP::HepLorentzVector;
16using CLHEP::Hep3Vector;
17using CLHEP::HepMatrix;
18using CLHEP::HepSymMatrix;
19#include "CLHEP/Geometry/Point3D.h"
20#ifndef ENABLE_BACKWARDS_COMPATIBILITY
22#endif
23
24
25
27
28public:
29
30 // constructor & deconstructor
31 GammaShape();
33
34 GammaShape(const GammaShape &);
35
36
37 GammaShape(const double eorigin, const double epeak);
38 GammaShape(const HepLorentzVector p4, const double dphi, const double dthe, const double de);
39
41 double peak(const double fitvalue);
42 double mean(const double epeak);
43 double tail(const double epeak);
44 double width(const double epeak);
45 double de(const double eorigin, const double peak);
46 double fitm(double x, double pk, double width, double tail, double mean);
47 // Set function
48 void settail(const double tail) {m_tail = tail;}
49 void setwidth(const double width) {m_width = width;}
50 void setpeak(const double peak) {m_peak = peak;}
51 void sete(const double e) {m_e = e;}
52 void setde(const double de) {m_de = de;}
53 void setdphi(const double dphi) {m_dphi = dphi;}
54 void setdtheta(const double dtheta) {m_dtheta = dtheta;}
55
56 // get function
57 double gettail() const {return m_tail;}
58 double getwidth() const {return m_width;}
59 double getpeak() const {return m_peak;}
60 double gete() const {return m_e;}
61 double getde() const {return m_de;}
62 double getdphi() const {return m_dphi;}
63 double getdthe() const {return m_dtheta;}
64// double getdlambda() const {return m_dlambda;}
65protected:
66
67
68
69private:
70
71double m_tail; //gamma distribution information
72double m_width;
73double m_peak;
74double m_e;
75double m_de;
76double m_dphi;
77double m_dtheta;
78//double m_dlambda;
79};
80#endif
81
HepGeom::Point3D< double > HepPoint3D
Definition: GammaShape.h:21
double tail(const double epeak)
Definition: GammaShape.cxx:81
void setwidth(const double width)
Definition: GammaShape.h:49
double gete() const
Definition: GammaShape.h:60
double width(const double epeak)
Definition: GammaShape.cxx:85
GammaShape & operator=(const GammaShape &)
Definition: GammaShape.cxx:26
double peak(const double fitvalue)
void sete(const double e)
Definition: GammaShape.h:51
void settail(const double tail)
Definition: GammaShape.h:48
double de(const double eorigin, const double peak)
Definition: GammaShape.cxx:93
double getwidth() const
Definition: GammaShape.h:58
double getde() const
Definition: GammaShape.h:61
double getdthe() const
Definition: GammaShape.h:63
void setdphi(const double dphi)
Definition: GammaShape.h:53
double gettail() const
Definition: GammaShape.h:57
double getpeak() const
Definition: GammaShape.h:59
void setpeak(const double peak)
Definition: GammaShape.h:50
void setdtheta(const double dtheta)
Definition: GammaShape.h:54
double fitm(double x, double pk, double width, double tail, double mean)
Definition: GammaShape.cxx:123
double getdphi() const
Definition: GammaShape.h:62
void setde(const double de)
Definition: GammaShape.h:52
double mean(const double epeak)
Definition: GammaShape.cxx:89