CMS 3D CMS Logo

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