/search.css" rel="stylesheet" type="text/css"/> /search.js">
00001 #ifndef FILEREADOUTFORMAT_MOMPARAMETERSRECORD_H 00002 #define FILEREADOUTFORMAT_MOMPARAMETERSRECORD_H 00003 00004 /* 00005 * MomParametersRecord.h 00006 * FileReadoutFormat 00007 * 00008 * Created by Simon Patton on 7/18/10. 00009 * Copyright 2010 DayaBay Collaboration. All rights reserved. 00010 * 00011 */ 00012 00013 #include "FileReadoutFormat/FileBuffer.h" 00014 00015 namespace DybDaq { 00016 00017 class MomParametersRecord : public FileBuffer { 00018 00019 public: 00020 00024 /* 00025 MomParametersRecord(const unsigned int runNumber, 00026 const bool recordEnabled, 00027 const unsigned int triggerType, 00028 const unsigned int detectorMask, 00029 const FileTraits& traits); 00030 */ 00031 00035 MomParametersRecord(const DybDaq::ByteBuffer& byteBuffer, 00036 const FileTraits& traits); 00037 00041 virtual ~MomParametersRecord(); 00042 00046 virtual bool isMarked(unsigned int marker) const; 00047 00051 unsigned int detectorId() const; 00052 00056 unsigned int adNumber() const; 00057 00061 unsigned int sourceType() const; 00062 00066 unsigned int pulsePeriod() const; 00067 00071 unsigned int ledBias() const; 00072 00076 unsigned int ledWavelength() const; 00077 00081 unsigned int pulseWidth() const; 00082 00083 protected: 00084 00088 virtual unsigned int formatComponent() const; 00089 00090 private: 00091 00095 MomParametersRecord(); 00096 00100 MomParametersRecord(MomParametersRecord& rhs); 00101 00105 MomParametersRecord& operator=(MomParametersRecord& rhs); 00106 00107 }; 00108 00109 } 00110 00111 #endif // FILEREADOUTFORMAT_MOMPARAMETERSRECORD_H