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

In This Package:

Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Static Private Attributes | Friends
DybDaq::RtmTraits_v1_3 Class Reference

#include <RtmTraits_v1_3.h>

Inheritance diagram for DybDaq::RtmTraits_v1_3:
Inheritance graph
[legend]
Collaboration diagram for DybDaq::RtmTraits_v1_3:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector
< BitsDefinition
Definitions

Public Member Functions

 RtmTraits_v1_3 ()
virtual ~RtmTraits_v1_3 ()
virtual unsigned int majorVersion () const
virtual unsigned int minorVersion () const
virtual const std::string versionString () const
virtual unsigned int rtmSize () const
virtual void initializeRtm (char *buffer) const
virtual unsigned int illegalMarker () const
virtual unsigned int illegalField () const
virtual unsigned int marker (unsigned int marker) const
virtual const char * boolAsString (bool value) const
const DaqTraits::DefinitionsbitsDefinitions (unsigned int component) const

Static Public Member Functions

static const char * key ()
static const RtmTraitsdefaultTraits ()
static const RtmTraitsreadTraits (const char *&buffer)
static const RtmTraitsgetTraits (const unsigned int version)

Static Public Attributes

static const unsigned int kData = 0
static const unsigned int kRtmMarkerValue = 0xa5
static const unsigned int kRtmMarker = 0
static const unsigned int kRpcCFId = RtmTraits::kRtmMarker + 1
static const unsigned int kTransErr = RtmTraits::kRpcCFId + 1
static const unsigned int kRomAlmostFull = RtmTraits::kTransErr + 1
static const unsigned int kRtmAlmostFull = RtmTraits::kRomAlmostFull + 1
static const unsigned int kFullFlag = RtmTraits::kRtmAlmostFull + 1
static const unsigned int kValidGPS = RtmTraits::kFullFlag + 1
static const unsigned int kValidCLK = RtmTraits::kValidGPS + 1
static const unsigned int kUsingUTC = RtmTraits::kValidCLK + 1
static const unsigned int kSecond = RtmTraits::kUsingUTC + 1
static const unsigned int kNanoSecond = RtmTraits::kSecond + 1
static const unsigned int kAccumulation = RtmTraits::kNanoSecond + 1
static const unsigned int kTriggerRot = RtmTraits::kAccumulation + 1
static const unsigned int kTrigRot1Type = RtmTraits::kTriggerMap + 1
static const unsigned int kTrigRot1 = RtmTraits::kTrigRot1Type + 1
static const unsigned int kTrigRot2Type = RtmTraits::kTrigRot1 + 1
static const unsigned int kTrigRot2 = RtmTraits::kTrigRot2Type + 1
static const unsigned int kTriggerMap = RtmTraits::kTriggerRot + 1
static const unsigned int kTrigMap1Type = RtmTraits::kTrigRot2 + 1
static const unsigned int kTrigMap1 = RtmTraits::kTrigMap1Type + 1
static const unsigned int kTrigMap2Type = RtmTraits::kTrigMap1 + 1
static const unsigned int kTrigMap2 = RtmTraits::kTrigMap2Type + 1
static const unsigned int kForceTrig = RtmTraits::kTrigMap2 + 1
static const unsigned int kVersionNum = RtmTraits::kForceTrig + 1

Protected Member Functions

virtual unsigned int markersEnd () const
virtual const unsigned int * markers () const
virtual unsigned int fieldsEnd () const
virtual const unsigned int * indices () const
virtual const unsigned int * shifts () const
virtual const unsigned int * masks () const
virtual const std::string * descriptions () const
virtual DaqTraits::Definitionsdefinitions (unsigned int component) const
virtual void setDefinitions (DaqTraits::Definitions *definitions, unsigned int component)
virtual const unsigned int * componentFields (unsigned int component) const
virtual const unsigned int componentFieldsEnd (unsigned int component) const
unsigned int index (unsigned int field) const

Static Protected Member Functions

static unsigned int readUnsignedInt (const char *&buffer, const DaqTraits &traits, unsigned int field)

Private Member Functions

 RtmTraits_v1_3 (const RtmTraits &)
RtmTraits_v1_3operator= (const RtmTraits &)

Static Private Attributes

