36 messageCounter_=message_counter;
37 indexCounter_=index_counter;
38 reelCounter_=reel_counter;
39 timestamp1_sec_=timestamp1_sec;
40 timestamp1_usec_=timestamp1_usec;
41 timestamp2_sec_=timestamp2_sec;
42 timestamp2_usec_=timestamp2_usec;
44 motorCurrent_=motor_current;
52 seconds=timestamp1_sec_;
53 useconds=timestamp1_usec_;
57 seconds=timestamp2_sec_;
58 useconds=timestamp2_usec_;
65 s <<
" Reel Counter =" << hspd.
reelCounter() << endl;
66 s <<
" Status =" << hex << hspd.
status() << dec << endl;
68 s <<
" Speed =" << hspd.
speed() << endl;
69 s <<
" Tube Id =" << hspd.
tubeId() << endl;
70 s <<
" Driver Id =" << hspd.
driverId() << endl;
71 s <<
" Source Id =" << hspd.
sourceId() << endl;
73 int timebase =0;
int timeusec=0;
77 timebase += timeusec/1000000;
79 sprintf(str,
" Driver Timestamp : %s", ctime((time_t *)&timebase));
81 timebase=0; timeusec=0;
84 timebase += timeusec/1000000;
86 sprintf(str,
" DAQ Timestamp : %s", ctime((time_t *)&timebase));
int messageCounter() const
ostream & operator<<(std::ostream &o, const vector< std::string > &iValue)
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 speed, int tube_id, int driver_id, int source_id)
void getDriverTimestamp(int &seconds, int &useconds) const
void getDAQTimestamp(int &seconds, int &useconds) const