/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
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:
Collaboration graph
[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 Thu Dec 5 18:07:47 2013

Definition at line 43 of file ElecPulseHeader.h.


Member Typedef Documentation

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.

                                             : m_header(header),
                                                  m_pulseCollection() {}
DayaBay::ElecPulseHeader::ElecPulseHeader ( ) [inline]

Default Constructor.

Definition at line 55 of file ElecPulseHeader.h.

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

destructor

Definition at line 137 of file ElecPulseHeader.h.

{

           DayaBay::ElecPulseHeader::PulseCollectionMap::iterator pcIter = m_pulseCollection.begin();
           for(;pcIter != m_pulseCollection.end(); pcIter++) delete pcIter->second;
         
}

Member Function Documentation

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

Add an ElecPulseCollection.

Definition at line 26 of file ElecPulseHeader.cc.

{
    m_pulseCollection[pc->detector()] = pc;
}
std::ostream & DayaBay::ElecPulseHeader::fillStream ( std::ostream &  s) const

Print the header.

Definition at line 9 of file ElecPulseHeader.cc.

{
    s << "{ " << "pulse collections : " << std::endl;

    PulseCollectionMap::const_iterator it, done = m_pulseCollection.end();
    for (it = m_pulseCollection.begin(); it != done; ++it) {
        DayaBay::Detector d(it->first);

        s << Site::AsString(d.site()) << "::" << d.detName() 
          << " collection: "
          << std::endl;
        it->second->fillStream(s);
    }
    s << "}";
    return s;
}
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.

{
  return m_header;
}
void DayaBay::ElecPulseHeader::setHeader ( DayaBay::ElecHeader value) [inline]

Update Pointer to the ElecHeader holding this ElecPulseHeader.

Definition at line 150 of file ElecPulseHeader.h.

{
  m_header = value;
}
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.

{
  return m_pulseCollection;
}
static void* DayaBay::ElecPulseHeader::operator new ( size_t  size) [inline, static]

operator new

Definition at line 82 of file ElecPulseHeader.h.

    {
      return ( sizeof(ElecPulseHeader) == size ? 
               boost::singleton_pool<ElecPulseHeader, sizeof(ElecPulseHeader)>::malloc() :
               ::operator new(size) );
    }
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.

    {
      return ::operator new (size,pObj);
    }
static void DayaBay::ElecPulseHeader::operator delete ( void *  p) [inline, static]

operator delete

Definition at line 98 of file ElecPulseHeader.h.

    {
      boost::singleton_pool<ElecPulseHeader, sizeof(ElecPulseHeader)>::is_from(p) ?
      boost::singleton_pool<ElecPulseHeader, sizeof(ElecPulseHeader)>::free(p) :
      ::operator delete(p);
    }
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.

    {
      ::operator delete (p, pObj);
    }

Member Data Documentation

Pointer to the ElecHeader holding this ElecPulseHeader.

Definition at line 116 of file ElecPulseHeader.h.

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 Fri May 16 2014 10:05:49 for ElecEvent by doxygen 1.7.4