CMS 3D CMS Logo

BSTrkParameters.h
Go to the documentation of this file.
1 #ifndef BeamSpotProducer_BSTrkParameters_h
2 #define BeamSpotProducer_BSTrkParameters_h
3 
16 public:
17  // constructor
19  // constructor from values
20  //BSTrkParameters( double z0, double sigz0,
21  // double d0, double sigd0,
22  // double phi0, double pt) {
23  // fz0 = z0;
24  // fsigz0 = sigz0;
25  // fd0 = d0;
26  // fsigd0 = sigd0;
27  // fphi0 = phi0;
28  // fpt = pt;
29  //
30  //};
31 
33  double sigz0,
34  double d0,
35  double sigd0,
36  double phi0,
37  double pt,
38  double d0phi_d0 = 0.,
39  double d0phi_chi2 = 0.) {
40  fz0 = z0;
41  fsigz0 = sigz0;
42  fd0 = d0;
43  fsigd0 = sigd0;
44  fphi0 = phi0;
45  fpt = pt;
48  fvx = 0.;
49  fvy = 0.;
50  };
51 
52  //
53  double z0() const { return fz0; }
54  double sigz0() const { return fsigz0; }
55  double d0() const { return fd0; }
56  double sigd0() const { return fsigd0; }
57  double phi0() const { return fphi0; }
58  double pt() const { return fpt; }
59  double d0phi_chi2() const { return fd0phi_chi2; }
60  double d0phi_d0() const { return fd0phi_d0; }
61  double vx() const { return fvx; }
62  double vy() const { return fvy; }
63  void setVx(double vx) { fvx = vx; }
64  void setVy(double vy) { fvy = vy; }
65 
66 private:
67  double fz0;
68  double fsigz0;
69  double fd0;
70  double fsigd0;
71  double fphi0;
72  double fpt;
73  double fd0phi_chi2;
74  double fd0phi_d0;
75  double fvx;
76  double fvy;
77 };
78 
79 #endif
double sigd0() const
double z0() const
double d0phi_d0() const
BSTrkParameters(double z0, double sigz0, double d0, double sigd0, double phi0, double pt, double d0phi_d0=0., double d0phi_chi2=0.)
double phi0() const
double d0phi_chi2() const
double vy() const
void setVx(double vx)
double d0() const
void setVy(double vy)
double pt() const
double sigz0() const
double vx() const