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

In This Package:

DayaBay::TESDemoAntiNeutrino Class Reference

Neutrino demostration class for TESDemo. More...

#include <TESDemoAntiNeutrino.h>

Inheritance diagram for DayaBay::TESDemoAntiNeutrino:

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

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::TESDemoPositronpositron () const
 Retrieve (const) The positron produced by the decay of this anti-neutrino.
const DayaBay::TESDemoNeutronneutron () const
 Retrieve (const) The neutron produced by the decay of this anti-neutrino.
virtual const TimeStampearliest () const
void setEarliest (const TimeStamp &value)
virtual const TimeStamplatest () const
void setLatest (const TimeStamp &value)
virtual const CLIDclID () const
const ObjectContainerBaseparent () const
void setParent (ObjectContainerBase *value)
virtual long index () const
virtual StreamBufferserialize (StreamBuffer &s) const
virtual StreamBufferserialize (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 CLIDclassID ()

Private Attributes

SmartRef< DayaBay::TESDemoPositronm_positron
 The positron produced by the decay of this anti-neutrino.
SmartRef< DayaBay::TESDemoNeutronm_neutron
 The neutron produced by the decay of this anti-neutrino.

Friends

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

Detailed Description

Neutrino demostration class for TESDemo.

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

Definition at line 45 of file TESDemoAntiNeutrino.h.


Member Typedef Documentation

typedef TemporalObjectVector<TESDemoAntiNeutrino> DayaBay::TESDemoAntiNeutrino::Container

The standard container for this class.

Reimplemented from DayaBay::TemporalContainedObject.

Definition at line 50 of file TESDemoAntiNeutrino.h.


Constructor & Destructor Documentation

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]

Default Constructor.

Definition at line 57 of file TESDemoAntiNeutrino.h.

00057 {}

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 }


Member Function Documentation

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.

00099     {
00100       return ::operator new (size,pObj);
00101     }

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     }


Member Data Documentation

SmartRef<DayaBay::TESDemoPositron> DayaBay::TESDemoAntiNeutrino::m_positron [private]

The positron produced by the decay of this anti-neutrino.

Definition at line 122 of file TESDemoAntiNeutrino.h.

SmartRef<DayaBay::TESDemoNeutron> DayaBay::TESDemoAntiNeutrino::m_neutron [private]

The neutron produced by the decay of this anti-neutrino.

Definition at line 123 of file TESDemoAntiNeutrino.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