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

Collection of a detector's SimTrigger Commands. More...

#include <SimTrigCommandCollection.h>

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

List of all members.

Public Types

typedef std::vector
< DayaBay::SimTrigCommand * > 
CommandContainer
 Container holding the SimTriggerCommands.

Public Member Functions

 SimTrigCommandCollection (DayaBay::SimTrigCommandHeader *header, const DayaBay::Detector &det, const CommandContainer &container)
 Fully Construct.
 SimTrigCommandCollection (const DayaBay::Detector &det, const CommandContainer &container)
 Construct without header.
 SimTrigCommandCollection ()
 Default Constructor.
 ~SimTrigCommandCollection ()
 destructor
std::ostream & fillStream (std::ostream &s) const
 Print the collection.
void addCommand (DayaBay::SimTrigCommand *tc)
 add a trigger command to the collection.
void sort ()
 sort the tirgger command collection.
const
DayaBay::SimTrigCommandHeader
header () const
 Retrieve const SimTrig Command Header in which this collection resides.
void setHeader (DayaBay::SimTrigCommandHeader *value)
 Update SimTrig Command Header in which this collection resides.
const CommandContainercommands () const
 Retrieve const Container holding the triggerCommands.
void setCommands (const CommandContainer &value)
 Update Container holding the triggerCommands.
const DayaBay::Detectordetector () const
 Retrieve const Detector which this collection corresponds to.
void setDetector (const DayaBay::Detector &value)
 Update Detector which this collection corresponds to.

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::SimTrigCommandHeaderm_header
 SimTrig Command Header in which this collection resides.
CommandContainer m_commands
 Container holding the triggerCommands.
DayaBay::Detector m_detector
 Detector which this collection corresponds to.

Detailed Description

Collection of a detector's SimTrigger Commands.

Author:
bseilhan@iit.edu created Thu Dec 5 18:04:34 2013

Definition at line 42 of file SimTrigCommandCollection.h.


Member Typedef Documentation

Container holding the SimTriggerCommands.

Definition at line 47 of file SimTrigCommandCollection.h.


Constructor & Destructor Documentation

DayaBay::SimTrigCommandCollection::SimTrigCommandCollection ( DayaBay::SimTrigCommandHeader header,
const DayaBay::Detector det,
const CommandContainer container 
) [inline]

Fully Construct.

Definition at line 50 of file SimTrigCommandCollection.h.

                                                                : m_header(header),
                                                                     m_commands(container),
                                                                     m_detector(det) {}
DayaBay::SimTrigCommandCollection::SimTrigCommandCollection ( const DayaBay::Detector det,
const CommandContainer container 
) [inline]

Construct without header.

Definition at line 57 of file SimTrigCommandCollection.h.

                                                                : m_header(0),
                                                                 m_commands(container),
                                                                 m_detector(det) {}
DayaBay::SimTrigCommandCollection::SimTrigCommandCollection ( ) [inline]

Default Constructor.

Definition at line 63 of file SimTrigCommandCollection.h.

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

destructor

Definition at line 161 of file SimTrigCommandCollection.h.

{

          DayaBay::SimTrigCommandCollection::CommandContainer::iterator it;
          for(it=m_commands.begin();it!=m_commands.end();++it) delete *it;
        
}

Member Function Documentation

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

Print the collection.

Definition at line 13 of file SimTrigCommandCollection.cc.

{
    s << std::endl << "{ ";
    s << "trigCommandCollection : ";
    s << " {" << std::endl;
    s << " Detector:" <<  m_detector.detName() << std::endl;
    s << " Header: " << m_header << std::endl;
    s << " Contains: " << m_commands.size() << " commands" << std::endl;
    
    DayaBay::SimTrigCommandCollection::CommandContainer::const_iterator it;
    for( it = m_commands.begin() ; it != m_commands.end() ; ++it )
    {
      s << "{{{" << std::endl;
      s << **it << std::endl;
      s << "}}}" << std::endl;
    }
    
    s << " }"<< std::endl;
    s << " }";
    return s;
}
void DayaBay::SimTrigCommandCollection::addCommand ( DayaBay::SimTrigCommand tc)

add a trigger command to the collection.

Definition at line 9 of file SimTrigCommandCollection.cc.

                                                                         {
  m_commands.push_back(tc);
}
void DayaBay::SimTrigCommandCollection::sort ( )

sort the tirgger command collection.

Definition at line 5 of file SimTrigCommandCollection.cc.

const DayaBay::SimTrigCommandHeader * DayaBay::SimTrigCommandCollection::header ( ) const [inline]

Retrieve const SimTrig Command Header in which this collection resides.

Definition at line 169 of file SimTrigCommandCollection.h.

{
  return m_header;
}
void DayaBay::SimTrigCommandCollection::setHeader ( DayaBay::SimTrigCommandHeader value) [inline]

Update SimTrig Command Header in which this collection resides.

Definition at line 174 of file SimTrigCommandCollection.h.

{
  m_header = value;
}
const DayaBay::SimTrigCommandCollection::CommandContainer & DayaBay::SimTrigCommandCollection::commands ( ) const [inline]

Retrieve const Container holding the triggerCommands.

Definition at line 179 of file SimTrigCommandCollection.h.

{
  return m_commands;
}
void DayaBay::SimTrigCommandCollection::setCommands ( const CommandContainer value) [inline]

Update Container holding the triggerCommands.

Definition at line 184 of file SimTrigCommandCollection.h.

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

Retrieve const Detector which this collection corresponds to.

Definition at line 189 of file SimTrigCommandCollection.h.

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

Update Detector which this collection corresponds to.

Definition at line 194 of file SimTrigCommandCollection.h.

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

operator new

Definition at line 106 of file SimTrigCommandCollection.h.

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

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

operator delete

Definition at line 122 of file SimTrigCommandCollection.h.

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

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

Definition at line 131 of file SimTrigCommandCollection.h.

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

Member Data Documentation

SimTrig Command Header in which this collection resides.

Definition at line 140 of file SimTrigCommandCollection.h.

Container holding the triggerCommands.

Definition at line 141 of file SimTrigCommandCollection.h.

Detector which this collection corresponds to.

Definition at line 142 of file SimTrigCommandCollection.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:16 for SimTrigEvent by doxygen 1.7.4