| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DayaBay::ElecFecCrate Class Reference

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

#include <ElecFecCrate.h>

Inheritance diagram for DayaBay::ElecFecCrate:

[legend]
Collaboration diagram for DayaBay::ElecFecCrate:
[legend]
List of all members.

Public Types

typedef std::map< DayaBay::FecChannelId,
DayaBay::DigitalSignal
ChannelData
 Map of FEC channel data 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 addChannel (const DayaBay::FecChannelId &channelId)
 Adds a channel to this crate.
DigitalSignalchannel (const DayaBay::FecChannelId &channelId)
 Returns the specified channel data from this Crate.
const ChannelDatachannelData () const
 Retrieve const The set of channels in this crate.
void setChannelData (const ChannelData &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

ChannelData m_channelData
 The set of channels in this crate.

Detailed Description

RPC Front-end card Electronics Crate.

Author:
dandwyer@caltech.edu created Mon Apr 11 04:03:03 2011

Definition at line 40 of file ElecFecCrate.h.


Member Typedef Documentation

typedef std::map<DayaBay::FecChannelId,DayaBay::DigitalSignal> DayaBay::ElecFecCrate::ChannelData

Map of FEC channel data by channel ID.

Definition at line 45 of file ElecFecCrate.h.


Constructor & Destructor Documentation

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

standard constructor

Definition at line 133 of file ElecFecCrate.h.

00135 {
00136 
00137           setDetector(detector);
00138           setHeader(header);
00139         
00140 }

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

standard constructor

Definition at line 142 of file ElecFecCrate.h.

00145 {
00146 
00147           setDetector(DayaBay::Detector(site,
00148                                         detectorId));
00149           setHeader(header);
00150         
00151 }

DayaBay::ElecFecCrate::ElecFecCrate (  )  [inline]

Default Constructor.

Definition at line 57 of file ElecFecCrate.h.

00057 : m_channelData() {}

virtual DayaBay::ElecFecCrate::~ElecFecCrate (  )  [inline, virtual]

Default Destructor.

Definition at line 60 of file ElecFecCrate.h.

00060 {}


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 153 of file ElecFecCrate.h.

00154 {
00155   ElecCrate::fillStream(s);
00156   s << "{ " << "channelData :   " << m_channelData << std::endl << " }";
00157   return s;
00158 }

void DayaBay::ElecFecCrate::addChannel ( const DayaBay::FecChannelId channelId  )  [inline]

Adds a channel to this crate.

Definition at line 171 of file ElecFecCrate.h.

00172 {
00173 
00174           m_channelData[channelId];
00175         
00176 }

DayaBay::DigitalSignal & DayaBay::ElecFecCrate::channel ( const DayaBay::FecChannelId channelId  )  [inline]

Returns the specified channel data from this Crate.

Definition at line 178 of file ElecFecCrate.h.

00179 {
00180 return m_channelData[channelId];
00181 }

const DayaBay::ElecFecCrate::ChannelData & DayaBay::ElecFecCrate::channelData (  )  const [inline]

Retrieve const The set of channels in this crate.

Definition at line 161 of file ElecFecCrate.h.

00162 {
00163   return m_channelData;
00164 }

void DayaBay::ElecFecCrate::setChannelData ( const ChannelData value  )  [inline]

Update The set of channels in this crate.

Definition at line 166 of file ElecFecCrate.h.

00167 {
00168   m_channelData = value;
00169 }

static void* DayaBay::ElecFecCrate::operator new ( size_t  size  )  [inline, static]

operator new

Reimplemented from DayaBay::ElecCrate.

Definition at line 82 of file ElecFecCrate.h.

00083     {
00084       return ( sizeof(ElecFecCrate) == size ? 
00085                boost::singleton_pool<ElecFecCrate, sizeof(ElecFecCrate)>::malloc() :
00086                ::operator new(size) );
00087     }

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 92 of file ElecFecCrate.h.

00093     {
00094       return ::operator new (size,pObj);
00095     }

static void DayaBay::ElecFecCrate::operator delete ( void *  p  )  [inline, static]

operator delete

Reimplemented from DayaBay::ElecCrate.

Definition at line 98 of file ElecFecCrate.h.

00099     {
00100       boost::singleton_pool<ElecFecCrate, sizeof(ElecFecCrate)>::is_from(p) ?
00101       boost::singleton_pool<ElecFecCrate, sizeof(ElecFecCrate)>::free(p) :
00102       ::operator delete(p);
00103     }

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 107 of file ElecFecCrate.h.

00108     {
00109       ::operator delete (p, pObj);
00110     }

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.

00168 {
00169   return m_detector;
00170 }

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.

00173 {
00174   m_detector = value;
00175 }

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.

00178 {
00179   return m_header;
00180 }

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.

00183 {
00184   m_header = value;
00185 }


Member Data Documentation

ChannelData DayaBay::ElecFecCrate::m_channelData [private]

The set of channels in this crate.

Definition at line 116 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 Mon Apr 11 20:32:33 2011 for ElecEvent by doxygen 1.4.7