CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/EventFilter/DTRawToDigi/interface/DTROS25Data.h

Go to the documentation of this file.
00001 #ifndef DTRawToDigi_DTROS25Data_h
00002 #define DTRawToDigi_DTROS25Data_h
00003 
00012 #include <EventFilter/DTRawToDigi/interface/DTDDUWords.h>
00013 
00014 #include <vector>
00015 
00016 
00017 typedef std::pair<int, DTTDCMeasurementWord> DTTDCData;
00018 
00019 class DTROS25Data {
00020 
00021 public:
00022   
00024   DTROS25Data(int ROSId = 0): theROSId(ROSId) {}
00025 
00026   
00028   virtual ~DTROS25Data() {}
00029 
00031   inline void setROSId(const int & ID) { theROSId = ID; }
00032 
00033   inline void addROSTrailer( const DTROSTrailerWord & word)  { theROSTrailers.push_back(word); }
00034   inline void addROSError( const DTROSErrorWord & word)  { theROSErrors.push_back(word); }
00035   inline void addROSDebug( const DTROSDebugWord & word)  { theROSDebugs.push_back(word); }
00036   inline void addROBTrailer( const DTROBTrailerWord & word)  { theROBTrailers.push_back(word); }
00037   inline void addTDCMeasurement( const DTTDCMeasurementWord & word)  { theTDCMeasurements.push_back(word); }
00038   inline void addTDCData( const DTTDCData & tdcData)  { theTDCData.push_back(tdcData); }
00039 
00041   inline int getROSID() const { return theROSId; }
00042 
00043   inline const std::vector<DTROSTrailerWord>& getROSTrailers() const {return theROSTrailers;}
00044   inline const std::vector<DTROSErrorWord>& getROSErrors() const {return theROSErrors;}
00045   inline const std::vector<DTROSDebugWord>& getROSDebugs() const {return theROSDebugs;}
00046   inline const std::vector<DTROBTrailerWord>& getROBTrailers() const {return theROBTrailers;}
00047   inline const std::vector<DTTDCMeasurementWord>& getTDCMeasurements() const {return theTDCMeasurements;}
00048   inline const std::vector<DTTDCData>& getTDCData() const {return theTDCData;}
00049 
00050 private:
00051 
00052   int theROSId;
00053 
00054   std::vector<DTROSTrailerWord> theROSTrailers;
00055   std::vector<DTROSErrorWord> theROSErrors;
00056   std::vector<DTROSDebugWord> theROSDebugs;
00057   std::vector<DTROBTrailerWord> theROBTrailers;
00058   std::vector<DTTDCMeasurementWord> theTDCMeasurements;
00059   std::vector<DTTDCData> theTDCData;
00060 
00061 };
00062 
00063 #endif