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

RPC Crate Calibrated Readout. More...

#include <CalibReadoutRpcCrate.h>

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

List of all members.

Public Types

typedef std::vector
< DayaBay::CalibReadoutRpcChannel
RpcChannelReadouts
 Vector of calibrated PMT data.

Public Member Functions

 CalibReadoutRpcCrate (const DayaBay::Detector &detector, unsigned int triggerNumber, const TimeStamp &triggerTime, const DayaBay::Trigger::TriggerType_t &triggerType)
 standard constructor
 CalibReadoutRpcCrate (const DayaBay::CalibReadoutRpcCrate &rhs)
 copy constructor
 CalibReadoutRpcCrate ()
 Default Constructor.
virtual ~CalibReadoutRpcCrate ()
 Default Destructor.
CalibReadoutRpcCrateoperator= (const DayaBay::CalibReadoutRpcCrate &rhs)
 assignment operator
void addSensor (const DayaBay::DetectorSensor &sensorId, bool fromRot)
 Adds a sensor to this readout.
CalibReadoutRpcChannelsensor (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 RpcChannelReadoutschannelReadout () const
 Retrieve const The set of sensors in this readout.
void setChannelReadout (const RpcChannelReadouts &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

RpcChannelReadouts m_channelReadout
 The set of sensors in this readout.

Detailed Description

RPC Crate Calibrated Readout.

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

Definition at line 42 of file CalibReadoutRpcCrate.h.


Member Typedef Documentation

Vector of calibrated PMT data.

Definition at line 47 of file CalibReadoutRpcCrate.h.


Constructor & Destructor Documentation

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

standard constructor

Definition at line 50 of file CalibReadoutRpcCrate.h.

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

copy constructor

Definition at line 18 of file CalibReadoutRpcCrate.cc.

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

Default Constructor.

Definition at line 62 of file CalibReadoutRpcCrate.h.

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

Default Destructor.

Definition at line 65 of file CalibReadoutRpcCrate.h.

{}

Member Function Documentation

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

assignment operator

Definition at line 30 of file CalibReadoutRpcCrate.cc.

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

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

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

    return *this;
}
void DayaBay::CalibReadoutRpcCrate::addSensor ( const DayaBay::DetectorSensor sensorId,
bool  fromRot 
) [inline]

Adds a sensor to this readout.

Definition at line 155 of file CalibReadoutRpcCrate.h.

{

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

Returns the specified sensor from this readout.

Definition at line 167 of file CalibReadoutRpcCrate.h.

{

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

Returns a list of sensors included in the readout.

Definition at line 179 of file CalibReadoutRpcCrate.h.

{

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

Print the crate data.

Reimplemented from DayaBay::CalibReadout.

Definition at line 3 of file CalibReadoutRpcCrate.cc.

{
    size_t siz = m_channelReadout.size();

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

Retrieve const The set of sensors in this readout.

Definition at line 145 of file CalibReadoutRpcCrate.h.

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

Update The set of sensors in this readout.

Definition at line 150 of file CalibReadoutRpcCrate.h.

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

operator new

Reimplemented from DayaBay::CalibReadout.

Definition at line 94 of file CalibReadoutRpcCrate.h.

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

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

operator delete

Reimplemented from DayaBay::CalibReadout.

Definition at line 110 of file CalibReadoutRpcCrate.h.

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