00001
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
00050
00051
00052 #ifndef StTrackTopologyMap_hh
00053 #define StTrackTopologyMap_hh
00054
00055 #include <Stiostream.h>
00056 #include "StObject.h"
00057 #include "StEnumerations.h"
00058
00059 class StTrackTopologyMap : public StObject {
00060 public:
00061 StTrackTopologyMap();
00062 StTrackTopologyMap(unsigned int, unsigned int);
00063 StTrackTopologyMap(const unsigned long*);
00064 StTrackTopologyMap(const unsigned int*);
00065
00066
00067 ~StTrackTopologyMap();
00068
00069 bool primaryVertexUsed() const;
00070 unsigned int numberOfHits(StDetectorId) const;
00071 bool hasHitInDetector(StDetectorId) const;
00072 bool hasHitInDetector(StDetectorId, StDetectorId,
00073 StDetectorId = kUnknownId, StDetectorId = kUnknownId,
00074 StDetectorId = kUnknownId, StDetectorId = kUnknownId) const;
00075 bool hasHitInRow(StDetectorId, unsigned int) const;
00076 bool hasHitInSvtLayer(unsigned int) const;
00077 bool hasHitInPxlLayer(unsigned int) const;
00078 bool hasHitInIstLayer(unsigned int) const;
00079
00080 bool trackTpcOnly() const;
00081 bool trackSvtOnly() const;
00082 bool trackTpcSvt() const;
00083 bool trackFtpcEast() const;
00084 bool trackFtpcWest() const;
00085 bool trackFtpc() const;
00086
00087 bool turnAroundFlag() const;
00088 unsigned int data(unsigned int) const;
00089
00090 int largestGap(StDetectorId) const;
00091
00092 protected:
00093 bool bit(int) const;
00094 bool ftpcFormat() const;
00095
00096 private:
00097 UInt_t mMap0;
00098 UInt_t mMap1;
00099
00100 ClassDef(StTrackTopologyMap,1)
00101 };
00102
00103 ostream& operator<< (ostream&, const StTrackTopologyMap&);
00104 #endif