CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalSourcePositionData.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_HCALRECHIT_HCALSOURCEPOSITIONDATA_H
2 #define DATAFORMATS_HCALRECHIT_HCALSOURCEPOSITIONDATA_H 1
3 
4 #include <string>
5 
7 
9 public:
12 
13  inline int messageCounter() const { return messageCounter_; }
14  inline int status() const { return status_; }
15  inline int indexCounter() const { return indexCounter_; }
16  inline int reelCounter() const { return reelCounter_; }
17  inline int motorCurrent() const { return motorCurrent_; }
18  inline int speed() const { return -1; } // no longer implemented
19  inline int motorVoltage() const { return motorVoltage_; }
20  inline int tubeId() const { return -1; } // no longer implemented
21  inline int driverId() const { return driverId_; }
22  inline int sourceId() const { return sourceId_; }
25  inline std::string lastCommand() const { return lastCommand_; }
26  inline std::string message() const { return message_; }
27 
28  void getDriverTimestamp(int& seconds, int& useconds) const;
29  void getDAQTimestamp(int& seconds, int& useconds) const;
30 
31  void set(int message_counter,
32  int timestamp1_sec,
33  int timestamp1_usec,
34  int timestamp2_sec,
35  int timestamp2_usec,
36  int status,
37  int index_counter,
38  int reel_counter,
39  int motor_current,
40  int motor_voltage,
41  int driver_id,
42  int source_id,
44  std::string tubeDescFromSD,
47 
48 private:
56  int status_;
59  int tubeId_;
60  int driverId_;
61  int sourceId_;
66 };
67 
68 std::ostream& operator<<(std::ostream& s, const HcalSourcePositionData& hspd);
69 
70 #endif
double seconds()
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 motor_voltage, int driver_id, int source_id, std::string tubeNameFromCoord, std::string tubeDescFromSD, std::string lastCommand, std::string message)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
std::string tubeNameFromCoord() const
std::string tubeDescriptionFromSD() const
std::string lastCommand() const
void getDriverTimestamp(int &seconds, int &useconds) const
void getDAQTimestamp(int &seconds, int &useconds) const
std::string message() const