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
DTPosNeg::dump
static void dump()
dump map
Definition: DTPosNeg.cc:52
DTPosNeg::idCode
static int idCode(int whe, int sec, int sta)
Definition: DTPosNeg.cc:360
DTPosNeg::getPN
static int getPN(int whe, int sec, int sta)
Definition: DTPosNeg.cc:82
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
DTPosNeg::fillMap
static void fillMap()
Definition: DTPosNeg.cc:100
DTPosNeg::geomMap
static std::map< int, int > geomMap
Definition: DTPosNeg.h:61
DTPosNeg::DTPosNeg
DTPosNeg()
Definition: DTPosNeg.cc:34
DTPosNeg::initRequest
static bool initRequest
Definition: DTPosNeg.h:60
DTPosNeg::getCT
static int getCT(int whe, int sec, int sta)
Definition: DTPosNeg.cc:91
DTPosNeg::getData
static int getData(int whe, int sec, int sta)
Definition: DTPosNeg.cc:377
fileinputsource_cfi.sec
sec
Definition: fileinputsource_cfi.py:87
DTPosNeg::decode
static void decode(int code, int &whe, int &sec, int &sta)
Definition: DTPosNeg.cc:364
DTPosNeg::~DTPosNeg
virtual ~DTPosNeg()
Definition: DTPosNeg.cc:39
DTPosNeg
Definition: DTPosNeg.h:40
DTChamberId
Definition: DTChamberId.h:14
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
DTPosNeg::pnCode
static int pnCode(int p, int t)
Definition: DTPosNeg.cc:362