#include <TESDemoAntiNeutrino.h>
Inheritance diagram for DayaBay::TESDemoAntiNeutrino:
Public Types | |
typedef TemporalObjectVector< TESDemoAntiNeutrino > | Container |
The standard container for this class. | |
Public Member Functions | |
TESDemoAntiNeutrino (const DayaBay::TESDemoPositron *positron, const DayaBay::TESDemoNeutron *neutron) | |
Standard constructor. | |
TESDemoAntiNeutrino () | |
Default Constructor. | |
virtual | ~TESDemoAntiNeutrino () |
Destructor. | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
void | setPositron (const SmartRef< DayaBay::TESDemoPositron > &value) |
Set the positron produced by the decay of this anti-neutrino. | |
void | setPositron (const DayaBay::TESDemoPositron *value) |
Set the positron produced by the decay of this anti-neutrino. | |
void | setNeutron (const SmartRef< DayaBay::TESDemoNeutron > &value) |
Set the neutron produced by the decay of this anti-neutrino. | |
void | setNeutron (const DayaBay::TESDemoNeutron *value) |
Set the neutron produced by the decay of this anti-neutrino. | |
const DayaBay::TESDemoPositron * | positron () const |
Retrieve (const) The positron produced by the decay of this anti-neutrino. | |
const DayaBay::TESDemoNeutron * | neutron () const |
Retrieve (const) The neutron produced by the decay of this anti-neutrino. | |
virtual const TimeStamp & | earliest () const |
void | setEarliest (const TimeStamp &value) |
virtual const TimeStamp & | latest () const |
void | setLatest (const TimeStamp &value) |
virtual const CLID & | clID () const |
const ObjectContainerBase * | parent () const |
void | setParent (ObjectContainerBase *value) |
virtual long | index () const |
virtual StreamBuffer & | serialize (StreamBuffer &s) const |
virtual StreamBuffer & | serialize (StreamBuffer &s) |
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 () |
Private Attributes | |
SmartRef< DayaBay::TESDemoPositron > | m_positron |
The positron produced by the decay of this anti-neutrino. | |
SmartRef< DayaBay::TESDemoNeutron > | m_neutron |
The neutron produced by the decay of this anti-neutrino. | |
Friends | |
friend friend std::ostream & | operator<< (std::ostream &s, const ContainedObject &obj) |
Definition at line 45 of file TESDemoAntiNeutrino.h.
The standard container for this class.
Reimplemented from DayaBay::TemporalContainedObject.
Definition at line 50 of file TESDemoAntiNeutrino.h.
DayaBay::TESDemoAntiNeutrino::TESDemoAntiNeutrino | ( | const DayaBay::TESDemoPositron * | positron, | |
const DayaBay::TESDemoNeutron * | neutron | |||
) | [inline] |
Standard constructor.
Definition at line 140 of file TESDemoAntiNeutrino.h.
00142 { 00143 00144 setPositron(positron); 00145 setNeutron(neutron); 00146 setEarliest(positron->timeStamp()); 00147 setLatest(neutron->timeStamp()); 00148 00149 }
DayaBay::TESDemoAntiNeutrino::TESDemoAntiNeutrino | ( | ) | [inline] |
DayaBay::TESDemoAntiNeutrino::~TESDemoAntiNeutrino | ( | ) | [inline, virtual] |
Destructor.
Definition at line 151 of file TESDemoAntiNeutrino.h.
00152 { 00153 00154 // Takes care of reference counting 00155 setNeutron(0); 00156 setPositron(0); 00157 00158 }
std::ostream & DayaBay::TESDemoAntiNeutrino::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Reimplemented from DayaBay::TemporalContainedObject.
Definition at line 160 of file TESDemoAntiNeutrino.h.
00161 { 00162 TemporalContainedObject::fillStream(s); 00163 return s; 00164 }
void TESDemoAntiNeutrino::setPositron | ( | const SmartRef< DayaBay::TESDemoPositron > & | value | ) |
Set the positron produced by the decay of this anti-neutrino.
Definition at line 5 of file TESDemoAntiNeutrino.cpp.
00005 { 00006 m_positron = value; 00007 }
void TESDemoAntiNeutrino::setPositron | ( | const DayaBay::TESDemoPositron * | value | ) |
Set the positron produced by the decay of this anti-neutrino.
Definition at line 9 of file TESDemoAntiNeutrino.cpp.
00009 { 00010 m_positron = value; 00011 }
void TESDemoAntiNeutrino::setNeutron | ( | const SmartRef< DayaBay::TESDemoNeutron > & | value | ) |
Set the neutron produced by the decay of this anti-neutrino.
Definition at line 13 of file TESDemoAntiNeutrino.cpp.
00013 { 00014 m_neutron = value; 00015 }
void TESDemoAntiNeutrino::setNeutron | ( | const DayaBay::TESDemoNeutron * | value | ) |
Set the neutron produced by the decay of this anti-neutrino.
Definition at line 17 of file TESDemoAntiNeutrino.cpp.
00017 { 00018 m_neutron = value; 00019 }
const DayaBay::TESDemoPositron * DayaBay::TESDemoAntiNeutrino::positron | ( | ) | const [inline] |
Retrieve (const) The positron produced by the decay of this anti-neutrino.
Definition at line 167 of file TESDemoAntiNeutrino.h.
00168 { 00169 return m_positron; 00170 }
const DayaBay::TESDemoNeutron * DayaBay::TESDemoAntiNeutrino::neutron | ( | ) | const [inline] |
Retrieve (const) The neutron produced by the decay of this anti-neutrino.
Definition at line 172 of file TESDemoAntiNeutrino.h.
00173 { 00174 return m_neutron; 00175 }
static void* DayaBay::TESDemoAntiNeutrino::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented from DayaBay::TemporalContainedObject.
Definition at line 88 of file TESDemoAntiNeutrino.h.
00089 { 00090 return ( sizeof(TESDemoAntiNeutrino) == size ? 00091 boost::singleton_pool<TESDemoAntiNeutrino, sizeof(TESDemoAntiNeutrino)>::malloc() : 00092 ::operator new(size) ); 00093 }
static void* DayaBay::TESDemoAntiNeutrino::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::TemporalContainedObject.
Definition at line 98 of file TESDemoAntiNeutrino.h.
static void DayaBay::TESDemoAntiNeutrino::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented from DayaBay::TemporalContainedObject.
Definition at line 104 of file TESDemoAntiNeutrino.h.
00105 { 00106 boost::singleton_pool<TESDemoAntiNeutrino, sizeof(TESDemoAntiNeutrino)>::is_from(p) ? 00107 boost::singleton_pool<TESDemoAntiNeutrino, sizeof(TESDemoAntiNeutrino)>::free(p) : 00108 ::operator delete(p); 00109 }
static void DayaBay::TESDemoAntiNeutrino::operator delete | ( | void * | p, | |
void * | pObj | |||
) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Reimplemented from DayaBay::TemporalContainedObject.
Definition at line 113 of file TESDemoAntiNeutrino.h.
00114 { 00115 ::operator delete (p, pObj); 00116 }
The positron produced by the decay of this anti-neutrino.
Definition at line 122 of file TESDemoAntiNeutrino.h.
The neutron produced by the decay of this anti-neutrino.
Definition at line 123 of file TESDemoAntiNeutrino.h.