CMS 3D CMS Logo

DTPosNeg.h
Go to the documentation of this file.
1 #ifndef DTPosNeg_H
2 #define DTPosNeg_H
3 
14 //----------------------
15 // Base Class Headers --
16 //----------------------
17 
18 //------------------------------------
19 // Collaborating Class Declarations --
20 //------------------------------------
21 class DTChamberId;
22 
23 //---------------
24 // C++ Headers --
25 //---------------
26 #include <map>
27 
28 // ---------------------
29 // -- Class Interface --
30 // ---------------------
31 
32 /*
33 class DTPosNegCompare {
34  public:
35  bool operator()( const DTCCBId& idl,
36  const DTCCBId& idr ) const;
37 };
38 */
39 
40 class DTPosNeg {
41 public:
44  DTPosNeg();
45 
48  virtual ~DTPosNeg();
49 
52  static void dump();
54  static int getPN(int whe, int sec, int sta);
55  static int getPN(const DTChamberId& cha);
56  static int getCT(int whe, int sec, int sta);
57  static int getCT(const DTChamberId& cha);
58 
59 private:
60  static bool initRequest;
61  static std::map<int, int> geomMap;
62  // static std::map<DTCCBId,int,DTPosNegCompare> geomMap;
63 
64  static void fillMap();
65  static int idCode(int whe, int sec, int sta);
66  static int pnCode(int p, int t);
67  static void decode(int code, int& whe, int& sec, int& sta);
68  static void decode(int code, int& p, int& t);
69  static int getData(int whe, int sec, int sta);
70 };
71 
72 #endif // DTPosNeg_H
static int getPN(int whe, int sec, int sta)
Definition: DTPosNeg.cc:82
static void decode(int code, int &whe, int &sec, int &sta)
Definition: DTPosNeg.cc:364
static void fillMap()
Definition: DTPosNeg.cc:100
static int pnCode(int p, int t)
Definition: DTPosNeg.cc:362
virtual ~DTPosNeg()
Definition: DTPosNeg.cc:39
DTPosNeg()
Definition: DTPosNeg.cc:34
static int getCT(int whe, int sec, int sta)
Definition: DTPosNeg.cc:91
static void dump()
dump map
Definition: DTPosNeg.cc:52
static int idCode(int whe, int sec, int sta)
Definition: DTPosNeg.cc:360
static int getData(int whe, int sec, int sta)
Definition: DTPosNeg.cc:377
static bool initRequest
Definition: DTPosNeg.h:60
static std::map< int, int > geomMap
Definition: DTPosNeg.h:61