#include <TESDemoPositron.h>
Inheritance diagram for DayaBay::TESDemoPositron:
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 TimeStamp & | timeStamp () 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::TESDemoReadout * | readout () 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 TimeStamp & | earliest () const |
void | setEarliest (const TimeStamp &value) |
virtual const TimeStamp & | latest () const |
void | setLatest (const TimeStamp &value) |
virtual const GenericAddress * | outputAddress () const |
virtual const GenericAddress * | inputAddress () const |
void | setRegistry (IRegistry *pRegistry) |
IRegistry * | registry () const |
LinkManager * | linkMgr () 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 StreamBuffer & | serialize (StreamBuffer &s) |
virtual StreamBuffer & | serialize (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 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::TESDemoReadout > | m_readout |
The readout from which this positron was constructed. | |
Friends | |
friend friend std::ostream & | operator<< (std::ostream &s, const DataObject &obj) |
Definition at line 43 of file TESDemoPositron.h.
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] |
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 }
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.
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 }
The readout from which this positron was constructed.
Definition at line 116 of file TESDemoPositron.h.