00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049 #ifndef ST_TRS_WIRE_BIN_ENTRY_HH
00050 #define ST_TRS_WIRE_BIN_ENTRY_HH
00051 #include <Stiostream.h>
00052
00053 #if defined(__sun) && ! defined(__GNUG__)
00054 #include <stdcomp.h>
00055 #endif
00056
00057 #include "StThreeVector.hh"
00058 #include "StDbUtilities/StGlobalCoordinate.hh"
00059
00060 class StTrsWireBinEntry {
00061 public:
00062 StTrsWireBinEntry(StThreeVector<double>&, float,double,double,double *, int);
00063 ~StTrsWireBinEntry();
00064
00065
00066
00067
00068 const StThreeVector<double>& position() const;
00069 float numberOfElectrons() const;
00070 double sigmaL();
00071 double sigmaT();
00072 double * d();
00073
00074 StThreeVector<double>& position() ;
00075 int id() const {return mId;}
00076 void setNumberOfElectrons(float) ;
00077 void scaleNumberOfElectrons(float);
00078
00079 #ifdef ST_NO_TEMPLATE_DEF_ARGS
00080 StTrsWireBinEntry();
00081 #endif
00082
00083 private:
00084 StThreeVector<double> mPosition;
00085 double mSigmaL;
00086 double mSigmaT;
00087 double mD[3];
00088 float mNumberOfElectrons;
00089 int mId;
00090 };
00091 inline const StThreeVector<double>&
00092 StTrsWireBinEntry::position() const {return mPosition;}
00093 inline float StTrsWireBinEntry::numberOfElectrons() const {return mNumberOfElectrons;}
00094 inline StThreeVector<double>& StTrsWireBinEntry::position() {return mPosition;}
00095 void inline StTrsWireBinEntry::setNumberOfElectrons(float num) { mNumberOfElectrons = num;}
00096
00097
00098 ostream& operator<<(ostream& os, const StTrsWireBinEntry& entry);
00099 #endif