43 #ifndef ST_TRS_MINI_CHARGE_SEGMENT_HH
44 #define ST_TRS_MINI_CHARGE_SEGMENT_HH
49 #include "StGlobals.hh"
50 #include "StThreeVector.hh"
51 #include "StMatrix.hh"
61 #ifdef ST_NO_TEMPLATE_DEF_ARGS // need for allocator
68 const double charge()
const;
70 void setCharge(
double);
71 int id()
const {
return mId;}
73 double mNumberOfElectrons;
80 StTrsMiniChargeSegment::position() {
return mPosition;}
82 StTrsMiniChargeSegment::position()
const {
return mPosition;}
84 inline double StTrsMiniChargeSegment::dl()
const {
return mLength;}
85 inline const double StTrsMiniChargeSegment::charge()
const {
return mNumberOfElectrons;}
86 inline void StTrsMiniChargeSegment::setCharge(
double n) {mNumberOfElectrons = n;}