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

In This Package:

DayaBay::TagData Class Reference

Base class for all associated tag data. More...

#include <TagData.h>

Inheritance diagram for DayaBay::TagData:

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

Public Member Functions

 TagData ()
 Default Constructor.
virtual ~TagData ()
 Default Destructor.
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
const DayaBay::TagHeaderheader () const
 Retrieve const Header for this tag.
void setHeader (DayaBay::TagHeader *value)
 Update Header for this tag.
float likelihood () const
 Retrieve const Some likelihood that this tag is applicable.
void setLikelihood (float value)
 Update Some likelihood that this tag is applicable.

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

Private Attributes

DayaBay::TagHeaderm_header
 Header for this tag.
float m_likelihood
 Some likelihood that this tag is applicable.

Detailed Description

Base class for all associated tag data.

Author:
bv@bnl.gov created Mon Apr 11 03:31:24 2011

Definition at line 40 of file TagData.h.


Constructor & Destructor Documentation

DayaBay::TagData::TagData (  )  [inline]

Default Constructor.

Definition at line 45 of file TagData.h.

00045               : m_header(0),
00046                 m_likelihood(0.0) {}

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

Default Destructor.

Definition at line 49 of file TagData.h.

00049 {}


Member Function Documentation

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

Fill the ASCII output stream.

Reimplemented in DayaBay::TagAdCoincidence, DayaBay::TagAdEvent, DayaBay::TagMuon, and DayaBay::TagMuonFragment.

Definition at line 127 of file TagData.h.

00128 {
00129   s << "{ " << "header :        " << m_header << std::endl
00130             << "likelihood :    " << m_likelihood << std::endl << " }";
00131   return s;
00132 }

const DayaBay::TagHeader * DayaBay::TagData::header (  )  const [inline]

Retrieve const Header for this tag.

Definition at line 135 of file TagData.h.

00136 {
00137   return m_header;
00138 }

void DayaBay::TagData::setHeader ( DayaBay::TagHeader value  )  [inline]

Update Header for this tag.

Definition at line 140 of file TagData.h.

00141 {
00142   m_header = value;
00143 }

float DayaBay::TagData::likelihood (  )  const [inline]

Retrieve const Some likelihood that this tag is applicable.

Definition at line 145 of file TagData.h.

00146 {
00147   return m_likelihood;
00148 }

void DayaBay::TagData::setLikelihood ( float  value  )  [inline]

Update Some likelihood that this tag is applicable.

Definition at line 150 of file TagData.h.

00151 {
00152   m_likelihood = value;
00153 }

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

operator new

Reimplemented in DayaBay::TagAdCoincidence, DayaBay::TagAdEvent, DayaBay::TagMuon, and DayaBay::TagMuonFragment.

Definition at line 73 of file TagData.h.

00074     {
00075       return ( sizeof(TagData) == size ? 
00076                boost::singleton_pool<TagData, sizeof(TagData)>::malloc() :
00077                ::operator new(size) );
00078     }

static void* DayaBay::TagData::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 in DayaBay::TagAdCoincidence, DayaBay::TagAdEvent, DayaBay::TagMuon, and DayaBay::TagMuonFragment.

Definition at line 83 of file TagData.h.

00084     {
00085       return ::operator new (size,pObj);
00086     }

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

operator delete

Reimplemented in DayaBay::TagAdCoincidence, DayaBay::TagAdEvent, DayaBay::TagMuon, and DayaBay::TagMuonFragment.

Definition at line 89 of file TagData.h.

00090     {
00091       boost::singleton_pool<TagData, sizeof(TagData)>::is_from(p) ?
00092       boost::singleton_pool<TagData, sizeof(TagData)>::free(p) :
00093       ::operator delete(p);
00094     }

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

placement operator delete not sure if really needed, but it does not harm

Reimplemented in DayaBay::TagAdCoincidence, DayaBay::TagAdEvent, DayaBay::TagMuon, and DayaBay::TagMuonFragment.

Definition at line 98 of file TagData.h.

00099     {
00100       ::operator delete (p, pObj);
00101     }


Member Data Documentation

DayaBay::TagHeader* DayaBay::TagData::m_header [private]

Header for this tag.

Definition at line 107 of file TagData.h.

float DayaBay::TagData::m_likelihood [private]

Some likelihood that this tag is applicable.

Definition at line 108 of file TagData.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:19:59 2011 for TagEvent by doxygen 1.4.7