BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/VertexFit/VertexFit/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
26class GammaShape {
27
28public:
29
30 // constructor & deconstructor
33
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
double tail(const double epeak)
double width(const double epeak)
GammaShape & operator=(const GammaShape &)
Definition: GammaShape.cxx:26
double peak(const double fitvalue)
double de(const double eorigin, const double peak)
Definition: GammaShape.cxx:93
double fitm(double x, double pk, double width, double tail, double mean)
GammaShape(const GammaShape &)
GammaShape(const double eorigin, const double epeak)
double mean(const double epeak)
GammaShape(const HepLorentzVector p4, const double dphi, const double dthe, const double de)