static const unsigned int m_indices []
static const unsigned int m_shifts []
static const unsigned int m_masks []

Friends

friend class DaqBuffer

Detailed Description

Definition at line 8 of file RtmTraits_v1_3.h.


Constructor & Destructor Documentation

RtmTraits_v1_3::RtmTraits_v1_3 ( )

Definition at line 148 of file RtmTraits_v1_3.cc.

                               {
}
RtmTraits_v1_3::~RtmTraits_v1_3 ( ) [virtual]

Definition at line 151 of file RtmTraits_v1_3.cc.

                                {
}
DybDaq::RtmTraits_v1_3::RtmTraits_v1_3 ( const RtmTraits ) [private]

Member Function Documentation

const char * RtmTraits_v1_3::key ( ) [static]

Definition at line 144 of file RtmTraits_v1_3.cc.

                                {
   return "RTM Format 1.3";
}
unsigned int RtmTraits_v1_3::majorVersion ( ) const [virtual]

Implements DybDaq::DaqTraits.

Definition at line 154 of file RtmTraits_v1_3.cc.

                                                {
   return 1U;
}
unsigned int RtmTraits_v1_3::minorVersion ( ) const [virtual]

Implements DybDaq::DaqTraits.

Definition at line 158 of file RtmTraits_v1_3.cc.

                                                {
   return 3U;
}
const string RtmTraits_v1_3::versionString ( ) const [virtual]

Implements DybDaq::DaqTraits.

Definition at line 162 of file RtmTraits_v1_3.cc.

                                                 {
   return key();
}
unsigned int RtmTraits_v1_3::rtmSize ( ) const [virtual]

Implements DybDaq::RtmTraits.

Definition at line 166 of file RtmTraits_v1_3.cc.

                                           {
   return 6U;
}
void RtmTraits_v1_3::initializeRtm ( char *  buffer) const [virtual]

Implements DybDaq::RtmTraits.

Definition at line 170 of file RtmTraits_v1_3.cc.

                                                     {
   *((unsigned int*)buffer) = 0xa5a50000U;
}
unsigned int RtmTraits_v1_3::markersEnd ( ) const [protected, virtual]

Implements DybDaq::DaqTraits.

Definition at line 174 of file RtmTraits_v1_3.cc.

                                              {
   return 0U;
}
const unsigned int * RtmTraits_v1_3::markers ( ) const [protected, virtual]

Implements DybDaq::DaqTraits.

Definition at line 178 of file RtmTraits_v1_3.cc.

                                                  {
   return 0;
}
unsigned int RtmTraits_v1_3::fieldsEnd ( ) const [protected, virtual]

Implements DybDaq::DaqTraits.

Definition at line 182 of file RtmTraits_v1_3.cc.

                                             {
   return kTrigMap2 + 1;
}
const unsigned int * RtmTraits_v1_3::indices ( ) const [protected, virtual]

Implements DybDaq::DaqTraits.

Definition at line 186 of file RtmTraits_v1_3.cc.

                                                  {
   return m_indices;
}
const unsigned int * RtmTraits_v1_3::shifts ( ) const [protected, virtual]

Implements DybDaq::DaqTraits.

Definition at line 190 of file RtmTraits_v1_3.cc.

                                                 {
        return m_shifts;
}
const unsigned int * RtmTraits_v1_3::masks ( ) const [protected, virtual]

Implements DybDaq::DaqTraits.

Definition at line 194 of file RtmTraits_v1_3.cc.

                                                {
        return m_masks;
}
const std::string * RtmTraits_v1_3::descriptions ( ) const [protected, virtual]

Reimplemented from DybDaq::DaqTraits.

Definition at line 198 of file RtmTraits_v1_3.cc.

                                                    {
    return m_description;
}
DaqTraits::Definitions * RtmTraits_v1_3::definitions ( unsigned int  component) const [protected, virtual]

Reimplemented from DybDaq::DaqTraits.

Definition at line 202 of file RtmTraits_v1_3.cc.

                                                                              {
    return m_definitions[component];
}
void RtmTraits_v1_3::setDefinitions ( DaqTraits::Definitions definitions,
unsigned int  component 
) [protected, virtual]

Reimplemented from DybDaq::DaqTraits.

