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 tubeId_; }
22  inline int driverId() const { return driverId_; }
23  inline int sourceId() const { return sourceId_; }
25  inline std::string tubeNameFromSD() const { return tubeNameFromSD_; }
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 tube_id,
43  int driver_id,
44  int source_id,
49 
50 private:
58  int status_;
61  int tubeId_;
62  int driverId_;
63  int sourceId_;
68 };
69 
70 std::ostream& operator<<(std::ostream& s, const HcalSourcePositionData& hspd);
71 
72 #endif
double seconds()
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
std::string tubeNameFromCoord() const
std::string lastCommand() const
void getDriverTimestamp(int &seconds, int &useconds) const
void getDAQTimestamp(int &seconds, int &useconds) const
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 tube_id, int driver_id, int source_id, std::string tubeNameFromCoord, std::string tubeNameFromSD, std::string lastCommand, std::string message)
std::string message() const
std::string tubeNameFromSD() const