Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members
PisaBBCHitv1.h
Go to the documentation of this file.00001 #ifndef __PISABBCHITV1_H__ 00002 #define __PISABBCHITV1_H__ 00003 00004 #include "PisaBBCHit.h" 00005 00011 class PisaBBCHitv1 : public PisaBBCHit 00012 { 00013 public: 00014 00015 PisaBBCHitv1(); 00016 virtual ~PisaBBCHitv1(); 00017 00018 PisaBBCHitv1* clone() const { return new PisaBBCHitv1(*this); } 00019 PisaBBCHitv1* create() const { return new PisaBBCHitv1(); } 00020 00021 void position(double x, double y, double z) 00022 { 00023 fPosition[0] = x; 00024 fPosition[1] = y; 00025 fPosition[2] = z; 00026 } 00027 00028 void momentum(double px, double py, double pz) 00029 { 00030 fMomentum[0] = px; 00031 fMomentum[1] = py; 00032 fMomentum[2] = pz; 00033 } 00034 00035 void len(double length) 00036 { 00037 fLength = length; 00038 } 00039 00040 void del(double edep) 00041 { 00042 fEdep = edep; 00043 } 00044 00045 void etot(double e) 00046 { 00047 fEtot = e; 00048 } 00049 00050 void tof(double t) 00051 { 00052 fTof = t; 00053 } 00054 00055 double etot() const 00056 { 00057 return fEtot; 00058 } 00059 00060 double del() const 00061 { 00062 return fEdep; 00063 } 00064 00065 void pid(int p) 00066 { 00067 fPid = p; 00068 } 00069 00070 int pid() const 00071 { 00072 return fPid; 00073 } 00074 00075 int pmt() const 00076 { 00077 return fPmt; 00078 } 00079 00080 double x() const 00081 { 00082 return fPosition[0]; 00083 } 00084 double y() const 00085 { 00086 return fPosition[1]; 00087 } 00088 double z() const 00089 { 00090 return fPosition[2]; 00091 } 00092 00093 double px() const 00094 { 00095 return fMomentum[0]; 00096 } 00097 double py() const 00098 { 00099 return fMomentum[1]; 00100 } 00101 double pz() const 00102 { 00103 return fMomentum[2]; 00104 } 00105 00106 double tof() const 00107 { 00108 return fTof; 00109 } 00110 00111 double len() const 00112 { 00113 return fLength; 00114 } 00115 00116 void identify(std::ostream& os = std::cout) const; 00117 00118 int isValid() const; 00119 00120 void Reset(); 00121 00122 int track() const; 00123 00124 void track(int n); 00125 00126 private: 00127 00128 int fTrack; 00129 int fPid; 00130 int fPmt; 00131 double fEtot; 00132 double fEdep; 00133 double fPosition[3]; 00134 double fMomentum[3]; 00135 double fTof; 00136 double fLength; 00137 00138 ClassDef(PisaBBCHitv1, 1) 00139 00140 }; 00141 00142 #endif