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
DTROS25Data::addTDCData
void addTDCData(const DTTDCData &tdcData)
Definition: DTROS25Data.h:36
DTTDCMeasurementWord
Definition: DTDDUWords.h:475
DTROS25Data::theROSDebugs
std::vector< DTROSDebugWord > theROSDebugs
Definition: DTControlData.h:91
DTROS25Data::getROSTrailers
const std::vector< DTROSTrailerWord > & getROSTrailers() const
Definition: DTROS25Data.h:41
DTROS25Data::~DTROS25Data
virtual ~DTROS25Data()
Destructor.
Definition: DTROS25Data.h:26
DTDDUWords.h
DTROS25Data::theROSId
int theROSId
Definition: DTControlData.h:86
DTROSErrorWord
Definition: DTDDUWords.h:266
DTROS25Data::getTDCMeasurements
const std::vector< DTTDCMeasurementWord > & getTDCMeasurements() const
Definition: DTROS25Data.h:45
DTROS25Data::getROBTrailers
const std::vector< DTROBTrailerWord > & getROBTrailers() const
Definition: DTROS25Data.h:44
DTTDCData
std::pair< int, DTTDCMeasurementWord > DTTDCData
Definition: DTROS25Data.h:15
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
DTROS25Data::DTROS25Data
DTROS25Data(int ROSId=0)
Constructors.
Definition: DTROS25Data.h:22
DTROS25Data::theROBTrailers
std::vector< DTROBTrailerWord > theROBTrailers
Definition: DTControlData.h:93
DTROS25Data::addTDCMeasurement
void addTDCMeasurement(const DTTDCMeasurementWord &word)
Definition: DTROS25Data.h:35
DTROS25Data::getTDCData
const std::vector< DTTDCData > & getTDCData() const
Definition: DTROS25Data.h:46
DTROS25Data::setROSId
void setROSId(const int &ID)
Setters.
Definition: DTROS25Data.h:29
DTROS25Data::getROSDebugs
const std::vector< DTROSDebugWord > & getROSDebugs() const
Definition: DTROS25Data.h:43
align::ID
uint32_t ID
Definition: Definitions.h:24
DTROS25Data::theROSTrailers
std::vector< DTROSTrailerWord > theROSTrailers
Definition: DTROS25Data.h:52
DTROS25Data::getROSErrors
const std::vector< DTROSErrorWord > & getROSErrors() const
Definition: DTROS25Data.h:42
DTROS25Data::theTDCMeasurements
std::vector< DTTDCMeasurementWord > theTDCMeasurements
Definition: DTControlData.h:94
DTROBTrailerWord
Definition: DTDDUWords.h:373
DTROS25Data::addROBTrailer
void addROBTrailer(const DTROBTrailerWord &word)
Definition: DTROS25Data.h:34
DTROS25Data::theROSErrors
std::vector< DTROSErrorWord > theROSErrors
Definition: DTControlData.h:90
DTROS25Data::theTDCData
std::vector< DTTDCData > theTDCData
Definition: DTControlData.h:95
DTTDCData
std::pair< int, DTTDCMeasurementWord > DTTDCData
Definition: DTControlData.h:18
DTROS25Data::addROSError
void addROSError(const DTROSErrorWord &word)
Definition: DTROS25Data.h:32
DTROSDebugWord
Definition: DTDDUWords.h:298
DTROS25Data
Definition: DTControlData.h:22
DTROS25Data::addROSDebug
void addROSDebug(const DTROSDebugWord &word)
Definition: DTROS25Data.h:33
DTROSTrailerWord
Definition: DTDDUWords.h:234
DTROS25Data::addROSTrailer
void addROSTrailer(const DTROSTrailerWord &word)
Definition: DTROS25Data.h:31
DTROS25Data::getROSID
int getROSID() const
Getters.
Definition: DTROS25Data.h:39