/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 | Private Attributes
DayaBay::ReadoutFecBoard Class Reference

Readout data for one FEC board in the RPC electronics. More...

#include <ReadoutFecBoard.h>

Collaboration diagram for DayaBay::ReadoutFecBoard:
Collaboration graph
[legend]

List of all members.

Public Types

typedef unsigned int FecHitmap
 FEC board hit map type, 32 bits.

Public Member Functions

 ReadoutFecBoard (const DayaBay::FecChannelId &boardId, DayaBay::ReadoutRpcCrate *readout)
 standard constructor
 ReadoutFecBoard ()
 Default Constructor.
 ReadoutFecBoard (const ReadoutFecBoard &rh)
 Copy Constructor.
ReadoutFecBoardoperator= (const ReadoutFecBoard &rh)
 Assignment operator.
virtual ~ReadoutFecBoard ()
 Default Destructor.
std::ostream & fillStream (std::ostream &s) const
 Print the crate data.
const FecHitmaphitMap () const
 Retrieve const Hit map for the FEC.
void setHitMap (const FecHitmap &value)
 Update Hit map for the FEC.
const DayaBay::FecChannelIdboardId () const
 Retrieve const Front-End Card ID.
void setBoardId (const DayaBay::FecChannelId &value)
 Update Front-End Card ID.
const DayaBay::ReadoutRpcCratereadout () const
 Retrieve const Reference to full readout which contains this data.
void setReadout (DayaBay::ReadoutRpcCrate *value)
 Update Reference to full readout which contains this data.
bool flag3of4 () const
 Retrieve const 3/4 trigger flag.
void setFlag3of4 (bool value)
 Update 3/4 trigger flag.
bool flag2of4 () const
 Retrieve const 2/4 trigger flag.
void setFlag2of4 (bool value)
 Update 2/4 trigger flag.

Static Public Member Functions

static void * operator new (size_t size)
 operator new
