CMS 3D CMS Logo

DTCCBConfig.h
Go to the documentation of this file.
1 #ifndef DTCCBConfig_H
2 #define DTCCBConfig_H
3 
12 //----------------------
13 // Base Class Headers --
14 //----------------------
15 
16 //------------------------------------
17 // Collaborating Class Declarations --
18 //------------------------------------
20 
23 
24 //---------------
25 // C++ Headers --
26 //---------------
27 #include <string>
28 #include <vector>
29 #include <utility>
30 
32 
33 // ---------------------
34 // -- Class Interface --
35 // ---------------------
36 
37 class DTCCBId {
38 public:
39  DTCCBId();
40  ~DTCCBId();
41 
42  int wheelId;
43  int stationId;
44  int sectorId;
45 
47 };
48 
49 class DTConfigKey {
50 public:
51  DTConfigKey();
52  ~DTConfigKey();
53 
54  int confType;
55  int confKey;
56 
58 };
59 
60 class DTCCBConfig {
61 public:
62  DTCCBConfig();
64 
65  virtual ~DTCCBConfig();
66 
67  std::vector<DTConfigKey> fullKey() const;
68  int stamp() const;
69  int configKey(int wheelId, int stationId, int sectorId, std::vector<int>& confKey) const;
70  int configKey(const DTChamberId& id, std::vector<int>& confKey) const;
71  typedef std::vector<std::pair<DTCCBId, std::vector<int> > > ccb_config_map;
72  typedef ccb_config_map::const_iterator ccb_config_iterator;
74 
76  const std::string& version() const;
78 
80  void clear();
81 
82  void setFullKey(const std::vector<DTConfigKey>&);
83  void setStamp(int s);
84 
85  int setConfigKey(int wheelId, int stationId, int sectorId, const std::vector<int>& confKey);
86  int setConfigKey(const DTChamberId& id, const std::vector<int>& confKey);
87 
88  int appendConfigKey(int wheelId, int stationId, int sectorId, const std::vector<int>& confKey);
89  int appendConfigKey(const DTChamberId& id, const std::vector<int>& confKey);
90 
92  typedef std::vector<std::pair<DTCCBId, int> >::const_iterator const_iterator;
93  const_iterator begin() const;
94  const_iterator end() const;
95 
96  void initialize();
97 
98 private:
99  DTCCBConfig(DTCCBConfig const&) = delete;
100  DTCCBConfig& operator=(DTCCBConfig const&) = delete;
101 
104  std::vector<DTConfigKey> fullConfigKey;
105  std::vector<std::pair<DTCCBId, int> > dataList;
106 
108 
110 };
111 #endif // DTCCBConfig_H
DTCCBConfig::end
const_iterator end() const
Definition: DTCCBConfig.cc:207
ConstRespectingPtr.h
DTCCBConfig::ccb_config_map
std::vector< std::pair< DTCCBId, std::vector< int > > > ccb_config_map
Definition: DTCCBConfig.h:71
DTConfigKey
Definition: DTCCBConfig.h:49
DTCCBId
Definition: DTCCBConfig.h:37
DTCCBId::DTCCBId
DTCCBId()
Definition: DTCCBConfig.cc:38
DTCCBConfig::appendConfigKey
int appendConfigKey(int wheelId, int stationId, int sectorId, const std::vector< int > &confKey)
Definition: DTCCBConfig.cc:168
DTCCBConfig::fullConfigKey
std::vector< DTConfigKey > fullConfigKey
Definition: DTCCBConfig.h:104
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
DTCCBConfig::dataList
std::vector< std::pair< DTCCBId, int > > dataList
Definition: DTCCBConfig.h:105
COND_TRANSIENT
#define COND_TRANSIENT
Definition: Serializable.h:63
DTCCBConfig::DTCCBConfig
DTCCBConfig()
Definition: DTCCBConfig.cc:31
DTCCBId::wheelId
int wheelId
Definition: DTCCBConfig.h:42
DTConfigKey::confKey
int confKey
Definition: DTCCBConfig.h:55
DTCCBConfig::timeStamp
int timeStamp
Definition: DTCCBConfig.h:102
DTCCBId::~DTCCBId
~DTCCBId()
Definition: DTCCBConfig.cc:47
DTConfigKey::~DTConfigKey
~DTConfigKey()
Definition: DTCCBConfig.cc:49
DTCCBConfig::operator=
DTCCBConfig & operator=(DTCCBConfig const &)=delete
DTCCBConfig::const_iterator
std::vector< std::pair< DTCCBId, int > >::const_iterator const_iterator
Access methods to data.
Definition: DTCCBConfig.h:92
alignCSCRings.s
s
Definition: alignCSCRings.py:92
DTBufferTreeUniquePtr
Definition: DTBufferTree.h:78
DTConfigKey::DTConfigKey
DTConfigKey()
Definition: DTCCBConfig.cc:40
DTChamberId.h
DTCCBId::stationId
int stationId
Definition: DTCCBConfig.h:43
DTCCBConfig::configKeyMap
ccb_config_map configKeyMap() const
Definition: DTCCBConfig.cc:74
Serializable.h
DTCCBConfig::stamp
int stamp() const
Definition: DTCCBConfig.cc:56
DTCCBConfig::~DTCCBConfig
virtual ~DTCCBConfig()
Definition: DTCCBConfig.cc:45
DTCCBConfig::clear
void clear()
reset content
Definition: DTCCBConfig.cc:113
DTCCBId::sectorId
int sectorId
Definition: DTCCBConfig.h:44
edm::ConstRespectingPtr< DTBufferTreeUniquePtr >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTCCBConfig::dataVersion
std::string dataVersion
Definition: DTCCBConfig.h:103
DTCCBConfig::configKey
int configKey(int wheelId, int stationId, int sectorId, std::vector< int > &confKey) const
Definition: DTCCBConfig.cc:58
DTConfigKey::confType
int confType
Definition: DTCCBConfig.h:54
DTCCBConfig::setFullKey
void setFullKey(const std::vector< DTConfigKey > &)
Definition: DTCCBConfig.cc:119
DTCCBConfig::begin
const_iterator begin() const
Definition: DTCCBConfig.cc:205
DTCCBConfig::initialize
void initialize()
Definition: DTCCBConfig.cc:209
DTChamberId
Definition: DTChamberId.h:14
DTCCBConfig::fullKey
std::vector< DTConfigKey > fullKey() const
Definition: DTCCBConfig.cc:54
DTCCBConfig::dBuf
edm::ConstRespectingPtr< DTBufferTreeUniquePtr > dBuf
Definition: DTCCBConfig.h:107
DTCCBConfig::setConfigKey
int setConfigKey(int wheelId, int stationId, int sectorId, const std::vector< int > &confKey)
Definition: DTCCBConfig.cc:123
DTCCBConfig::ccb_config_iterator
ccb_config_map::const_iterator ccb_config_iterator
Definition: DTCCBConfig.h:72
DTCCBConfig
Definition: DTCCBConfig.h:60
DTCCBConfig::version
const std::string & version() const
access version
Definition: DTCCBConfig.cc:109
DTCCBConfig::setStamp
void setStamp(int s)
Definition: DTCCBConfig.cc:121