test
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 
4 #include <string>
5 
7 
9 public:
10 
13 
14  inline int messageCounter() const { return messageCounter_; }
15  inline int status() const { return status_; }
16  inline int indexCounter() const { return indexCounter_; }
17  inline int reelCounter() const { return reelCounter_; }
18  inline int motorCurrent() const { return motorCurrent_; }
19  inline int speed() const { return -1; } // no longer implemented
20  inline int motorVoltage() const { return motorVoltage_; }
21  inline int tubeId() const { return -1; } // no longer implemented
22  inline int driverId() const { return driverId_; }
23  inline int sourceId() const { return sourceId_; }
26  inline std::string lastCommand() const { return lastCommand_; }
27  inline std::string message() const { return message_; }
28 
29  void getDriverTimestamp(int& seconds, int& useconds) const;
30  void getDAQTimestamp(int& seconds, int& useconds) const;
31 
32  void set(int message_counter,
33  int timestamp1_sec,
34  int timestamp1_usec,
35  int timestamp2_sec,
36  int timestamp2_usec,
37  int status,
38  int index_counter,
39  int reel_counter,
40  int motor_current,
41  int motor_voltage,
42  int driver_id,
43  int source_id,
45  std::string tubeDescFromSD,
48 
49 private:
57  int status_;
60  int tubeId_;
61  int driverId_;
62  int sourceId_;
67 };
68 
69 std::ostream& operator<<(std::ostream& s, const HcalSourcePositionData& hspd);
70 
71 #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:188
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