static void * operator new (size_t size, void *pObj)
 placement operator new it is needed by libstdc++ 3.2.3 (e.g.
static void operator delete (void *p)
 operator delete
static void operator delete (void *p, void *pObj)
 placement operator delete not sure if really needed, but it does not harm

Private Attributes

FecHitmap m_hitMap
 Hit map for the FEC.
DayaBay::FecChannelId m_boardId
 Front-End Card ID.
DayaBay::ReadoutRpcCratem_readout
 Reference to full readout which contains this data.
bool m_flag3of4
 3/4 trigger flag
bool m_flag2of4
 2/4 trigger flag

Detailed Description

Readout data for one FEC board in the RPC electronics.

Author:
created Thu Dec 5 17:52:31 2013

Definition at line 43 of file ReadoutFecBoard.h.


Member Typedef Documentation

FEC board hit map type, 32 bits.

Definition at line 48 of file ReadoutFecBoard.h.


Constructor & Destructor Documentation

DayaBay::ReadoutFecBoard::ReadoutFecBoard ( const DayaBay::FecChannelId boardId,
DayaBay::ReadoutRpcCrate readout 
) [inline]

standard constructor

Definition at line 173 of file ReadoutFecBoard.h.

                                                                                  : m_hitMap(0),
                                                                                         m_boardId(0),
                                                                                         m_readout(0),
                                                                                         m_flag3of4(false),
                                                                                         m_flag2of4(false) 
{

          setBoardId(boardId);
          setReadout(readout);
        
}
DayaBay::ReadoutFecBoard::ReadoutFecBoard ( ) [inline]

Default Constructor.

Definition at line 55 of file ReadoutFecBoard.h.

                      : m_hitMap(0),
                        m_boardId(0),
                        m_readout(0),
                        m_flag3of4(false),
                        m_flag2of4(false) {}
DayaBay::ReadoutFecBoard::ReadoutFecBoard ( const ReadoutFecBoard rh) [inline]

Copy Constructor.

Definition at line 186 of file ReadoutFecBoard.h.

                                                                                : 
   m_hitMap( rh.m_hitMap ),
   m_boardId( rh.m_boardId ),
   m_readout( rh.m_readout ),
   m_flag3of4( rh.m_flag3of4 ),
   m_flag2of4( rh.m_flag2of4 )
   {}
virtual DayaBay::ReadoutFecBoard::~ReadoutFecBoard ( ) [inline, virtual]

Default Destructor.

Definition at line 68 of file ReadoutFecBoard.h.

{}

Member Function Documentation

DayaBay::ReadoutFecBoard & DayaBay::ReadoutFecBoard::operator= ( const ReadoutFecBoard rh) [inline]

Assignment operator.

Definition at line 194 of file ReadoutFecBoard.h.

                                                                                                   {
  if ( this != &rh ) {
    m_hitMap   = rh.m_hitMap;
    m_boardId  = rh.m_boardId;
    m_readout  = rh.m_readout;
    m_flag3of4 = rh.m_flag3of4;
    m_flag2of4 = rh.m_flag2of4;
  }
  return *this;
}
std::ostream & DayaBay::ReadoutFecBoard::fillStream ( std::ostream &  s) const

Print the crate data.

Definition at line 4 of file ReadoutFecBoard.cc.

{
    s << "{ "
      << "2of4 flag : " << std::boolalpha << m_flag2of4
      << ", 3of4 flag : " << m_flag3of4 << std::noboolalpha
      << ", Fec hitmap : " << std::hex << m_hitMap << std::dec;
    s << "}";
    return s;
}
const DayaBay::ReadoutFecBoard::FecHitmap & DayaBay::ReadoutFecBoard::hitMap ( ) const [inline]

Retrieve const Hit map for the FEC.

Definition at line 205 of file ReadoutFecBoard.h.

{
  return m_hitMap;
}
void DayaBay::ReadoutFecBoard::setHitMap ( const FecHitmap value) [inline]

Update Hit map for the FEC.

Definition at line 210 of file ReadoutFecBoard.h.

{
  m_hitMap = value;
}
const DayaBay::FecChannelId & DayaBay::ReadoutFecBoard::boardId ( ) const [inline]

Retrieve const Front-End Card ID.

Definition at line 215 of file ReadoutFecBoard.h.

{
  return m_boardId;
}
void DayaBay::ReadoutFecBoard::setBoardId ( const DayaBay::FecChannelId value) [inline]

Update Front-End Card ID.

Definition at line 220 of file ReadoutFecBoard.h.

{
  m_boardId = value;
}
const DayaBay::ReadoutRpcCrate * DayaBay::ReadoutFecBoard::readout ( ) const [inline]

Retrieve const Reference to full readout which contains this data.

Definition at line 225 of file ReadoutFecBoard.h.

{
  return m_readout;
}
void DayaBay::ReadoutFecBoard::setReadout ( DayaBay::ReadoutRpcCrate value) [inline]

Update Reference to full readout which contains this data.

Definition at line 230 of file ReadoutFecBoard.h.

{
  m_readout = value;
}
bool DayaBay::ReadoutFecBoard::flag3of4 ( ) const [inline]

Retrieve const 3/4 trigger flag.

Definition at line 235 of file ReadoutFecBoard.h.

{
  return m_flag3of4;
}
void DayaBay::ReadoutFecBoard::setFlag3of4 ( bool  value) [inline]

Update 3/4 trigger flag.

Definition at line 240 of file ReadoutFecBoard.h.

{
  m_flag3of4 = value;
}
bool DayaBay::ReadoutFecBoard::flag2of4 ( ) const [inline]

Retrieve const 2/4 trigger flag.

Definition at line 245 of file ReadoutFecBoard.h.

{
  return m_flag2of4;
}
void DayaBay::ReadoutFecBoard::setFlag2of4 ( bool  value) [inline]

Update 2/4 trigger flag.

Definition at line 250 of file ReadoutFecBoard.h.

{
  m_flag2of4 = value;
}
static void* DayaBay::ReadoutFecBoard::operator new ( size_t  size) [inline, static]

operator new

Definition at line 116 of file ReadoutFecBoard.h.

    {
      return ( sizeof(ReadoutFecBoard) == size ? 
               boost::singleton_pool<ReadoutFecBoard, sizeof(ReadoutFecBoard)>::malloc() :
               ::operator new(size) );
    }
static void* DayaBay::ReadoutFecBoard::operator new ( size_t  size,
void *  pObj 
) [inline, static]

placement operator new it is needed by libstdc++ 3.2.3 (e.g.

in std::vector) it is not needed in libstdc++ >= 3.4

Definition at line 126 of file ReadoutFecBoard.h.

    {
      return ::operator new (size,pObj);
    }
static void DayaBay::ReadoutFecBoard::operator delete ( void *  p) [inline, static]

operator delete

Definition at line 132 of file ReadoutFecBoard.h.

    {
      boost::singleton_pool<ReadoutFecBoard, sizeof(ReadoutFecBoard)>::is_from(p) ?
      boost::singleton_pool<ReadoutFecBoard, sizeof(ReadoutFecBoard)>::free(p) :
      ::operator delete(p);
    }
static void DayaBay::ReadoutFecBoard::operator delete ( void *  p,
void *  pObj 
) [inline, static]

placement operator delete not sure if really needed, but it does not harm

Definition at line 141 of file ReadoutFecBoard.h.

    {
      ::operator delete (p, pObj);
    }

Member Data Documentation

Hit map for the FEC.

Definition at line 150 of file ReadoutFecBoard.h.

Front-End Card ID.

Definition at line 151 of file ReadoutFecBoard.h.

Reference to full readout which contains this data.

Definition at line 152 of file ReadoutFecBoard.h.

3/4 trigger flag

Definition at line 153 of file ReadoutFecBoard.h.

2/4 trigger flag

Definition at line 154 of file ReadoutFecBoard.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 10:01:16 for ReadoutEvent by doxygen 1.7.4