#include <CalibReadoutRpcCrate.h>
Inheritance diagram for DayaBay::CalibReadoutRpcCrate:
Public Types | |
typedef std::map< DayaBay::FecChannelId, DayaBay::CalibReadoutRpcChannel > | RpcChannelReadouts |
Map of FEC channel data by channel ID. | |
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. | |
CalibReadoutRpcCrate & | operator= (const DayaBay::CalibReadoutRpcCrate &rhs) |
assignment operator | |
void | addChannel (const DayaBay::FecChannelId &channelId) |
Adds a channel to this readout. | |
CalibReadoutRpcChannel & | channel (const DayaBay::FecChannelId &channelId) |
Returns the specified channel from this calibrated readout. | |
std::ostream & | fillStream (std::ostream &s) const |
Print the crate data. | |
const RpcChannelReadouts & | channelReadout () const |
Retrieve const The set of channels in this calibrate readout. | |
void | setChannelReadout (const RpcChannelReadouts &value) |
Update The set of channels in this calibrate readout. | |
const DayaBay::Detector & | detector () 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 TimeStamp & | triggerTime () 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::CalibReadoutHeader * | header () 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 channels in this calibrate readout. |
Definition at line 42 of file CalibReadoutRpcCrate.h.
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.
00053 : CalibReadout(detector, 00054 triggerNumber, 00055 triggerTime, 00056 triggerType) {}
DayaBay::CalibReadoutRpcCrate::CalibReadoutRpcCrate | ( | const DayaBay::CalibReadoutRpcCrate & | rhs | ) |
copy constructor
Definition at line 20 of file CalibReadoutRpcCrate.cc.
00021 : CalibReadout(rh) 00022 { 00023 DayaBay::CalibReadoutRpcCrate::RpcChannelReadouts channels = rh.channelReadout(); 00024 DayaBay::CalibReadoutRpcCrate::RpcChannelReadouts::iterator it, done = channels.end(); 00025 for (it = channels.begin(); it != done; ++it) { 00026 it->second.setCalibReadout(this); 00027 } 00028 this->setChannelReadout(channels); 00029 }
DayaBay::CalibReadoutRpcCrate::CalibReadoutRpcCrate | ( | ) | [inline] |
Default Constructor.
Definition at line 62 of file CalibReadoutRpcCrate.h.
00062 : m_channelReadout() {}
virtual DayaBay::CalibReadoutRpcCrate::~CalibReadoutRpcCrate | ( | ) | [inline, virtual] |
DayaBay::CalibReadoutRpcCrate & DayaBay::CalibReadoutRpcCrate::operator= | ( | const DayaBay::CalibReadoutRpcCrate & | rhs | ) |
assignment operator
Definition at line 31 of file CalibReadoutRpcCrate.cc.
00032 { 00033 if (this == &rh) return *this; 00034 00035 (CalibReadout&)(*this) = (CalibReadout&)(rh); 00036 00037 DayaBay::CalibReadoutRpcCrate::RpcChannelReadouts channels = rh.channelReadout(); 00038 DayaBay::CalibReadoutRpcCrate::RpcChannelReadouts::iterator it, done = channels.end(); 00039 for (it = channels.begin(); it != done; ++it) { 00040 it->second.setCalibReadout(this); 00041 } 00042 this->setChannelReadout(channels); 00043 00044 return *this; 00045 }
void DayaBay::CalibReadoutRpcCrate::addChannel | ( | const DayaBay::FecChannelId & | channelId | ) | [inline] |
Adds a channel to this readout.
Definition at line 151 of file CalibReadoutRpcCrate.h.
00152 { 00153 00154 m_channelReadout[channelId] = 00155 DayaBay::CalibReadoutRpcChannel(channelId, this); 00156 00157 }
DayaBay::CalibReadoutRpcChannel & DayaBay::CalibReadoutRpcCrate::channel | ( | const DayaBay::FecChannelId & | channelId | ) | [inline] |
Returns the specified channel from this calibrated readout.
Definition at line 159 of file CalibReadoutRpcCrate.h.
00160 { 00161 return m_channelReadout[channelId]; 00162 }
std::ostream & DayaBay::CalibReadoutRpcCrate::fillStream | ( | std::ostream & | s | ) | const [virtual] |
Print the crate data.
Reimplemented from DayaBay::CalibReadout.
Definition at line 4 of file CalibReadoutRpcCrate.cc.
00005 { 00006 size_t siz = m_channelReadout.size(); 00007 00008 s << "{ " 00009 << siz << " readouts : " << std::endl; 00010 00011 RpcChannelReadouts::const_iterator it, done = m_channelReadout.end(); 00012 for (it=m_channelReadout.begin(); it != done; ++it) { 00013 s << (it->first) << (it->second) << std::endl; 00014 } 00015 s << "}"; 00016 return s; 00017 }
const DayaBay::CalibReadoutRpcCrate::RpcChannelReadouts & DayaBay::CalibReadoutRpcCrate::channelReadout | ( | ) | const [inline] |
Retrieve const The set of channels in this calibrate readout.
Definition at line 141 of file CalibReadoutRpcCrate.h.
00142 { 00143 return m_channelReadout; 00144 }
void DayaBay::CalibReadoutRpcCrate::setChannelReadout | ( | const RpcChannelReadouts & | value | ) | [inline] |
Update The set of channels in this calibrate readout.
Definition at line 146 of file CalibReadoutRpcCrate.h.
00147 { 00148 m_channelReadout = value; 00149 }
static void* DayaBay::CalibReadoutRpcCrate::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented from DayaBay::CalibReadout.
Definition at line 90 of file CalibReadoutRpcCrate.h.
00091 { 00092 return ( sizeof(CalibReadoutRpcCrate) == size ? 00093 boost::singleton_pool<CalibReadoutRpcCrate, sizeof(CalibReadoutRpcCrate)>::malloc() : 00094 ::operator new(size) ); 00095 }
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 100 of file CalibReadoutRpcCrate.h.
static void DayaBay::CalibReadoutRpcCrate::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented from DayaBay::CalibReadout.
Definition at line 106 of file CalibReadoutRpcCrate.h.
00107 { 00108 boost::singleton_pool<CalibReadoutRpcCrate, sizeof(CalibReadoutRpcCrate)>::is_from(p) ? 00109 boost::singleton_pool<CalibReadoutRpcCrate, sizeof(CalibReadoutRpcCrate)>::free(p) : 00110 ::operator delete(p); 00111 }
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 115 of file CalibReadoutRpcCrate.h.
00116 { 00117 ::operator delete (p, pObj); 00118 }
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.
00206 { 00207 return m_detector; 00208 }
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.
00211 { 00212 m_detector = value; 00213 }
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.
00216 { 00217 return m_triggerNumber; 00218 }
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.
00221 { 00222 m_triggerNumber = value; 00223 }
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.
00226 { 00227 return m_triggerTime; 00228 }
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.
00231 { 00232 m_triggerTime = value; 00233 }
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.
00236 { 00237 return m_triggerType; 00238 }
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.
00241 { 00242 m_triggerType = value; 00243 }
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.
00246 { 00247 return m_header; 00248 }
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.
00251 { 00252 m_header = value; 00253 }
The set of channels in this calibrate readout.
Definition at line 124 of file CalibReadoutRpcCrate.h.