CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/DataFormats/HcalRecHit/interface/HcalSourcePositionData.h

Go to the documentation of this file.
00001 #ifndef DATAFORMATS_HCALRECHIT_HCALSOURCEPOSITIONDATA_H
00002 #define DATAFORMATS_HCALRECHIT_HCALSOURCEPOSITIONDATA_H 1
00003 
00004 #include "DataFormats/CaloRecHit/interface/CaloRecHit.h"
00005 
00006 class HcalSourcePositionData {
00007 public:
00008 
00009   HcalSourcePositionData();
00010   ~HcalSourcePositionData(){}
00011   
00012   inline int messageCounter() const { return messageCounter_; }
00013   inline int status() const { return status_; }
00014   inline int indexCounter() const { return indexCounter_; }
00015   inline int reelCounter() const { return reelCounter_; } 
00016   inline int motorCurrent() const { return motorCurrent_; }
00017   inline int speed() const { return speed_; } 
00018   inline int tubeId() const { return tubeId_; }
00019   inline int driverId() const { return driverId_; }
00020   inline int sourceId() const { return sourceId_; }
00021 
00022   void getDriverTimestamp(int& seconds, int& useconds) const;
00023   void getDAQTimestamp(int& seconds, int& useconds) const;
00024 
00025   void set(      int message_counter,
00026                  int timestamp1_sec,
00027                  int timestamp1_usec,
00028                  int timestamp2_sec,
00029                  int timestamp2_usec,
00030                  int status,
00031                  int index_counter,
00032                  int reel_counter,
00033                  int motor_current,
00034                  int speed,
00035                  int tube_id,
00036                  int driver_id,
00037                  int source_id);
00038 private:
00039   int messageCounter_;
00040   int indexCounter_;
00041   int reelCounter_;
00042   int timestamp1_sec_;
00043   int timestamp1_usec_;
00044   int timestamp2_sec_;
00045   int timestamp2_usec_;
00046   int status_;
00047   int motorCurrent_;
00048   int speed_;
00049   int tubeId_;
00050   int driverId_;
00051   int sourceId_;
00052 };
00053 
00054 std::ostream& operator<<(std::ostream& s, const HcalSourcePositionData& hspd);
00055 
00056 #endif