/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::TESDemoPositron Class Reference

Positron demonstration class for TESDemo. More...

#include <TESDemoPositron.h>

Inheritance diagram for DayaBay::TESDemoPositron:
Inheritance graph
[legend]
Collaboration diagram for DayaBay::TESDemoPositron:
Collaboration graph
[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 CLID & clID () 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 GenericAddress * outputAddress () const
virtual const GenericAddress * inputAddress () 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 CLID & classID ()
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.

Detailed Description

Positron demonstration class for TESDemo.

Author:
Simon Patton created Thu Dec 5 18:17:27 2013

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.

{

          setTimeStamp(timeStamp);
          setReadout(readout);
          setEarliest(timeStamp);
          setLatest(timeStamp);
        
}
DayaBay::TESDemoPositron::TESDemoPositron ( ) [inline]

Default Constructor.

Definition at line 52 of file TESDemoPositron.h.

: m_timeStamp() {}
DayaBay::TESDemoPositron::~TESDemoPositron ( ) [inline, virtual]

Destructor.

Definition at line 144 of file TESDemoPositron.h.

{

          // Takes care of reference counting
          setReadout(0);
        
}

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.

{
  TemporalDataObject::fillStream(s);
  TESDemoTracer::fillStream(s);
  s << "{ " << "timeStamp :     " << m_timeStamp << std::endl << " }";
  return s;
}
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.

                                                                      {
  setReadout(value.data());
}
void TESDemoPositron::setReadout ( const DayaBay::TESDemoReadout value)

Set the readout from which this positron was constructed.

Definition at line 9 of file TESDemoPositron.cpp.

                                                            {
  if (0 == value) {
    if (0 != m_readout) {
      m_readout->release();
    }
  } else if (m_readout.data() != value) {
    if (0 != m_readout) {
      m_readout->release();
    }
    const_cast<TESDemoReadout*>(value)->addRef();
  }
  m_readout = value;
}
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.

{
  return m_timeStamp;
}
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.

{
  m_timeStamp = value;
}
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.

{
  return m_readout;
}
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.

    {
      return ( sizeof(TESDemoPositron) == size ? 
               boost::singleton_pool<TESDemoPositron, sizeof(TESDemoPositron)>::malloc() :
               ::operator new(size) );
    }
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.

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

operator delete

Reimplemented from DayaBay::TemporalDataObject.

Definition at line 97 of file TESDemoPositron.h.

    {
      boost::singleton_pool<TESDemoPositron, sizeof(TESDemoPositron)>::is_from(p) ?
      boost::singleton_pool<TESDemoPositron, sizeof(TESDemoPositron)>::free(p) :
      ::operator delete(p);
    }
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.

    {
      ::operator delete (p, pObj);
    }
void TESDemoTracer::setMessageSvc ( IMessageSvc *  msgSvc,
const std::string &  name 
) [static, inherited]

Definition at line 25 of file TESDemoTracer.cpp.

                                                         {
  m_msgStream = new MsgStream(value,
                              name);
}

Member Data Documentation

The reconstructed time of this positron's decay.

Definition at line 115 of file TESDemoPositron.h.

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 Fri May 16 2014 10:08:47 for TESDemoData by doxygen 1.7.4