00001 #ifndef BeamSpotProducer_BSTrkParameters_h 00002 #define BeamSpotProducer_BSTrkParameters_h 00003 00017 class BSTrkParameters { 00018 00019 public: 00020 00021 // constructor 00022 BSTrkParameters() {} 00023 // constructor from values 00024 //BSTrkParameters( double z0, double sigz0, 00025 // double d0, double sigd0, 00026 // double phi0, double pt) { 00027 // fz0 = z0; 00028 // fsigz0 = sigz0; 00029 // fd0 = d0; 00030 // fsigd0 = sigd0; 00031 // fphi0 = phi0; 00032 // fpt = pt; 00033 // 00034 //}; 00035 00036 BSTrkParameters( double z0, double sigz0, 00037 double d0, double sigd0, 00038 double phi0, double pt, 00039 double d0phi_d0=0.,double d0phi_chi2=0.) { 00040 fz0 = z0; 00041 fsigz0 = sigz0; 00042 fd0 = d0; 00043 fsigd0 = sigd0; 00044 fphi0 = phi0; 00045 fpt = pt; 00046 fd0phi_d0 = d0phi_d0; 00047 fd0phi_chi2 = d0phi_chi2; 00048 fvx = 0.; 00049 fvy = 0.; 00050 }; 00051 00052 // 00053 double z0() const { return fz0; } 00054 double sigz0() const { return fsigz0; } 00055 double d0() const { return fd0; } 00056 double sigd0() const { return fsigd0; } 00057 double phi0() const { return fphi0; } 00058 double pt() const { return fpt; } 00059 double d0phi_chi2() const { return fd0phi_chi2; } 00060 double d0phi_d0() const { return fd0phi_d0; } 00061 double vx() const { return fvx; } 00062 double vy() const { return fvy; } 00063 void setVx( double vx ) { fvx = vx; } 00064 void setVy( double vy ) { fvy = vy; } 00065 00066 private: 00067 double fz0; 00068 double fsigz0; 00069 double fd0; 00070 double fsigd0; 00071 double fphi0; 00072 double fpt; 00073 double fd0phi_chi2; 00074 double fd0phi_d0; 00075 double fvx; 00076 double fvy; 00077 }; 00078 00079 #endif