20 tubeNameFromCoord_ =
"";
21 tubeDescriptionFromSD_ =
"";
42 messageCounter_ = message_counter;
43 indexCounter_ = index_counter;
44 reelCounter_ = reel_counter;
45 timestamp1_sec_ = timestamp1_sec;
46 timestamp1_usec_ = timestamp1_usec;
47 timestamp2_sec_ = timestamp2_sec;
48 timestamp2_usec_ = timestamp2_usec;
50 motorCurrent_ = motor_current;
51 motorVoltage_ = motor_voltage;
52 driverId_ = driver_id;
53 sourceId_ = source_id;
54 tubeNameFromCoord_ = tubeNameFromCoord;
55 tubeDescriptionFromSD_ = tubeDescFromSD;
56 lastCommand_ = lastCommand;
62 useconds = timestamp1_usec_;
67 useconds = timestamp2_usec_;
74 s <<
" Status =" << hex << hspd.
status() <<
dec << endl;
77 s <<
" Tube Id =" << hspd.
tubeId() << endl;
78 s <<
" Driver Id =" << hspd.
driverId() << endl;
79 s <<
" Source Id =" << hspd.
sourceId() << endl;
83 s <<
" Message =" << hspd.
message() << endl;
90 timebase += timeusec / 1000000;
92 sprintf(
str,
" Driver Timestamp : %s", ctime((time_t*)&timebase));
98 timebase += timeusec / 1000000;
100 sprintf(
str,
" DAQ Timestamp : %s", ctime((time_t*)&timebase));
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)
void getDriverTimestamp(int &seconds, int &useconds) const
std::string tubeNameFromCoord() const
std::ostream & operator<<(std::ostream &out, const std::tuple< Types... > &value)
void getDAQTimestamp(int &seconds, int &useconds) const
int messageCounter() const
std::string message() const
std::string tubeDescriptionFromSD() const
std::string lastCommand() const