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

PMT Crate Calibrated Readout. More...

#include <CalibReadoutPmtCrate.h>

Inheritance diagram for DayaBay::CalibReadoutPmtCrate:
Inheritance graph
[legend]
Collaboration diagram for DayaBay::CalibReadoutPmtCrate:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector
< DayaBay::CalibReadoutPmtChannel
PmtChannelReadouts
 Vector of calibrated PMT data.

Public Member Functions

 CalibReadoutPmtCrate (const DayaBay::Detector &detector, unsigned int triggerNumber, const TimeStamp &triggerTime, const DayaBay::Trigger::TriggerType_t &triggerType)
 standard constructor
 CalibReadoutPmtCrate (const DayaBay::CalibReadoutPmtCrate &rhs)
 copy constructor
 CalibReadoutPmtCrate ()
 Default Constructor.
virtual ~CalibReadoutPmtCrate ()
 Default Destructor.
CalibReadoutPmtCrateoperator= (const DayaBay::CalibReadoutPmtCrate &rhs)
 assignment operator
void addSensor (const DayaBay::DetectorSensor &sensorId)
 Adds a sensor to this readout.
CalibReadoutPmtChannelsensor (const DayaBay::DetectorSensor &sensorId)
 Returns the specified sensor from this readout.
std::vector
< DayaBay::DetectorSensor
sensors ()
 Returns a list of sensors included in the readout.
std::ostream & fillStream (std::ostream &s) const
 Print the crate data.
const PmtChannelReadoutschannelReadout () const
 Retrieve const The set of sensors in this readout.
void setChannelReadout (const PmtChannelReadouts &value)
 Update The set of sensors in this readout.
const DayaBay::Detectordetector () const
 Retrieve const The detector associated with this readout.
void setDetector (const DayaBay::Detector &value)
 Update The detector associated with this readout.
unsigned int triggerNumber () const
 Retrieve const The count of the trigger command from this detector.
void setTriggerNumber (unsigned int value)
 Update The count of the trigger command from this detector.
const TimeStamptriggerTime () const
 Retrieve const The absolute time of the trigger command.
void setTriggerTime (const TimeStamp &value)
 Update The absolute time of the trigger command.
const
DayaBay::Trigger::TriggerType_t
triggerType () const
 Retrieve const The type of trigger conditions which produced this readout.
void setTriggerType (const DayaBay::Trigger::TriggerType_t &value)
 Update The type of trigger conditions which produced this readout.
const DayaBay::CalibReadoutHeaderheader () const
 Retrieve const The calib readout header associated with this readout.
void setHeader (DayaBay::CalibReadoutHeader *value)
 Update The calib readout header associated with this readout.

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

PmtChannelReadouts m_channelReadout
 The set of sensors in this readout.

Detailed Description

PMT Crate Calibrated Readout.

Author:
dandwyer@caltech.edu created Thu Dec 5 17:49:32 2013

Definition at line 41 of file CalibReadoutPmtCrate.h.


Member Typedef Documentation

Vector of calibrated PMT data.

Definition at line 46 of file CalibReadoutPmtCrate.h.


Constructor & Destructor Documentation

DayaBay::CalibReadoutPmtCrate::CalibReadoutPmtCrate ( const DayaBay::Detector detector,
unsigned int  triggerNumber,
const TimeStamp triggerTime,
const DayaBay::Trigger::TriggerType_t triggerType 
) [inline]

standard constructor

Definition at line 49 of file CalibReadoutPmtCrate.h.

                                                                         : CalibReadout(detector,
                                                                              triggerNumber,
                                                                              triggerTime,
                                                                              triggerType) {}
DayaBay::CalibReadoutPmtCrate::CalibReadoutPmtCrate ( const DayaBay::CalibReadoutPmtCrate rhs)

copy constructor

Definition at line 18 of file CalibReadoutPmtCrate.cc.

    : CalibReadout(rh)
{
    DayaBay::CalibReadoutPmtCrate::PmtChannelReadouts sensors = rh.channelReadout();
    DayaBay::CalibReadoutPmtCrate::PmtChannelReadouts::iterator it, done = sensors.end();
    for (it = sensors.begin(); it != done; ++it) {
        it->setCalibReadout(this);
    }
    this->setChannelReadout(sensors);
}
DayaBay::CalibReadoutPmtCrate::CalibReadoutPmtCrate ( ) [inline]

Default Constructor.

Definition at line 61 of file CalibReadoutPmtCrate.h.

virtual DayaBay::CalibReadoutPmtCrate::~CalibReadoutPmtCrate ( ) [inline, virtual]

Default Destructor.

Definition at line 64 of file CalibReadoutPmtCrate.h.

{}

Member Function Documentation

DayaBay::CalibReadoutPmtCrate & DayaBay::CalibReadoutPmtCrate::operator= ( const DayaBay::CalibReadoutPmtCrate rhs)

assignment operator

Definition at line 30 of file CalibReadoutPmtCrate.cc.

{
    if (this == &rh) return *this;

    (CalibReadout&)(*this) = (CalibReadout&)(rh);

    DayaBay::CalibReadoutPmtCrate::PmtChannelReadouts sensors = rh.channelReadout();
    DayaBay::CalibReadoutPmtCrate::PmtChannelReadouts::iterator it, done = sensors.end();
    for (it = sensors.begin(); it != done; ++it) {
        it->setCalibReadout(this);
    }
    this->setChannelReadout(sensors);

    return *this;
}
void DayaBay::CalibReadoutPmtCrate::addSensor ( const DayaBay::DetectorSensor sensorId) [inline]

Adds a sensor to this readout.