Definition at line 206 of file RtmTraits_v1_3.cc.

                                                            {
    m_definitions[component] = definitions;
}
const unsigned int * RtmTraits_v1_3::componentFields ( unsigned int  component) const [protected, virtual]

Reimplemented from DybDaq::DaqTraits.

Definition at line 211 of file RtmTraits_v1_3.cc.

                                                                                {
    return m_componentFields[component];
}
const unsigned int RtmTraits_v1_3::componentFieldsEnd ( unsigned int  component) const [protected, virtual]

Reimplemented from DybDaq::DaqTraits.

Definition at line 215 of file RtmTraits_v1_3.cc.

                                                                                  {
    return m_componentFieldsEnd[component];
}
RtmTraits_v1_3& DybDaq::RtmTraits_v1_3::operator= ( const RtmTraits ) [private]

Reimplemented from DybDaq::RtmTraits.

const RtmTraits & RtmTraits::defaultTraits ( ) [static, inherited]

Definition at line 51 of file RtmTraits.cc.

                                          {
   if ( m_allTraits.size() == 0 ) {
      m_allTraits.insert(std::pair<const char*, RtmTraits*>(RtmTraits_v1_3::key(), new RtmTraits_v1_3()));
      m_allTraits.insert(std::pair<const char*, RtmTraits*>(RtmTraits_v1_6::key(), new RtmTraits_v1_6()));
   }
   return *m_allTraits[ RtmTraits_v1_6::key() ];
}
const RtmTraits * RtmTraits::readTraits ( const char *&  buffer) [static, inherited]

Definition at line 59 of file RtmTraits.cc.

const RtmTraits * RtmTraits::getTraits ( const unsigned int  version) [static, inherited]

Definition at line 64 of file RtmTraits.cc.

                                                                {
   defaultTraits();
   if ( version == 0x13 ) {
      return m_allTraits[ RtmTraits_v1_3::key() ];
   }
   return m_allTraits[ RtmTraits_v1_6::key() ];
}
unsigned int RtmTraits::illegalMarker ( ) const [virtual, inherited]

Implements DybDaq::DaqTraits.

Definition at line 72 of file RtmTraits.cc.

                                            {
   return 0xffffffffU;
}
unsigned int RtmTraits::illegalField ( ) const [virtual, inherited]

Implements DybDaq::DaqTraits.

Definition at line 76 of file RtmTraits.cc.

                                           {
   return 0xffffffffU;
}

Member Data Documentation

const unsigned int RtmTraits_v1_3::m_indices [static, private]
Initial value:
 {
   0U,  
   0U,  
   0U,  
   0U,  
   0U,  
   0U,  
   0U,  
   0U,  
   0U,  
   1U,  
   2U,  
   3U,  
   4U,  
   5U,  
   4U,  
   4U,  
   4U,  
   4U,  
   5U,  
   5U,  
   5U,  
   5U   
}

Definition at line 61 of file RtmTraits_v1_3.h.

const unsigned int RtmTraits_v1_3::m_shifts [static, private]
Initial value:
 {
   16U,  
   12U,  
    8U,  
    5U,  
    4U,  
    3U,  
    2U,  
    1U,  
    0U,  
    0U,  
    0U,  
    0U,  
    0U,  
    0U,  
   15U,  
    0U,  
   31U,  
   16U,  
   15U,  
    0U,  
   31U,  
   16U   
}

Definition at line 62 of file RtmTraits_v1_3.h.

const unsigned int RtmTraits_v1_3::m_masks [static, private]
Initial value:
 {
   0x0000ffff,  
   0x0000000f,  
   0x00000001,  
   0x00000001,  
   0x00000001,  
   0x00000001,  
   0x00000001,  
   0x00000001,  
   0x00000001,  
   0xffffffff,  
   0xffffffff,  
   0xffffffff,  
   0xffffffff,  
   0xffffffff,  
   0x00000001,  
   0x00007fff,  
   0x00000001,  
   0x00000fff,  
   0x00000001,  
   0x00007fff,  
   0x00000001,  
   0x00000fff   
}

Definition at line 63 of file RtmTraits_v1_3.h.

const unsigned int RtmTraits::kData = 0 [static, inherited]

Definition at line 14 of file RtmTraits.h.

