CMS 3D CMS Logo

DTROS25Data.h
Go to the documentation of this file.
1 #ifndef DTRawToDigi_DTROS25Data_h
2 #define DTRawToDigi_DTROS25Data_h
3 
11 
12 #include <vector>
13 
14 
15 typedef std::pair<int, DTTDCMeasurementWord> DTTDCData;
16 
17 class DTROS25Data {
18 
19 public:
20 
22  DTROS25Data(int ROSId = 0): theROSId(ROSId) {}
23 
24 
26  virtual ~DTROS25Data() {}
27 
29  inline void setROSId(const int & ID) { theROSId = ID; }
30 
31  inline void addROSTrailer( const DTROSTrailerWord & word) { theROSTrailers.push_back(word); }
32  inline void addROSError( const DTROSErrorWord & word) { theROSErrors.push_back(word); }
33  inline void addROSDebug( const DTROSDebugWord & word) { theROSDebugs.push_back(word); }
34  inline void addROBTrailer( const DTROBTrailerWord & word) { theROBTrailers.push_back(word); }
35  inline void addTDCMeasurement( const DTTDCMeasurementWord & word) { theTDCMeasurements.push_back(word); }
36  inline void addTDCData( const DTTDCData & tdcData) { theTDCData.push_back(tdcData); }
37 
39  inline int getROSID() const { return theROSId; }
40 
41  inline const std::vector<DTROSTrailerWord>& getROSTrailers() const {return theROSTrailers;}
42  inline const std::vector<DTROSErrorWord>& getROSErrors() const {return theROSErrors;}
43  inline const std::vector<DTROSDebugWord>& getROSDebugs() const {return theROSDebugs;}
44  inline const std::vector<DTROBTrailerWord>& getROBTrailers() const {return theROBTrailers;}
45  inline const std::vector<DTTDCMeasurementWord>& getTDCMeasurements() const {return theTDCMeasurements;}
46  inline const std::vector<DTTDCData>& getTDCData() const {return theTDCData;}
47 
48 private:
49 
50  int theROSId;
51 
52  std::vector<DTROSTrailerWord> theROSTrailers;
53  std::vector<DTROSErrorWord> theROSErrors;
54  std::vector<DTROSDebugWord> theROSDebugs;
55  std::vector<DTROBTrailerWord> theROBTrailers;
56  std::vector<DTTDCMeasurementWord> theTDCMeasurements;
57  std::vector<DTTDCData> theTDCData;
58 
59 };
60 
61 #endif
int getROSID() const
Getters.
Definition: DTROS25Data.h:39
const std::vector< DTTDCData > & getTDCData() const
Definition: DTROS25Data.h:46
virtual ~DTROS25Data()
Destructor.
Definition: DTROS25Data.h:26
uint32_t ID
Definition: Definitions.h:24
std::pair< int, DTTDCMeasurementWord > DTTDCData
Definition: DTROS25Data.h:15
std::vector< DTROBTrailerWord > theROBTrailers
Definition: DTControlData.h:93
void addTDCMeasurement(const DTTDCMeasurementWord &word)
Definition: DTROS25Data.h:35
DTROS25Data(int ROSId=0)
Constructors.
Definition: DTROS25Data.h:22
uint64_t word
const std::vector< DTROSDebugWord > & getROSDebugs() const
Definition: DTROS25Data.h:43
std::vector< DTROSTrailerWord > theROSTrailers
Definition: DTROS25Data.h:52
void setROSId(const int &ID)
Setters.
Definition: DTROS25Data.h:29
const std::vector< DTROSTrailerWord > & getROSTrailers() const
Definition: DTROS25Data.h:41
std::vector< DTROSErrorWord > theROSErrors
Definition: DTControlData.h:90
void addROBTrailer(const DTROBTrailerWord &word)
Definition: DTROS25Data.h:34
const std::vector< DTROBTrailerWord > & getROBTrailers() const
Definition: DTROS25Data.h:44
std::vector< DTTDCMeasurementWord > theTDCMeasurements
Definition: DTControlData.h:94
void addROSError(const DTROSErrorWord &word)
Definition: DTROS25Data.h:32
const std::vector< DTTDCMeasurementWord > & getTDCMeasurements() const
Definition: DTROS25Data.h:45
const std::vector< DTROSErrorWord > & getROSErrors() const
Definition: DTROS25Data.h:42
void addROSTrailer(const DTROSTrailerWord &word)
Definition: DTROS25Data.h:31
std::vector< DTTDCData > theTDCData
Definition: DTControlData.h:95
std::pair< int, DTTDCMeasurementWord > DTTDCData
Definition: DTControlData.h:18
std::vector< DTROSDebugWord > theROSDebugs
Definition: DTControlData.h:91
void addROSDebug(const DTROSDebugWord &word)
Definition: DTROS25Data.h:33
void addTDCData(const DTTDCData &tdcData)
Definition: DTROS25Data.h:36