Definition at line 153 of file CalibReadoutPmtCrate.h.

{

          if(! this->sensor(sensorId) ){ 
             m_channelReadout.push_back(
                      DayaBay::CalibReadoutPmtChannel(sensorId, this) 
                                       );
          }
        
}
DayaBay::CalibReadoutPmtChannel * DayaBay::CalibReadoutPmtCrate::sensor ( const DayaBay::DetectorSensor sensorId) [inline]

Returns the specified sensor from this readout.

Definition at line 164 of file CalibReadoutPmtCrate.h.

{

          DayaBay::CalibReadoutPmtCrate::PmtChannelReadouts::iterator crIter, 
            crEnd = m_channelReadout.end();
          for(crIter=m_channelReadout.begin(); crIter!=crEnd; crIter++){
            if( crIter->pmtSensorId() == sensorId ) return &(*crIter);
          }
          return 0;
        
}
std::vector< DayaBay::DetectorSensor > DayaBay::CalibReadoutPmtCrate::sensors ( ) [inline]

Returns a list of sensors included in the readout.

Definition at line 176 of file CalibReadoutPmtCrate.h.

{

          DayaBay::CalibReadoutPmtCrate::PmtChannelReadouts::iterator crIter = m_channelReadout.begin();
          std::vector<DayaBay::DetectorSensor> sensors;
          for(;crIter != m_channelReadout.end(); crIter++) 
            sensors.push_back(crIter->pmtSensorId());
          return sensors;
        
}
std::ostream & DayaBay::CalibReadoutPmtCrate::fillStream ( std::ostream &  s) const [virtual]

Print the crate data.

Reimplemented from DayaBay::CalibReadout.

Definition at line 3 of file CalibReadoutPmtCrate.cc.

{
    size_t siz = m_channelReadout.size();

    s << "{ " 
      << siz << " readouts : " << std::endl;
    
    PmtChannelReadouts::const_iterator it, done = m_channelReadout.end();
    for (it=m_channelReadout.begin(); it != done; ++it) {
      s << *it << std::endl;
    }
    s << "}";
    return s;
}
const DayaBay::CalibReadoutPmtCrate::PmtChannelReadouts & DayaBay::CalibReadoutPmtCrate::channelReadout ( ) const [inline]

Retrieve const The set of sensors in this readout.

Definition at line 143 of file CalibReadoutPmtCrate.h.

{
  return m_channelReadout;
}
void DayaBay::CalibReadoutPmtCrate::setChannelReadout ( const PmtChannelReadouts value) [inline]

Update The set of sensors in this readout.

Definition at line 148 of file CalibReadoutPmtCrate.h.

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

operator new

Reimplemented from DayaBay::CalibReadout.

Definition at line 92 of file CalibReadoutPmtCrate.h.

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

Reimplemented from DayaBay::CalibReadout.

Definition at line 102 of file CalibReadoutPmtCrate.h.

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

operator delete

Reimplemented from DayaBay::CalibReadout.

Definition at line 108 of file CalibReadoutPmtCrate.h.

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

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

Reimplemented from DayaBay::CalibReadout.

Definition at line 117 of file CalibReadoutPmtCrate.h.

    {
      ::operator delete (p, pObj);
    }
const DayaBay::Detector & DayaBay::CalibReadout::detector ( ) const [inline, inherited]

Retrieve const The detector associated with this readout.

Definition at line 205 of file CalibReadout.h.

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

Update The detector associated with this readout.

Definition at line 210 of file CalibReadout.h.

{
  m_detector = value;
}
unsigned int DayaBay::CalibReadout::triggerNumber ( ) const [inline, inherited]

Retrieve const The count of the trigger command from this detector.

Definition at line 215 of file CalibReadout.h.

{
  return m_triggerNumber;
}
void DayaBay::CalibReadout::setTriggerNumber ( unsigned int  value) [inline, inherited]

Update The count of the trigger command from this detector.

Definition at line 220 of file CalibReadout.h.

{
  m_triggerNumber = value;
}
const TimeStamp & DayaBay::CalibReadout::triggerTime ( ) const [inline, inherited]

Retrieve const The absolute time of the trigger command.

Definition at line 225 of file CalibReadout.h.

{
  return m_triggerTime;
}
void DayaBay::CalibReadout::setTriggerTime ( const TimeStamp value) [inline, inherited]

Update The absolute time of the trigger command.

Definition at line 230 of file CalibReadout.h.

{
  m_triggerTime = value;
}
const DayaBay::Trigger::TriggerType_t & DayaBay::CalibReadout::triggerType ( ) const [inline, inherited]

Retrieve const The type of trigger conditions which produced this readout.

Definition at line 235 of file CalibReadout.h.

{
  return m_triggerType;
}
void DayaBay::CalibReadout::setTriggerType ( const DayaBay::Trigger::TriggerType_t value) [inline, inherited]

Update The type of trigger conditions which produced this readout.

Definition at line 240 of file CalibReadout.h.

{
  m_triggerType = value;
}
const DayaBay::CalibReadoutHeader * DayaBay::CalibReadout::header ( ) const [inline, inherited]

Retrieve const The calib readout header associated with this readout.

Definition at line 245 of file CalibReadout.h.

{
  return m_header;
}
void DayaBay::CalibReadout::setHeader ( DayaBay::CalibReadoutHeader value) [inline, inherited]

Update The calib readout header associated with this readout.

Definition at line 250 of file CalibReadout.h.

{
  m_header = value;
}

Member Data Documentation

The set of sensors in this readout.

Definition at line 126 of file CalibReadoutPmtCrate.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:00:42 for CalibReadoutEvent by doxygen 1.7.4