00001 00002 // 00003 // Purpose: This is the header file that defines a class to help fill the 00004 // tuple correctly with TMBL3 tracks. 00005 // 00006 // Author: Yann Coadou 00007 // Date: 28-Mar-2004 00008 // 00010 00011 #ifndef TMBL3TRACK_H_ 00012 #define TMBL3TRACK_H_ 00013 00014 #include "tmb_tree/TMBL3Base.hpp" 00015 #include "kinem_util/AnglesUtil.hpp" 00016 00021 class TMBL3Track : public TMBL3Base { 00022 public: 00023 TMBL3Track(); //constructor 00024 TMBL3Track(const TMBL3Track&); //copy constructor 00025 00026 ~TMBL3Track() {;} //destructor 00027 00028 // setters 00029 void PtInv(double x) {ptinv = x;} 00030 void Z(double x) {z = x;} 00031 void DCA(double x) {dca = x;} 00032 void ChiSqXY(float x) {chisqxy = x;} 00033 void ChiSqZ(float x) {chisqz = x;} 00034 void ValidZFit(bool x) {validzfit = x;} 00035 void ValidXYFit(bool x) {validxyfit = x;} 00036 void nHitsZ(int x) {nhitsz = x;} 00037 void nHitsXY(int x) {nhitsxy = x;} 00038 void nSMTHitsZ(int x) {nsmthitsz = x;} 00039 void nSMTHitsXY(int x) {nsmthitsxy = x;} 00040 00041 // accessors 00042 double PtInv() const {return ptinv;} 00043 double Z() const {return z;} 00044 double DCA() const {return dca;} 00045 float tanl() const {return kinem::tanl_from_theta(kinem::theta(eta));} 00046 float ChiSq() const {return (chisqxy+chisqz);} 00047 float ChiSqXY() const {return chisqxy;} 00048 float ChiSqZ() const {return chisqz;} 00049 bool ValidFit() const {return (validxyfit && validzfit);} 00050 bool ValidXYFit() const {return validxyfit;} 00051 bool ValidZFit() const {return validzfit;} 00052 int nHitsZ() const {return nhitsz;} 00053 int nHitsXY() const {return nhitsxy;} 00054 int nSMTHitsZ() const {return nsmthitsz;} 00055 int nSMTHitsXY() const {return nsmthitsxy;} 00056 00057 private: 00058 double ptinv; 00059 double z; 00060 double dca; 00061 float chisqxy; 00062 float chisqz; 00063 bool validxyfit; 00064 bool validzfit; 00065 int nhitsz; 00066 int nhitsxy; 00067 int nsmthitsz; 00068 int nsmthitsxy; 00069 00070 ClassDef(TMBL3Track,1) 00071 00072 }; //end of class TMBL3Track 00073 #endif // TMBL3TRACK_H_
1.3.4