/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::ElecFecCrate Class Reference

RPC Front-end card Electronics Crate. More...

#include <ElecFecCrate.h>

Inheritance diagram for DayaBay::ElecFecCrate:
Inheritance graph
[legend]
Collaboration diagram for DayaBay::ElecFecCrate:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::map
< DayaBay::FecChannelId,
DayaBay::ElecFecBoard
FecBoardMap
 Map of FEC board by channel ID.

Public Member Functions

 ElecFecCrate (const DayaBay::Detector &detector, DayaBay::ElecCrateHeader *header)
 standard constructor
 ElecFecCrate (const Site::Site_t &site, const DetectorId::DetectorId_t &detectorId, DayaBay::ElecCrateHeader *header)
 standard constructor
 ElecFecCrate ()
 Default Constructor.
virtual ~ElecFecCrate ()
 Default Destructor.
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
void addBoard (const DayaBay::FecChannelId &channelId)
 Adds a board to this crate.
ElecFecBoardboard (const DayaBay::FecChannelId &channelId)
 Returns the specified board from this Crate.
const FecBoardMapfecBoards () const
 Retrieve const The set of channels in this crate.
void setFecBoards (const FecBoardMap &value)
 Update The set of channels in this crate.
const DayaBay::Detectordetector () const
 Retrieve const The detector associated with this electronics crate.
void setDetector (const DayaBay::Detector &value)
 Update The detector associated with this electronics crate.
const DayaBay::ElecCrateHeaderheader () const
 Retrieve const The crate header for this electronics crate.
void setHeader (DayaBay::ElecCrateHeader *value)
 Update The crate header for this electronics crate.

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

FecBoardMap m_fecBoards
 The set of channels in this crate.

Detailed Description

RPC Front-end card Electronics Crate.

Author:
dandwyer@caltech.edu created Thu Dec 5 18:07:47 2013

Definition at line 41 of file ElecFecCrate.h.


Member Typedef Documentation

Map of FEC board by channel ID.

Definition at line 46 of file ElecFecCrate.h.


Constructor & Destructor Documentation

DayaBay::ElecFecCrate::ElecFecCrate ( const DayaBay::Detector detector,
DayaBay::ElecCrateHeader header 
) [inline]

standard constructor

Definition at line 49 of file ElecFecCrate.h.

                                                 : DayaBay::ElecCrate(detector,
                                                     header) {}
DayaBay::ElecFecCrate::ElecFecCrate ( const Site::Site_t site,
const DetectorId::DetectorId_t detectorId,
DayaBay::ElecCrateHeader header 
) [inline]

standard constructor

Definition at line 54 of file ElecFecCrate.h.

                                                 : DayaBay::ElecCrate(site,
                                                               detectorId,
                                                               header) {}
DayaBay::ElecFecCrate::ElecFecCrate ( ) [inline]

Default Constructor.

Definition at line 61 of file ElecFecCrate.h.

: m_fecBoards() {}
virtual DayaBay::ElecFecCrate::~ElecFecCrate ( ) [inline, virtual]

Default Destructor.

Definition at line 64 of file ElecFecCrate.h.

{}

Member Function Documentation

std::ostream & DayaBay::ElecFecCrate::fillStream ( std::ostream &  s) const [inline, virtual]

Fill the ASCII output stream.

Reimplemented from DayaBay::ElecCrate.

Definition at line 137 of file ElecFecCrate.h.

{
  ElecCrate::fillStream(s);
  s << "{ " << "fecBoards :     " << m_fecBoards << std::endl << " }";
  return s;
}
void DayaBay::ElecFecCrate::addBoard ( const DayaBay::FecChannelId channelId) [inline]

Adds a board to this crate.

Definition at line 155 of file ElecFecCrate.h.

{

            m_fecBoards[channelId.boardId()].setBoardId(channelId.boardId());
        
}
DayaBay::ElecFecBoard & DayaBay::ElecFecCrate::board ( const DayaBay::FecChannelId channelId) [inline]

Returns the specified board from this Crate.

Definition at line 162 of file ElecFecCrate.h.

{
return m_fecBoards[channelId.boardId()];
}
const DayaBay::ElecFecCrate::FecBoardMap & DayaBay::ElecFecCrate::fecBoards ( ) const [inline]

Retrieve const The set of channels in this crate.

Definition at line 145 of file ElecFecCrate.h.

{
  return m_fecBoards;
}
void DayaBay::ElecFecCrate::setFecBoards ( const FecBoardMap value) [inline]

Update The set of channels in this crate.

Definition at line 150 of file ElecFecCrate.h.

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

operator new

Reimplemented from DayaBay::ElecCrate.

Definition at line 86 of file ElecFecCrate.h.

    {
      return ( sizeof(ElecFecCrate) == size ? 
               boost::singleton_pool<ElecFecCrate, sizeof(ElecFecCrate)>::malloc() :
               ::operator new(size) );
    }
static void* DayaBay::ElecFecCrate::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

Reimplemented from DayaBay::ElecCrate.

Definition at line 96 of file ElecFecCrate.h.

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

operator delete

Reimplemented from DayaBay::ElecCrate.

Definition at line 102 of file ElecFecCrate.h.

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

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

Reimplemented from DayaBay::ElecCrate.

Definition at line 111 of file ElecFecCrate.h.

    {
      ::operator delete (p, pObj);
    }
const DayaBay::Detector & DayaBay::ElecCrate::detector ( ) const [inline, inherited]

Retrieve const The detector associated with this electronics crate.

Definition at line 167 of file ElecCrate.h.

{
  return m_detector;
}
void DayaBay::ElecCrate::setDetector ( const DayaBay::Detector value) [inline, inherited]

Update The detector associated with this electronics crate.

Definition at line 172 of file ElecCrate.h.

{
  m_detector = value;
}
const DayaBay::ElecCrateHeader * DayaBay::ElecCrate::header ( ) const [inline, inherited]

Retrieve const The crate header for this electronics crate.

Definition at line 177 of file ElecCrate.h.

{
  return m_header;
}
void DayaBay::ElecCrate::setHeader ( DayaBay::ElecCrateHeader value) [inline, inherited]

Update The crate header for this electronics crate.

Definition at line 182 of file ElecCrate.h.

{
  m_header = value;
}

Member Data Documentation

The set of channels in this crate.

Definition at line 120 of file ElecFecCrate.h.


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

Generated on Fri May 16 2014 10:05:49 for ElecEvent by doxygen 1.7.4