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

In This Package:

DayaBay::TESDemoPositron Class Reference

Positron demonstration class for TESDemo. More...

#include <TESDemoPositron.h>

Inheritance diagram for DayaBay::TESDemoPositron:

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

Public Member Functions

 TESDemoPositron (const TimeStamp &timeStamp, const DayaBay::TESDemoReadout *readout)
 Standard constructor.
 TESDemoPositron ()
 Default Constructor.
virtual ~TESDemoPositron ()
 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 positron was constructed.
void setReadout (const DayaBay::TESDemoReadout *value)
 Set the readout from which this positron was constructed.
const TimeStamptimeStamp () const
 Retrieve const The reconstructed time of this positron's decay.
void setTimeStamp (const TimeStamp &value)
 Update The reconstructed time of this positron's decay.
const DayaBay::TESDemoReadoutreadout () const
 Retrieve (const) The readout from which this positron 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 ()
static void setMessageSvc (IMessageSvc *msgSvc, const std::string &name)

Private Attributes

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

Friends

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

Detailed Description

Positron demonstration class for TESDemo.

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

Definition at line 43 of file TESDemoPositron.h.


Constructor & Destructor Documentation

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

Standard constructor.

Definition at line 133 of file TESDemoPositron.h.

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

DayaBay::TESDemoPositron::TESDemoPositron (  )  [inline]

Default Constructor.

Definition at line 52 of file TESDemoPositron.h.

00052 : m_timeStamp() {}

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

Destructor.

Definition at line 144 of file TESDemoPositron.h.

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


Member Function Documentation

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

Fill the ASCII output stream.

Reimplemented from DayaBay::TemporalDataObject.

Definition at line 152 of file TESDemoPositron.h.

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

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

Set the readout from which this positron was constructed.

Definition at line 5 of file TESDemoPositron.cpp.

00005                                                                       {
00006   setReadout(value.data());
00007 }

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

Set the readout from which this positron was constructed.

Definition at line 9 of file TESDemoPositron.cpp.

00009                                                             {
00010   if (0 == value) {
00011     if (0 != m_readout) {
00012       m_readout->release();
00013     }
00014   } else if (m_readout.data() != value) {
00015     if (0 != m_readout) {
00016       m_readout->release();
00017     }
00018     const_cast<TESDemoReadout*>(value)->addRef();
00019   }
00020   m_readout = value;
00021 }

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

Retrieve const The reconstructed time of this positron's decay.

Definition at line 161 of file TESDemoPositron.h.

00162 {
00163   return m_timeStamp;
00164 }

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

Update The reconstructed time of this positron's decay.

Definition at line 166 of file TESDemoPositron.h.

00167 {
00168   m_timeStamp = value;
00169 }

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

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

Definition at line 171 of file TESDemoPositron.h.

00172 {
00173   return m_readout;
00174 }

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

operator new

Reimplemented from DayaBay::TemporalDataObject.

Definition at line 81 of file TESDemoPositron.h.

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

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

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

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

operator delete

Reimplemented from DayaBay::TemporalDataObject.

Definition at line 97 of file TESDemoPositron.h.

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

static void DayaBay::TESDemoPositron::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 106 of file TESDemoPositron.h.

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

void TESDemoTracer::setMessageSvc ( IMessageSvc msgSvc,
const std::string &  name 
) [static, inherited]

Definition at line 25 of file TESDemoTracer.cpp.

00026                                                          {
00027   m_msgStream = new MsgStream(value,
00028                               name);
00029 }


Member Data Documentation

TimeStamp DayaBay::TESDemoPositron::m_timeStamp [private]

The reconstructed time of this positron's decay.

Definition at line 115 of file TESDemoPositron.h.

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

The readout from which this positron was constructed.

Definition at line 116 of file TESDemoPositron.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:15 2011 for TESDemoData by doxygen 1.4.7