ARA ROOT Test BEd Software

AraEvent/AtriSensorHkData.cxx

00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 #include "AtriSensorHkData.h"
00010 #include "TMath.h"
00011 #include <iostream>
00012 #include <fstream>
00013 #include <cstring>
00014 ClassImp(AtriSensorHkData);
00015 
00016 AtriSensorHkData::AtriSensorHkData() 
00017 {
00018    //Default Constructor
00019 }
00020 
00021 AtriSensorHkData::~AtriSensorHkData() {
00022    //Default Destructor
00023 }
00024 
00025 
00026 AtriSensorHkData::AtriSensorHkData(AraSensorHk_t *theHk)
00027   :RawAraGenericHeader(&(theHk->gHdr))
00028 {
00029 
00030   unixTime=theHk->unixTime; 
00031   unixTimeUs=theHk->unixTimeUs; 
00032 
00033   atriVoltage=theHk->atriVoltage; 
00034   atriCurrent=theHk->atriCurrent; 
00035   memcpy(ddaTemp,theHk->ddaTemp,sizeof(UShort_t)*DDA_PER_ATRI); 
00036   memcpy(tdaTemp,theHk->tdaTemp,sizeof(UShort_t)*TDA_PER_ATRI); 
00037   memcpy(ddaVoltageCurrent,theHk->ddaVoltageCurrent,sizeof(UInt_t)*DDA_PER_ATRI); 
00038   memcpy(tdaVoltageCurrent,theHk->tdaVoltageCurrent,sizeof(UInt_t)*DDA_PER_ATRI); 
00039 
00040 }

Generated on Wed Aug 8 16:20:07 2012 for ARA ROOT Test Bed Software by doxygen 1.4.7