File indexing completed on 2024-04-06 12:22:16
0001 #ifndef DTPosNegType_H
0002 #define DTPosNegType_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 class DTChamberId;
0020
0021
0022
0023
0024 #include <map>
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038 class DTPosNegType {
0039 public:
0040
0041
0042 DTPosNegType();
0043
0044
0045
0046 virtual ~DTPosNegType();
0047
0048
0049
0050
0051 static void dump();
0052 static int getPN(int whe, int sec, int sta);
0053 static int getPN(const DTChamberId &cha);
0054 static int getCT(int whe, int sec, int sta);
0055 static int getCT(const DTChamberId &cha);
0056
0057 private:
0058 static bool initRequest;
0059 static std::map<int, int> geomMap;
0060
0061
0062 static void fillMap();
0063 static int idCode(int whe, int sec, int sta);
0064 static int pnCode(int p, int t);
0065 static void decode(int code, int &whe, int &sec, int &sta);
0066 static void decode(int code, int &p, int &t);
0067 static int getData(int whe, int sec, int sta);
0068 };
0069
0070 #endif