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

In This Package:

DayaBay::TESDemoNeutron Class Reference

Neutron demostration class for TESDemo. More...

#include <TESDemoNeutron.h>

Inheritance diagram for DayaBay::TESDemoNeutron:

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

Public Member Functions

 TESDemoNeutron (const TimeStamp &timeStamp, const DayaBay::TESDemoReadout *readout)
 Standard constructor.
 TESDemoNeutron ()
 Default Constructor.
virtual ~TESDemoNeutron ()
 Destructor.
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
void setReadout (const SmartRef< DayaBay::TESDemoReadout > &value)
 Set the readout from which this neutron was constructed.
void setReadout (const DayaBay::TESDemoReadout *value)
 Set the readout from which this neutron was constructed.
const TimeStamptimeStamp () const
 Retrieve const The reconstructed time of this neutron's capture.
void setTimeStamp (const TimeStamp &value)
 Update The reconstructed time of this neutron's capture.
const DayaBay::TESDemoReadoutreadout () const
 Retrieve (const) The readout from which this neutron was constructed.
virtual const CLIDclID () const
virtual const std::string & defLoc ()
virtual void setOutputAddress (const GenericAddress *roa)
virtual void setInputAddress (const GenericAddress *ria)
virtual const TimeStampearliest () const
void setEarliest (const TimeStamp &value)
virtual const TimeStamplatest () const
void setLatest (const TimeStamp &value)
virtual const GenericAddressoutputAddress () const
virtual const GenericAddressinputAddress () const
void setRegistry (IRegistry *pRegistry)
IRegistryregistry () const
LinkManagerlinkMgr () const
unsigned char version () const
void setVersion (unsigned char vsn)
unsigned long refCount () const
virtual unsigned long addRef ()
virtual unsigned long release ()
const std::string & name () const
virtual StreamBufferserialize (StreamBuffer &s)
virtual StreamBufferserialize (StreamBuffer &s) const

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
static const CLIDclassID ()

Private Attributes

TimeStamp m_timeStamp
 The reconstructed time of this neutron's capture.
SmartRef< DayaBay::TESDemoReadoutm_readout
 The readout from which this neutron was constructed.

Friends

friend friend std::ostream & operator<< (std::ostream &s, const DataObject &obj)

Detailed Description

Neutron demostration class for TESDemo.

Author:
Simon Patton created Mon Apr 11 04:16:19 2011

Definition at line 42 of file TESDemoNeutron.h.


Constructor & Destructor Documentation

DayaBay::TESDemoNeutron::TESDemoNeutron ( const TimeStamp timeStamp,
const DayaBay::TESDemoReadout readout 
) [inline]

Standard constructor.

Definition at line 132 of file TESDemoNeutron.h.

00134 {
00135 
00136           setTimeStamp(timeStamp);
00137                 setReadout(readout);
00138           setEarliest(timeStamp);
00139           setLatest(timeStamp);
00140       
00141 }

DayaBay::TESDemoNeutron::TESDemoNeutron (  )  [inline]

Default Constructor.

Definition at line 51 of file TESDemoNeutron.h.

00051 : m_timeStamp() {}

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

Destructor.

Definition at line 143 of file TESDemoNeutron.h.

00144 {
00145 
00146           // Takes care of reference counting
00147                 setReadout(0);
00148         
00149 }


Member Function Documentation

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

Fill the ASCII output stream.

Reimplemented from DayaBay::TemporalDataObject.

Definition at line 151 of file TESDemoNeutron.h.

00152 {
00153   TemporalDataObject::fillStream(s);
00154   s << "{ " << "timeStamp :     " << m_timeStamp << std::endl << " }";
00155   return s;
00156 }

void TESDemoNeutron::setReadout ( const SmartRef< DayaBay::TESDemoReadout > &  value  ) 

Set the readout from which this neutron was constructed.

Definition at line 5 of file TESDemoNeutron.cpp.

00005                                                                      {
00006   m_readout = value;
00007 }

void TESDemoNeutron::setReadout ( const DayaBay::TESDemoReadout value  ) 

Set the readout from which this neutron was constructed.

Definition at line 9 of file TESDemoNeutron.cpp.

00009                                                            {
00010   m_readout = value;
00011 }

const TimeStamp & DayaBay::TESDemoNeutron::timeStamp (  )  const [inline]

Retrieve const The reconstructed time of this neutron's capture.

Definition at line 159 of file TESDemoNeutron.h.

00160 {
00161   return m_timeStamp;
00162 }

void DayaBay::TESDemoNeutron::setTimeStamp ( const TimeStamp value  )  [inline]

Update The reconstructed time of this neutron's capture.

Definition at line 164 of file TESDemoNeutron.h.

00165 {
00166   m_timeStamp = value;
00167 }

const DayaBay::TESDemoReadout * DayaBay::TESDemoNeutron::readout (  )  const [inline]

Retrieve (const) The readout from which this neutron was constructed.

Definition at line 169 of file TESDemoNeutron.h.

00170 {
00171   return m_readout;
00172 }

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

operator new

Reimplemented from DayaBay::TemporalDataObject.

Definition at line 80 of file TESDemoNeutron.h.

00081     {
00082       return ( sizeof(TESDemoNeutron) == size ? 
00083                boost::singleton_pool<TESDemoNeutron, sizeof(TESDemoNeutron)>::malloc() :
00084                ::operator new(size) );
00085     }

static void* DayaBay::TESDemoNeutron::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::TemporalDataObject.

Definition at line 90 of file TESDemoNeutron.h.

00091     {
00092       return ::operator new (size,pObj);
00093     }

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

operator delete

Reimplemented from DayaBay::TemporalDataObject.

Definition at line 96 of file TESDemoNeutron.h.

00097     {
00098       boost::singleton_pool<TESDemoNeutron, sizeof(TESDemoNeutron)>::is_from(p) ?
00099       boost::singleton_pool<TESDemoNeutron, sizeof(TESDemoNeutron)>::free(p) :
00100       ::operator delete(p);
00101     }

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

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

Reimplemented from DayaBay::TemporalDataObject.

Definition at line 105 of file TESDemoNeutron.h.

00106     {
00107       ::operator delete (p, pObj);
00108     }


Member Data Documentation

TimeStamp DayaBay::TESDemoNeutron::m_timeStamp [private]

The reconstructed time of this neutron's capture.

Definition at line 114 of file TESDemoNeutron.h.

SmartRef<DayaBay::TESDemoReadout> DayaBay::TESDemoNeutron::m_readout [private]

The readout from which this neutron was constructed.

Definition at line 115 of file TESDemoNeutron.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 Mon Apr 11 20:39:14 2011 for TESDemoData by doxygen 1.4.7