CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DccSpec.h
Go to the documentation of this file.
1 #ifndef CondFormatsRPCObjectsDccSpec_H
2 #define CondFormatsRPCObjectsDccSpec_H
3 
9 
10 #include <vector>
11 #include <string>
13 
14 struct ChamberLocationSpec;
15 
16 class DccSpec {
17 public:
19  DccSpec(int id = -1);
20 
22  int id() const { return theId; }
23 
25  const TriggerBoardSpec* triggerBoard(int channelNumber) const;
26  const std::vector<TriggerBoardSpec>& triggerBoards() const { return theTBs; }
27 
29  void add(const TriggerBoardSpec& tb);
30 
32  std::string print(int depth = 0) const;
33 
34 private:
35  int theId;
36  std::vector<TriggerBoardSpec> theTBs;
37 
38  // static const int MIN_CHANNEL_NUMBER = 1;
39  // static const int NUMBER_OF_CHANNELS = 68;
40 
42 };
43 
44 #endif
const std::vector< TriggerBoardSpec > & triggerBoards() const
Definition: DccSpec.h:26
int id() const
id of FED
Definition: DccSpec.h:22
std::vector< TriggerBoardSpec > theTBs
Definition: DccSpec.h:36
DccSpec(int id=-1)
ctor with ID only
Definition: DccSpec.cc:5
const TriggerBoardSpec * triggerBoard(int channelNumber) const
TB attached to channel.
Definition: DccSpec.cc:19
void add(const TriggerBoardSpec &tb)
attach TB to DCC. The channel is defined by TB
Definition: DccSpec.cc:31
int theId
Definition: DccSpec.h:35
#define COND_SERIALIZABLE
Definition: Serializable.h:39
std::string print(int depth=0) const
debud printaout, call its components with depth dectreased by one
Definition: DccSpec.cc:7