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

In This Package:

DayaBay::ElecPulseHeader Class Reference

Header for detector PMT/RPC pulses, based on SimHitHeader by bv@bnl.gov. More...

#include <ElecPulseHeader.h>

Collaboration diagram for DayaBay::ElecPulseHeader:

[legend]
List of all members.

Public Types

typedef std::map< DayaBay::Detector,
DayaBay::ElecPulseCollection * > 
PulseCollectionMap
 The pulse collection map.

Public Member Functions

 ElecPulseHeader (DayaBay::ElecHeader *header)
 Create with ElecHeader pointer.
 ElecPulseHeader ()
 Default Constructor.
 ~ElecPulseHeader ()
 destructor
void addPulseCollection (DayaBay::ElecPulseCollection *pc)
 Add an ElecPulseCollection.
std::ostream & fillStream (std::ostream &s) const
 Print the header.
const DayaBay::ElecHeaderheader () const
 Retrieve const Pointer to the ElecHeader holding this ElecPulseHeader.
void setHeader (DayaBay::ElecHeader *value)
 Update Pointer to the ElecHeader holding this ElecPulseHeader.
const PulseCollectionMappulseCollection () const
 Retrieve const Map from Detector to detected ElecPulseCollection.

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::ElecHeaderm_header
 Pointer to the ElecHeader holding this ElecPulseHeader.
PulseCollectionMap m_pulseCollection
 Map from Detector to detected ElecPulseCollection.

Detailed Description

Header for detector PMT/RPC pulses, based on SimHitHeader by bv@bnl.gov.

Author:
dandwyer@caltech.edu created Mon Apr 11 04:03:01 2011

Definition at line 43 of file ElecPulseHeader.h.


Member Typedef Documentation

typedef std::map<DayaBay::Detector,DayaBay::ElecPulseCollection*> DayaBay::ElecPulseHeader::PulseCollectionMap

The pulse collection map.

Definition at line 48 of file ElecPulseHeader.h.


Constructor & Destructor Documentation

DayaBay::ElecPulseHeader::ElecPulseHeader ( DayaBay::ElecHeader header  )  [inline]

Create with ElecHeader pointer.

Definition at line 51 of file ElecPulseHeader.h.

00051                                              : m_header(header),
00052                                                   m_pulseCollection() {}

DayaBay::ElecPulseHeader::ElecPulseHeader (  )  [inline]

Default Constructor.

Definition at line 55 of file ElecPulseHeader.h.

00055                       : m_header(0),
00056                         m_pulseCollection() {}

DayaBay::ElecPulseHeader::~ElecPulseHeader (  )  [inline]

destructor

Definition at line 137 of file ElecPulseHeader.h.

00138 {
00139 
00140            DayaBay::ElecPulseHeader::PulseCollectionMap::iterator pcIter = m_pulseCollection.begin();
00141            for(;pcIter != m_pulseCollection.end(); pcIter++) delete pcIter->second;
00142          
00143 }


Member Function Documentation

void DayaBay::ElecPulseHeader::addPulseCollection ( DayaBay::ElecPulseCollection pc  ) 

Add an ElecPulseCollection.

Definition at line 26 of file ElecPulseHeader.cc.

00027 {
00028     m_pulseCollection[pc->detector()] = pc;
00029 }

std::ostream & DayaBay::ElecPulseHeader::fillStream ( std::ostream &  s  )  const

Print the header.

Definition at line 9 of file ElecPulseHeader.cc.

00010 {
00011     s << "{ " << "pulse collections : " << std::endl;
00012 
00013     PulseCollectionMap::const_iterator it, done = m_pulseCollection.end();
00014     for (it = m_pulseCollection.begin(); it != done; ++it) {
00015         DayaBay::Detector d(it->first);
00016 
00017         s << Site::AsString(d.site()) << "::" << d.detName() 
00018           << " collection: "
00019           << std::endl;
00020         it->second->fillStream(s);
00021     }
00022     s << "}";
00023     return s;
00024 }

const DayaBay::ElecHeader * DayaBay::ElecPulseHeader::header (  )  const [inline]

Retrieve const Pointer to the ElecHeader holding this ElecPulseHeader.

Definition at line 145 of file ElecPulseHeader.h.

00146 {
00147   return m_header;
00148 }

void DayaBay::ElecPulseHeader::setHeader ( DayaBay::ElecHeader value  )  [inline]

Update Pointer to the ElecHeader holding this ElecPulseHeader.

Definition at line 150 of file ElecPulseHeader.h.

00151 {
00152   m_header = value;
00153 }

const DayaBay::ElecPulseHeader::PulseCollectionMap & DayaBay::ElecPulseHeader::pulseCollection (  )  const [inline]

Retrieve const Map from Detector to detected ElecPulseCollection.

Definition at line 155 of file ElecPulseHeader.h.

00156 {
00157   return m_pulseCollection;
00158 }

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

operator new

Definition at line 82 of file ElecPulseHeader.h.

00083     {
00084       return ( sizeof(ElecPulseHeader) == size ? 
00085                boost::singleton_pool<ElecPulseHeader, sizeof(ElecPulseHeader)>::malloc() :
00086                ::operator new(size) );
00087     }

static void* DayaBay::ElecPulseHeader::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

Definition at line 92 of file ElecPulseHeader.h.

00093     {
00094       return ::operator new (size,pObj);
00095     }

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

operator delete

Definition at line 98 of file ElecPulseHeader.h.

00099     {
00100       boost::singleton_pool<ElecPulseHeader, sizeof(ElecPulseHeader)>::is_from(p) ?
00101       boost::singleton_pool<ElecPulseHeader, sizeof(ElecPulseHeader)>::free(p) :
00102       ::operator delete(p);
00103     }

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

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

Definition at line 107 of file ElecPulseHeader.h.

00108     {
00109       ::operator delete (p, pObj);
00110     }


Member Data Documentation

DayaBay::ElecHeader* DayaBay::ElecPulseHeader::m_header [private]

Pointer to the ElecHeader holding this ElecPulseHeader.

Definition at line 116 of file ElecPulseHeader.h.

PulseCollectionMap DayaBay::ElecPulseHeader::m_pulseCollection [private]

Map from Detector to detected ElecPulseCollection.

Definition at line 117 of file ElecPulseHeader.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:32:33 2011 for ElecEvent by doxygen 1.4.7