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

In This Package:

Public Member Functions | Static Public Member Functions | Private Attributes
DayaBay::ElecCrate Class Reference

Generic Electronics Crate. More...

#include <ElecCrate.h>

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

List of all members.

Public Member Functions

 ElecCrate (const DayaBay::Detector &detector, DayaBay::ElecCrateHeader *header)
 standard constructor
 ElecCrate (const Site::Site_t &site, const DetectorId::DetectorId_t &detectorId, DayaBay::ElecCrateHeader *header)
 standard constructor
 ElecCrate ()
 Default Constructor.
virtual ~ElecCrate ()
 Default Destructor.
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
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

DayaBay::Detector m_detector
 The detector associated with this electronics crate.
DayaBay::ElecCrateHeaderm_header
 The crate header for this electronics crate.

Detailed Description

Generic Electronics Crate.

Author:
Dan Dwyer (GOD Migration by bseilhan) created Thu Dec 5 18:07:49 2013

Definition at line 43 of file ElecCrate.h.


Constructor & Destructor Documentation

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

standard constructor

Definition at line 139 of file ElecCrate.h.

{

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

standard constructor

Definition at line 148 of file ElecCrate.h.

{

          setDetector(DayaBay::Detector(site,
                                        detectorId));
          setHeader(header);
        
}
DayaBay::ElecCrate::ElecCrate ( ) [inline]

Default Constructor.

Definition at line 57 of file ElecCrate.h.

                : m_detector(0),
                  m_header(0) {}
virtual DayaBay::ElecCrate::~ElecCrate ( ) [inline, virtual]

Default Destructor.

Definition at line 61 of file ElecCrate.h.

{}

Member Function Documentation

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

Fill the ASCII output stream.

Reimplemented in DayaBay::ElecFecCrate, and DayaBay::ElecFeeCrate.

Definition at line 159 of file ElecCrate.h.

{
  s << "{ " << "detector :      " << m_detector << std::endl
            << "header :        " << m_header << std::endl << " }";
  return s;
}
const DayaBay::Detector & DayaBay::ElecCrate::detector ( ) const [inline]

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]

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]

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]

Update The crate header for this electronics crate.

Definition at line 182 of file ElecCrate.h.

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

operator new

Reimplemented in DayaBay::ElecFecCrate, and DayaBay::ElecFeeCrate.

Definition at line 85 of file ElecCrate.h.

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

Definition at line 95 of file ElecCrate.h.

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

operator delete

Reimplemented in DayaBay::ElecFecCrate, and DayaBay::ElecFeeCrate.

Definition at line 101 of file ElecCrate.h.

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

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

Reimplemented in DayaBay::ElecFecCrate, and DayaBay::ElecFeeCrate.

Definition at line 110 of file ElecCrate.h.

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

Member Data Documentation

The detector associated with this electronics crate.

Definition at line 119 of file ElecCrate.h.

The crate header for this electronics crate.

Definition at line 120 of file ElecCrate.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