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 
8 #include <vector>
9 #include <string>
10 #include <boost/cstdint.hpp>
12 
14 
15 class DccSpec {
16 public:
18  DccSpec(int id = -1);
19 
21  int id() const { return theId;}
22 
24  const TriggerBoardSpec * triggerBoard(int channelNumber) const;
25  const std::vector<TriggerBoardSpec> & triggerBoards() const { return theTBs; }
26 
28  void add(const TriggerBoardSpec & tb);
29 
31  std::string print(int depth = 0) const;
32 
33 private:
34  int theId;
35  std::vector<TriggerBoardSpec> theTBs;
36 
37 // static const int MIN_CHANNEL_NUMBER = 1;
38 // static const int NUMBER_OF_CHANNELS = 68;
39 };
40 
41 #endif
const std::vector< TriggerBoardSpec > & triggerBoards() const
Definition: DccSpec.h:25
int id() const
id of FED
Definition: DccSpec.h:21
std::vector< TriggerBoardSpec > theTBs
Definition: DccSpec.h:35
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:34
std::string print(int depth=0) const
debud printaout, call its components with depth dectreased by one
Definition: DccSpec.cc:8