CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalSourcePositionData.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_HCALRECHIT_HCALSOURCEPOSITIONDATA_H
2 #define DATAFORMATS_HCALRECHIT_HCALSOURCEPOSITIONDATA_H 1
3 
5 
7 public:
8 
11 
12  inline int messageCounter() const { return messageCounter_; }
13  inline int status() const { return status_; }
14  inline int indexCounter() const { return indexCounter_; }
15  inline int reelCounter() const { return reelCounter_; }
16  inline int motorCurrent() const { return motorCurrent_; }
17  inline int speed() const { return speed_; }
18  inline int tubeId() const { return tubeId_; }
19  inline int driverId() const { return driverId_; }
20  inline int sourceId() const { return sourceId_; }
21 
22  void getDriverTimestamp(int& seconds, int& useconds) const;
23  void getDAQTimestamp(int& seconds, int& useconds) const;
24 
25  void set( int message_counter,
26  int timestamp1_sec,
27  int timestamp1_usec,
28  int timestamp2_sec,
29  int timestamp2_usec,
30  int status,
31  int index_counter,
32  int reel_counter,
33  int motor_current,
34  int speed,
35  int tube_id,
36  int driver_id,
37  int source_id);
38 private:
46  int status_;
48  int speed_;
49  int tubeId_;
50  int driverId_;
51  int sourceId_;
52 };
53 
54 std::ostream& operator<<(std::ostream& s, const HcalSourcePositionData& hspd);
55 
56 #endif
double seconds()
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
void set(int message_counter, int timestamp1_sec, int timestamp1_usec, int timestamp2_sec, int timestamp2_usec, int status, int index_counter, int reel_counter, int motor_current, int speed, int tube_id, int driver_id, int source_id)
void getDriverTimestamp(int &seconds, int &useconds) const
void getDAQTimestamp(int &seconds, int &useconds) const