CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 //------------------------------------
20 // Collaborating Class Declarations --
21 //------------------------------------
22 class DTChamberId;
23 
24 //---------------
25 // C++ Headers --
26 //---------------
27 #include <map>
28 
29 // ---------------------
30 // -- Class Interface --
31 // ---------------------
32 
33 /*
34 class DTPosNegCompare {
35  public:
36  bool operator()( const DTCCBId& idl,
37  const DTCCBId& idr ) const;
38 };
39 */
40 
41 class DTPosNeg {
42 
43  public:
44 
47  DTPosNeg();
48 
51  virtual ~DTPosNeg();
52 
55  static void dump();
57  static int getPN( int whe, int sec, int sta );
58  static int getPN( const DTChamberId& cha );
59  static int getCT( int whe, int sec, int sta );
60  static int getCT( const DTChamberId& cha );
61 
62  private:
63 
64  static bool initRequest;
65  static std::map<int,int> geomMap;
66 // static std::map<DTCCBId,int,DTPosNegCompare> geomMap;
67 
68  static void fillMap();
69  static int idCode( int whe, int sec, int sta );
70  static int pnCode( int p, int t );
71  static void decode( int code, int& whe, int& sec, int& sta );
72  static void decode( int code, int& p, int& t );
73  static int getData( int whe, int sec, int sta );
74 
75 };
76 
77 
78 #endif // DTPosNeg_H
79 
80 
81 
82 
83 
84 
static int getPN(int whe, int sec, int sta)
Definition: DTPosNeg.cc:88
static void decode(int code, int &whe, int &sec, int &sta)
Definition: DTPosNeg.cc:391
static void fillMap()
Definition: DTPosNeg.cc:118
static int pnCode(int p, int t)
Definition: DTPosNeg.cc:386
virtual ~DTPosNeg()
Definition: DTPosNeg.cc:40
DTPosNeg()
Definition: DTPosNeg.cc:34
static int getCT(int whe, int sec, int sta)
Definition: DTPosNeg.cc:103
static void dump()
dump map
Definition: DTPosNeg.cc:54
static int idCode(int whe, int sec, int sta)
Definition: DTPosNeg.cc:381
static int getData(int whe, int sec, int sta)
Definition: DTPosNeg.cc:405
static bool initRequest
Definition: DTPosNeg.h:64
static std::map< int, int > geomMap
Definition: DTPosNeg.h:65