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

In This Package:

DayaBay::CalibSource Class Reference

DAQ calibration run source description. More...

#include <CalibSource.h>

Collaboration diagram for DayaBay::CalibSource:

[legend]
List of all members.

Public Member Functions

 CalibSource ()
 Default Constructor.
 CalibSource (const CalibSource &rh)
 Copy Constructor.
CalibSourceoperator= (const CalibSource &rh)
 Assignment operator.
virtual ~CalibSource ()
 Default Destructor.
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
const DayaBay::CalibSourceIdid () const
 Retrieve const The ID number of calibration source.
void setId (const DayaBay::CalibSourceId &value)
 Update The ID number of calibration source.
double ledFrequency () const
 Retrieve const Frequency for calibration LEDs.
void setLedFrequency (double value)
 Update Frequency for calibration LEDs.
double adZPosition () const
 Retrieve const Z position along calibration axis for AD sources.
void setAdZPosition (double value)
 Update Z position along calibration axis for AD sources.

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::CalibSourceId m_id
 The ID number of calibration source.
double m_ledFrequency
 Frequency for calibration LEDs.
double m_adZPosition
 Z position along calibration axis for AD sources.

Detailed Description

DAQ calibration run source description.

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

Definition at line 39 of file CalibSource.h.


Constructor & Destructor Documentation

DayaBay::CalibSource::CalibSource (  )  [inline]

Default Constructor.

Definition at line 44 of file CalibSource.h.

00044                   : m_id(DayaBay::CalibSourceId(0)),
00045                     m_ledFrequency(0),
00046                     m_adZPosition(0) {}

DayaBay::CalibSource::CalibSource ( const CalibSource rh  )  [inline]

Copy Constructor.

Definition at line 140 of file CalibSource.h.

00140                                                                     : 
00141    m_id( rh.m_id ),
00142    m_ledFrequency( rh.m_ledFrequency ),
00143    m_adZPosition( rh.m_adZPosition )
00144    {}

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

Default Destructor.

Definition at line 55 of file CalibSource.h.

00055 {}


Member Function Documentation

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

Assignment operator.

Definition at line 146 of file CalibSource.h.

00146                                                                                        {
00147   if ( this != &rh ) {
00148     m_id           = rh.m_id;
00149     m_ledFrequency = rh.m_ledFrequency;
00150     m_adZPosition  = rh.m_adZPosition;
00151   }
00152   return *this;
00153 }

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

Fill the ASCII output stream.

Definition at line 155 of file CalibSource.h.

00156 {
00157   s << "{ " << "id :    " << m_id << std::endl
00158             << "ledFrequency :  " << (float)m_ledFrequency << std::endl
00159             << "adZPosition :   " << (float)m_adZPosition << std::endl << " }";
00160   return s;
00161 }

const DayaBay::CalibSourceId & DayaBay::CalibSource::id (  )  const [inline]

Retrieve const The ID number of calibration source.

Definition at line 164 of file CalibSource.h.

00165 {
00166   return m_id;
00167 }

void DayaBay::CalibSource::setId ( const DayaBay::CalibSourceId value  )  [inline]

Update The ID number of calibration source.

Definition at line 169 of file CalibSource.h.

00170 {
00171   m_id = value;
00172 }

double DayaBay::CalibSource::ledFrequency (  )  const [inline]

Retrieve const Frequency for calibration LEDs.

Definition at line 174 of file CalibSource.h.

00175 {
00176   return m_ledFrequency;
00177 }

void DayaBay::CalibSource::setLedFrequency ( double  value  )  [inline]

Update Frequency for calibration LEDs.

Definition at line 179 of file CalibSource.h.

00180 {
00181   m_ledFrequency = value;
00182 }

double DayaBay::CalibSource::adZPosition (  )  const [inline]

Retrieve const Z position along calibration axis for AD sources.

Definition at line 184 of file CalibSource.h.

00185 {
00186   return m_adZPosition;
00187 }

void DayaBay::CalibSource::setAdZPosition ( double  value  )  [inline]

Update Z position along calibration axis for AD sources.

Definition at line 189 of file CalibSource.h.

00190 {
00191   m_adZPosition = value;
00192 }

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

operator new

Definition at line 87 of file CalibSource.h.

00088     {
00089       return ( sizeof(CalibSource) == size ? 
00090                boost::singleton_pool<CalibSource, sizeof(CalibSource)>::malloc() :
00091                ::operator new(size) );
00092     }

static void* DayaBay::CalibSource::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 97 of file CalibSource.h.

00098     {
00099       return ::operator new (size,pObj);
00100     }

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

operator delete

Definition at line 103 of file CalibSource.h.

00104     {
00105       boost::singleton_pool<CalibSource, sizeof(CalibSource)>::is_from(p) ?
00106       boost::singleton_pool<CalibSource, sizeof(CalibSource)>::free(p) :
00107       ::operator delete(p);
00108     }

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

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

Definition at line 112 of file CalibSource.h.

00113     {
00114       ::operator delete (p, pObj);
00115     }


Member Data Documentation

DayaBay::CalibSourceId DayaBay::CalibSource::m_id [private]

The ID number of calibration source.

Definition at line 121 of file CalibSource.h.

double DayaBay::CalibSource::m_ledFrequency [private]

Frequency for calibration LEDs.

Definition at line 122 of file CalibSource.h.

double DayaBay::CalibSource::m_adZPosition [private]

Z position along calibration axis for AD sources.

Definition at line 123 of file CalibSource.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:22:13 2011 for RunData by doxygen 1.4.7