/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

MomParametersRecord.cc
Go to the documentation of this file.
00001 /*
00002  *  MomParametersRecord.cc
00003  *  RawDataBundle
00004  *
00005  *  Created by Simon Patton on 7/18/10.
00006  *  Copyright 2010 DayaBay Collaboration. All rights reserved.
00007  *
00008  */
00009 #include "FileReadoutFormat/MomParametersRecord.h"
00010 
00011 #include "FileReadoutFormat/FileTraits.h"
00012 
00013 using DybDaq::FileTraits;
00014 using DybDaq::MomParametersRecord;
00015 
00016 /*
00017 MomParametersRecord::MomParametersRecord(const unsigned int runNumber,
00018                                          const bool recordEnabled,
00019                                          const unsigned int triggerType,
00020                                          const unsigned int detectorMask,
00021                                          const FileTraits& traits) :
00022 FileBuffer(new char[traits.recordSize(FileTraits::kMomParametersRecord) * kBytesInInt],
00023            traits,
00024            FileTraits::kMomParametersRecord) {
00025     setRunNumber(runNumber);
00026     setRecordEnabled(recordEnabled);
00027     setTriggerType(triggerType);
00028     setDetectorMask(detectorMask);
00029 }
00030 */
00031 
00032 MomParametersRecord::MomParametersRecord(const ByteBuffer& byteBuffer,
00033                                          const FileTraits& traits) :
00034 FileBuffer(byteBuffer,
00035            traits) {
00036 }
00037 
00038 MomParametersRecord::~MomParametersRecord() {
00039 }
00040 
00041 bool MomParametersRecord::isMarked(unsigned int marker) const {
00042     return FileTraits::kMomParametersRecord == marker;
00043 }
00044 
00045 unsigned int MomParametersRecord::detectorId() const {
00046   return readUnsignedInt(FileTraits::kMomDetectorId);
00047 }
00048 
00049 unsigned int MomParametersRecord::adNumber() const {
00050   return readUnsignedInt(FileTraits::kMomAdNumber);
00051 }
00052 
00053 unsigned int MomParametersRecord::sourceType() const {
00054   return readUnsignedInt(FileTraits::kMomSourceType);
00055 }
00056 
00057 unsigned int MomParametersRecord::pulsePeriod() const {
00058   return readUnsignedInt(FileTraits::kMomPulsePeriod);
00059 }
00060 
00061 unsigned int MomParametersRecord::ledBias() const {
00062   return readUnsignedInt(FileTraits::kMomLedBias);
00063 }
00064 
00065 unsigned int MomParametersRecord::ledWavelength() const {
00066   return readUnsignedInt(FileTraits::kMomLedWavelength);
00067 }
00068 
00069 unsigned int MomParametersRecord::pulseWidth() const {
00070   return readUnsignedInt(FileTraits::kMomPulseWidth);
00071 }
00072 
00073 unsigned int MomParametersRecord::formatComponent() const {
00074     return FileTraits::kMomParametersRecord;
00075 }
00076 
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:53:22 for FileReadoutFormat by doxygen 1.7.4