LogWatchdStart.cxx
1 
9 #include "LogWatchdStart.h"
10 #include "AnitaPacketUtil.h"
11 #include <iostream>
12 #include <fstream>
13 #include <cstring>
14 
15 ClassImp(LogWatchdStart);
16 
18 {
19  //Default Constructor
20 }
21 
23  //Default Destructor
24 }
25 
26 
27 LogWatchdStart::LogWatchdStart(Int_t trun, Int_t trealTime, LogWatchdStart_t *startPtr)
28 {
29  simplePacketCheck(&(startPtr->gHdr),PACKET_LOGWATCHD_START);
30 
31  run=trun;
32  realTime=trealTime;
33  payloadTime=startPtr->unixTime;
34  runReported=startPtr->runNumber;
35  upTime=startPtr->upTime;
36  idleTime=startPtr->idleTime;
37 }
38 
UInt_t payloadTime
Time in unixTime.
Float_t upTime
CPU uptime.
LogWatchdStart()
Default constructor.
LogWatchdStart – The start packet from LogWatchd.
~LogWatchdStart()
Destructor.
LogWatchdStart_t – Yes.
UInt_t runReported
Run number from the payload.
UInt_t realTime
Time in unixTime.
Float_t idleTime
CPU idletime.
LogWatchd Start Block – Telemetered.
Int_t run
Run number assigned offline.
int simplePacketCheck(GenericHeader_t *gHdr, PacketCode_t code)
simplePacketCheck – utility function