const unsigned int RtmTraits::kRtmMarkerValue = 0xa5 [static, inherited]

Definition at line 17 of file RtmTraits.h.

const unsigned int RtmTraits::kRtmMarker = 0 [static, inherited]

Definition at line 21 of file RtmTraits.h.

const unsigned int RtmTraits::kRpcCFId = RtmTraits::kRtmMarker + 1 [static, inherited]

Definition at line 24 of file RtmTraits.h.

const unsigned int RtmTraits::kTransErr = RtmTraits::kRpcCFId + 1 [static, inherited]

Definition at line 27 of file RtmTraits.h.

const unsigned int RtmTraits::kRomAlmostFull = RtmTraits::kTransErr + 1 [static, inherited]

Definition at line 30 of file RtmTraits.h.

const unsigned int RtmTraits::kRtmAlmostFull = RtmTraits::kRomAlmostFull + 1 [static, inherited]

Definition at line 33 of file RtmTraits.h.

const unsigned int RtmTraits::kFullFlag = RtmTraits::kRtmAlmostFull + 1 [static, inherited]

Definition at line 36 of file RtmTraits.h.

const unsigned int RtmTraits::kValidGPS = RtmTraits::kFullFlag + 1 [static, inherited]

Definition at line 39 of file RtmTraits.h.

const unsigned int RtmTraits::kValidCLK = RtmTraits::kValidGPS + 1 [static, inherited]

Definition at line 42 of file RtmTraits.h.

const unsigned int RtmTraits::kUsingUTC = RtmTraits::kValidCLK + 1 [static, inherited]

Definition at line 45 of file RtmTraits.h.

const unsigned int RtmTraits::kSecond = RtmTraits::kUsingUTC + 1 [static, inherited]

Definition at line 48 of file RtmTraits.h.

const unsigned int RtmTraits::kNanoSecond = RtmTraits::kSecond + 1 [static, inherited]

Definition at line 51 of file RtmTraits.h.

const unsigned int RtmTraits::kAccumulation = RtmTraits::kNanoSecond + 1 [static, inherited]

Definition at line 54 of file RtmTraits.h.

const unsigned int RtmTraits::kTriggerRot = RtmTraits::kAccumulation + 1 [static, inherited]

Definition at line 57 of file RtmTraits.h.

const unsigned int RtmTraits::kTrigRot1Type = RtmTraits::kTriggerMap + 1 [static, inherited]

Definition at line 59 of file RtmTraits.h.

const unsigned int RtmTraits::kTrigRot1 = RtmTraits::kTrigRot1Type + 1 [static, inherited]

Definition at line 60 of file RtmTraits.h.

const unsigned int RtmTraits::kTrigRot2Type = RtmTraits::kTrigRot1 + 1 [static, inherited]

Definition at line 61 of file RtmTraits.h.

const unsigned int RtmTraits::kTrigRot2 = RtmTraits::kTrigRot2Type + 1 [static, inherited]

Definition at line 62 of file RtmTraits.h.

const unsigned int RtmTraits::kTriggerMap = RtmTraits::kTriggerRot + 1 [static, inherited]

Definition at line 65 of file RtmTraits.h.

const unsigned int RtmTraits::kTrigMap1Type = RtmTraits::kTrigRot2 + 1 [static, inherited]

Definition at line 67 of file RtmTraits.h.

const unsigned int RtmTraits::kTrigMap1 = RtmTraits::kTrigMap1Type + 1 [static, inherited]

Definition at line 68 of file RtmTraits.h.

const unsigned int RtmTraits::kTrigMap2Type = RtmTraits::kTrigMap1 + 1 [static, inherited]

Definition at line 69 of file RtmTraits.h.

const unsigned int RtmTraits::kTrigMap2 = RtmTraits::kTrigMap2Type + 1 [static, inherited]

Definition at line 70 of file RtmTraits.h.

const unsigned int RtmTraits::kForceTrig = RtmTraits::kTrigMap2 + 1 [static, inherited]

Definition at line 73 of file RtmTraits.h.

const unsigned int RtmTraits::kVersionNum = RtmTraits::kForceTrig + 1 [static, inherited]

Definition at line 76 of file RtmTraits.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:52:52 for RtmReadoutFormat by doxygen 1.7.4