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

In This Package:

EventTraits_v0_6.h
Go to the documentation of this file.
00001 #ifndef EVENTREADOUTFORMAT_EVENTTRAITS_v0_6_H
00002 #define EVENTREADOUTFORMAT_EVENTTRAITS_v0_6_H
00003 
00004 /*
00005  *  EventTraits_v0_6.h
00006  *  EventReadoutFormat
00007  *
00008  *  Created by Simon Patton on 7/19/10.
00009  *  Copyright 2010 DayaBay Collaboration. All rights reserved.
00010  *
00011  */
00012 
00013 #include "EventReadoutFormat/EventTraits.h"
00014 
00015 namespace DybDaq {
00016     
00017     class EventTraits_v0_6 : public EventTraits {
00018         
00019     public:
00020         
00024         static const char* key();
00025         
00029         EventTraits_v0_6();
00030         
00034         virtual ~EventTraits_v0_6();
00035         
00036         /*
00037          * Returns the major version of the event format as an unsigned int.
00038          */
00039         virtual unsigned int majorVersion() const;
00040         
00041         /*
00042          * Returns the major version of the event format as an unsigned int.
00043          */
00044         virtual unsigned int minorVersion() const;
00045         
00049         virtual const std::string versionString() const;
00050         
00054         virtual unsigned int headerSize(const unsigned int marker) const;
00055         
00059         virtual void initializeHeader(const unsigned int marker,
00060                                       char* buffer) const;
00061         
00062     protected:
00063         
00067         virtual unsigned int markersEnd() const;
00068         
00072         virtual const unsigned int* markers() const;
00073         
00077         virtual unsigned int fieldsEnd() const;
00078         
00082         virtual const unsigned int* indices() const;
00083         
00087         virtual const unsigned int* shifts() const;
00088         
00092         virtual const unsigned int* masks() const;
00093         
00097         virtual const std::string* descriptions() const;
00098         
00102         virtual DaqTraits::Definitions* definitions(unsigned int component) const;
00103         
00107         virtual void setDefinitions(DaqTraits::Definitions* definitions,
00108                                     unsigned int component);        
00112         virtual const unsigned int* componentFields(unsigned int component) const;
00113         
00117         virtual const unsigned int componentFieldsEnd(unsigned int component) const;    
00118         
00122         virtual unsigned int maxSite() const;
00123         
00127         virtual const char** siteStrings() const;
00128         
00132         virtual unsigned int maxDetector() const;
00133         
00137         virtual const char** detectorStrings() const;
00138         
00142         virtual unsigned int maxDataType() const;
00143         
00147         virtual const char** dataTypeStrings() const;
00148         
00152         virtual unsigned int maxModuleType() const;
00153         
00157         virtual const unsigned int* moduleTypes() const;
00158         
00162         virtual const char** moduleTypeStrings() const;
00163         
00164     private:
00165         
00169         EventTraits_v0_6(EventTraits_v0_6& rhs);
00170         
00174         EventTraits_v0_6& operator=(EventTraits_v0_6& rhs);
00175         
00176     };
00177     
00178 }
00179 
00180 #endif // EVENTREADOUTFORMAT_EVENTTRAITS_v0_7_H
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:53:15 for EventReadoutFormat by doxygen 1.7.4