/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::ElecPulseCollection Class Reference

Collection of a detector's PMT/RPC pulses, based on SimHitCollection by bv@bnl.gov. More...

#include <ElecPulseCollection.h>

Collaboration diagram for DayaBay::ElecPulseCollection:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector
< DayaBay::ElecPulse * > 
PulseContainer
 The collection type.

Public Member Functions

 ElecPulseCollection (DayaBay::ElecPulseHeader *header, const DayaBay::Detector &det)
 Fully construct.
 ElecPulseCollection ()
 Default Constructor.
 ~ElecPulseCollection ()
 destructor
std::ostream & fillStream (std::ostream &s) const
 Print the collection.
const DayaBay::ElecPulseHeaderheader () const
 Retrieve const The ElecPulseHeader holding this collection.
void setHeader (DayaBay::ElecPulseHeader *value)
 Update The ElecPulseHeader holding this collection.
const DayaBay::Detectordetector () const
 Retrieve const The detector responsible for these pulses.
void setDetector (const DayaBay::Detector &value)
 Update The detector responsible for these pulses.
const PulseContainerpulses () const
 Retrieve const Collection of ElecPulses.
PulseContainerpulses ()
 Retrieve Collection of ElecPulses.
void setPulses (const PulseContainer &value)
 Update Collection of ElecPulses.

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::ElecPulseHeaderm_header
 The ElecPulseHeader holding this collection.
DayaBay::Detector m_detector
 The detector responsible for these pulses.
PulseContainer m_pulses
 Collection of ElecPulses.

Detailed Description

Collection of a detector's PMT/RPC pulses, based on SimHitCollection by bv@bnl.gov.

Author:
dandwyer@caltech.edu created Thu Dec 5 18:07:48 2013

Definition at line 43 of file ElecPulseCollection.h.


Member Typedef Documentation

The collection type.

Definition at line 48 of file ElecPulseCollection.h.


Constructor & Destructor Documentation

DayaBay::ElecPulseCollection::ElecPulseCollection ( DayaBay::ElecPulseHeader header,
const DayaBay::Detector det 
) [inline]

Fully construct.

Definition at line 51 of file ElecPulseCollection.h.

                                                    : m_header(header),
                                                           m_detector(det) {}
DayaBay::ElecPulseCollection::ElecPulseCollection ( ) [inline]

Default Constructor.

Definition at line 56 of file ElecPulseCollection.h.

                          : m_header(0),
                            m_detector(),
                            m_pulses() {}
DayaBay::ElecPulseCollection::~ElecPulseCollection ( ) [inline]

destructor

Definition at line 152 of file ElecPulseCollection.h.

{

           DayaBay::ElecPulseCollection::PulseContainer::iterator pcIter = m_pulses.begin();
           for(;pcIter != m_pulses.end(); pcIter++) delete *(pcIter);
         
}

Member Function Documentation

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

Print the collection.

Definition at line 4 of file ElecPulseCollection.cc.

{
    size_t siz = m_pulses.size();

    s << "{ " 
      << siz << " pulses : " << std::endl;
    
    PulseContainer::const_iterator it, done = m_pulses.end();
    for (it=m_pulses.begin(); it != done; ++it) {
        s << *(*it) << std::endl;
    }
    s << "}";
    return s;
}
const DayaBay::ElecPulseHeader * DayaBay::ElecPulseCollection::header ( ) const [inline]

Retrieve const The ElecPulseHeader holding this collection.

Definition at line 160 of file ElecPulseCollection.h.

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

Update The ElecPulseHeader holding this collection.

Definition at line 165 of file ElecPulseCollection.h.

{
  m_header = value;
}
const DayaBay::Detector & DayaBay::ElecPulseCollection::detector ( ) const [inline]

Retrieve const The detector responsible for these pulses.

Definition at line 170 of file ElecPulseCollection.h.

{
  return m_detector;
}
void DayaBay::ElecPulseCollection::setDetector ( const DayaBay::Detector value) [inline]

Update The detector responsible for these pulses.

Definition at line 175 of file ElecPulseCollection.h.

{
  m_detector = value;
}
const DayaBay::ElecPulseCollection::PulseContainer & DayaBay::ElecPulseCollection::pulses ( ) const [inline]

Retrieve const Collection of ElecPulses.

Definition at line 180 of file ElecPulseCollection.h.

{
  return m_pulses;
}
DayaBay::ElecPulseCollection::PulseContainer & DayaBay::ElecPulseCollection::pulses ( ) [inline]

Retrieve Collection of ElecPulses.

Definition at line 185 of file ElecPulseCollection.h.

{
  return m_pulses;
}
void DayaBay::ElecPulseCollection::setPulses ( const PulseContainer value) [inline]

Update Collection of ElecPulses.

Definition at line 190 of file ElecPulseCollection.h.

{
  m_pulses = value;
}
static void* DayaBay::ElecPulseCollection::operator new ( size_t  size) [inline, static]

operator new

Definition at line 97 of file ElecPulseCollection.h.

    {
      return ( sizeof(ElecPulseCollection) == size ? 
               boost::singleton_pool<ElecPulseCollection, sizeof(ElecPulseCollection)>::malloc() :
               ::operator new(size) );
    }
static void* DayaBay::ElecPulseCollection::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 107 of file ElecPulseCollection.h.

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

operator delete

Definition at line 113 of file ElecPulseCollection.h.

    {
      boost::singleton_pool<ElecPulseCollection, sizeof(ElecPulseCollection)>::is_from(p) ?
      boost::singleton_pool<ElecPulseCollection, sizeof(ElecPulseCollection)>::free(p) :
      ::operator delete(p);
    }
static void DayaBay::ElecPulseCollection::operator delete ( void *  p,
void *  pObj 
) [inline, static]

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

Definition at line 122 of file ElecPulseCollection.h.

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

Member Data Documentation

The ElecPulseHeader holding this collection.

Definition at line 131 of file ElecPulseCollection.h.

The detector responsible for these pulses.

Definition at line 132 of file ElecPulseCollection.h.

Collection of ElecPulses.

Definition at line 133 of file ElecPulseCollection.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