AraEvent/RawAraGenericHeader.cxx
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 #include "RawAraGenericHeader.h" 00011 #include "AraRootVersion.h" 00012 #include <iostream> 00013 #include <fstream> 00014 #include <cstring> 00015 ClassImp(RawAraGenericHeader); 00016 00017 RawAraGenericHeader::RawAraGenericHeader() 00018 :softVerMajor(ARA_ROOT_MAJOR),softVerMinor(ARA_ROOT_MINOR) 00019 { 00020 //Default Constructor 00021 } 00022 00023 RawAraGenericHeader::~RawAraGenericHeader() { 00024 //Default Destructor 00025 } 00026 00027 00028 RawAraGenericHeader::RawAraGenericHeader(AtriGenericHeader_t *gHdr) 00029 :softVerMajor(ARA_ROOT_MAJOR),softVerMinor(ARA_ROOT_MINOR) 00030 { 00031 typeId=gHdr->typeId; 00032 verId=gHdr->verId; 00033 subVerId=gHdr->subVerId; 00034 stationId=gHdr->stationId; 00035 reserved=gHdr->reserved; 00036 numBytes=gHdr->numBytes; 00037 checksum=gHdr->checksum; 00038 } 00039 RawAraGenericHeader::RawAraGenericHeader(UInt_t thisStationId) 00040 :softVerMajor(ARA_ROOT_MAJOR),softVerMinor(ARA_ROOT_MINOR) 00041 { 00042 if(thisStationId==ARA_TESTBED||thisStationId==ARA_STATION1){ //Is this an Icrr type station? 00043 typeId=ARA_ICRR_EVENT_TYPE; 00044 stationId=thisStationId; 00045 verId=0; 00046 subVerId=0; 00047 reserved=0; 00048 numBytes=0; 00049 checksum=0; 00050 } 00051 }
Generated on Tue Jul 16 16:58:01 2013 for ARA ROOT v3.10 Software by
