CMS 3D CMS Logo

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
HcalSourcePositionData
Definition: HcalSourcePositionData.h:8
HcalSourcePositionData::~HcalSourcePositionData
~HcalSourcePositionData()
Definition: HcalSourcePositionData.h:11
HcalSourcePositionData::status_
int status_
Definition: HcalSourcePositionData.h:56
HcalSourcePositionData::sourceId
int sourceId() const
Definition: HcalSourcePositionData.h:22
HcalSourcePositionData::getDAQTimestamp
void getDAQTimestamp(int &seconds, int &useconds) const
Definition: HcalSourcePositionData.cc:65
HcalSourcePositionData::messageCounter
int messageCounter() const
Definition: HcalSourcePositionData.h:13
HcalSourcePositionData::indexCounter
int indexCounter() const
Definition: HcalSourcePositionData.h:15
HcalSourcePositionData::message_
std::string message_
Definition: HcalSourcePositionData.h:65
HcalSourcePositionData::message
std::string message() const
Definition: HcalSourcePositionData.h:26
HcalSourcePositionData::messageCounter_
int messageCounter_
Definition: HcalSourcePositionData.h:49
HcalSourcePositionData::tubeId
int tubeId() const
Definition: HcalSourcePositionData.h:20
CaloRecHit.h
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HcalSourcePositionData::sourceId_
int sourceId_
Definition: HcalSourcePositionData.h:61
seconds
double seconds()
HcalSourcePositionData::lastCommand
std::string lastCommand() const
Definition: HcalSourcePositionData.h:25
HcalSourcePositionData::timestamp1_usec_
int timestamp1_usec_
Definition: HcalSourcePositionData.h:53
HcalSourcePositionData::tubeDescriptionFromSD
std::string tubeDescriptionFromSD() const
Definition: HcalSourcePositionData.h:24
HcalSourcePositionData::motorVoltage_
int motorVoltage_
Definition: HcalSourcePositionData.h:58
operator<<
std::ostream & operator<<(std::ostream &s, const HcalSourcePositionData &hspd)
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalSourcePositionData::lastCommand_
std::string lastCommand_
Definition: HcalSourcePositionData.h:64
HcalSourcePositionData::driverId_
int driverId_
Definition: HcalSourcePositionData.h:60
HcalSourcePositionData::tubeNameFromCoord_
std::string tubeNameFromCoord_
Definition: HcalSourcePositionData.h:62
HcalSourcePositionData::set
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)
Definition: HcalSourcePositionData.cc:26
HcalSourcePositionData::motorCurrent_
int motorCurrent_
Definition: HcalSourcePositionData.h:57
HcalSourcePositionData::reelCounter
int reelCounter() const
Definition: HcalSourcePositionData.h:16
HcalSourcePositionData::tubeId_
int tubeId_
Definition: HcalSourcePositionData.h:59
HcalSourcePositionData::getDriverTimestamp
void getDriverTimestamp(int &seconds, int &useconds) const
Definition: HcalSourcePositionData.cc:60
HcalSourcePositionData::HcalSourcePositionData
HcalSourcePositionData()
Definition: HcalSourcePositionData.cc:6
HcalSourcePositionData::reelCounter_
int reelCounter_
Definition: HcalSourcePositionData.h:51
HcalSourcePositionData::timestamp2_sec_
int timestamp2_sec_
Definition: HcalSourcePositionData.h:54
HcalSourcePositionData::motorVoltage
int motorVoltage() const
Definition: HcalSourcePositionData.h:19
HcalSourcePositionData::timestamp1_sec_
int timestamp1_sec_
Definition: HcalSourcePositionData.h:52
HcalSourcePositionData::motorCurrent
int motorCurrent() const
Definition: HcalSourcePositionData.h:17
HcalSourcePositionData::tubeDescriptionFromSD_
std::string tubeDescriptionFromSD_
Definition: HcalSourcePositionData.h:63
HcalSourcePositionData::timestamp2_usec_
int timestamp2_usec_
Definition: HcalSourcePositionData.h:55
HcalSourcePositionData::indexCounter_
int indexCounter_
Definition: HcalSourcePositionData.h:50
HcalSourcePositionData::driverId
int driverId() const
Definition: HcalSourcePositionData.h:21
HcalSourcePositionData::status
int status() const
Definition: HcalSourcePositionData.h:14
HcalSourcePositionData::speed
int speed() const
Definition: HcalSourcePositionData.h:18
HcalSourcePositionData::tubeNameFromCoord
std::string tubeNameFromCoord() const
Definition: HcalSourcePositionData.h:23