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

Header for Electronics Crate hits. More...

#include <ElecCrateHeader.h>

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

List of all members.

Public Types

typedef std::map
< DayaBay::Detector,
DayaBay::ElecCrate * > 
CrateMap
 The Electronics Crate map.

Public Member Functions

 ElecCrateHeader (DayaBay::ElecHeader *header)
 Create with ElecHeader pointer.
 ElecCrateHeader ()
 Default Constructor.
 ~ElecCrateHeader ()
 destructor
void addCrate (DayaBay::ElecCrate *crate)
 Add an Electronics Crate.
std::ostream & fillStream (std::ostream &s) const
 Print the header.
const DayaBay::ElecHeaderheader () const
 Retrieve const Pointer to the ElecHeader holding this Header.
void setHeader (DayaBay::ElecHeader *value)
 Update Pointer to the ElecHeader holding this Header.
const CrateMapcrates () const
 Retrieve const Map from Detector to Crate.

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 Header.
CrateMap m_crates
 Map from Detector to Crate.

Detailed Description

Header for Electronics Crate hits.

Author:
bseilhan@iit.edu created Thu Dec 5 18:07:50 2013

Definition at line 43 of file ElecCrateHeader.h.


Member Typedef Documentation

The Electronics Crate map.

Definition at line 48 of file ElecCrateHeader.h.


Constructor & Destructor Documentation

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

Create with ElecHeader pointer.

Definition at line 51 of file ElecCrateHeader.h.

                                             : m_header(header),
                                                  m_crates() {}
DayaBay::ElecCrateHeader::ElecCrateHeader ( ) [inline]

Default Constructor.

Definition at line 55 of file ElecCrateHeader.h.

                      : m_header(0),
                        m_crates() {}
DayaBay::ElecCrateHeader::~ElecCrateHeader ( ) [inline]

destructor

Definition at line 137 of file ElecCrateHeader.h.

{

           DayaBay::ElecCrateHeader::CrateMap::iterator cmIter = m_crates.begin();
           for(;cmIter != m_crates.end(); cmIter++) delete cmIter->second;
         
}

Member Function Documentation

void DayaBay::ElecCrateHeader::addCrate ( DayaBay::ElecCrate crate)

Add an Electronics Crate.

Definition at line 26 of file ElecCrateHeader.cc.

{
    DayaBay::Detector det(crate->detector());
    m_crates[det] = crate;
}
std::ostream & DayaBay::ElecCrateHeader::fillStream ( std::ostream &  s) const

Print the header.

Definition at line 9 of file ElecCrateHeader.cc.

{
    s << "{ " 
      << "crate map : " << m_crates.size() << " entries" << std::endl;
  
    
    std::map<DayaBay::Detector, DayaBay::ElecCrate*>::const_iterator  it;
    for( it=m_crates.begin(); it != m_crates.end(); ++it ){
      s << "Detector:" << it->first << std::endl;
      s << "Crate: " << *(it->second) << std::endl;
      }

    s << "}";
      
    return s;
}
const DayaBay::ElecHeader * DayaBay::ElecCrateHeader::header ( ) const [inline]

Retrieve const Pointer to the ElecHeader holding this Header.

Definition at line 145 of file ElecCrateHeader.h.

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

Update Pointer to the ElecHeader holding this Header.

Definition at line 150 of file ElecCrateHeader.h.

{
  m_header = value;
}
const DayaBay::ElecCrateHeader::CrateMap & DayaBay::ElecCrateHeader::crates ( ) const [inline]

Retrieve const Map from Detector to Crate.

Definition at line 155 of file ElecCrateHeader.h.

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

operator new

Definition at line 82 of file ElecCrateHeader.h.

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

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

operator delete

Definition at line 98 of file ElecCrateHeader.h.

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

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

Member Data Documentation

Pointer to the ElecHeader holding this Header.

Definition at line 116 of file ElecCrateHeader.h.

Map from Detector to Crate.

Definition at line 117 of file ElecCrateHeader.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