test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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>
12 #include <boost/cstdint.hpp>
14 
16 
17 class DccSpec {
18 public:
20  DccSpec(int id = -1);
21 
23  int id() const { return theId;}
24 
26  const TriggerBoardSpec * triggerBoard(int channelNumber) const;
27  const std::vector<TriggerBoardSpec> & triggerBoards() const { return theTBs; }
28 
30  void add(const TriggerBoardSpec & tb);
31 
33  std::string print(int depth = 0) const;
34 
35 private:
36  int theId;
37  std::vector<TriggerBoardSpec> theTBs;
38 
39 // static const int MIN_CHANNEL_NUMBER = 1;
40 // static const int NUMBER_OF_CHANNELS = 68;
41 
43 };
44 
45 #endif
const std::vector< TriggerBoardSpec > & triggerBoards() const
Definition: DccSpec.h:27
int id() const
id of FED
Definition: DccSpec.h:23
std::vector< TriggerBoardSpec > theTBs
Definition: DccSpec.h:37
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:21
void add(const TriggerBoardSpec &tb)
attach TB to DCC. The channel is defined by TB
Definition: DccSpec.cc:34
int theId
Definition: DccSpec.h:36
#define COND_SERIALIZABLE
Definition: Serializable.h:30
std::string print(int depth=0) const
debud printaout, call its components with depth dectreased by one
Definition: DccSpec.cc:8