#include <RawRomFee.h>
Inheritance diagram for DayaBay::RawRomFee:
Public Member Functions | |
RawRomFee () | |
Default Constructor. | |
~RawRomFee () | |
destructor | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
int | triggerNum () const |
Retrieve const 8-bit loop integers from 0. | |
void | setTriggerNum (int value) |
Update 8-bit loop integers from 0. | |
int | triggerType () const |
Retrieve const local:0000, cross:0001. | |
void | setTriggerType (int value) |
Update local:0000, cross:0001. | |
int | version () const |
Retrieve const data format version. | |
void | setVersion (int value) |
Update data format version. | |
int | status () const |
Retrieve const Status. | |
void | setStatus (int value) |
Update Status. | |
int | dataLength () const |
Retrieve const bytes from data head to foot. | |
void | setDataLength (int value) |
Update bytes from data head to foot. | |
const std::vector< DayaBay::RawPmtChannel * > & | channels () const |
Retrieve const PMT channels. | |
void | setChannels (const std::vector< DayaBay::RawPmtChannel * > &value) |
Update PMT channels. | |
const DayaBay::RawEventHeader * | header () const |
Retrieve const pointer to RawEventHeader. | |
void | setHeader (DayaBay::RawEventHeader *value) |
Update pointer to RawEventHeader. | |
int | size () const |
Retrieve const Total size of bytes including header. | |
void | setSize (int value) |
Update Total size of bytes including header. | |
int | slot () const |
Retrieve const Slot number. | |
void | setSlot (int value) |
Update Slot number. | |
int | type () const |
Retrieve const Module type. | |
void | setType (int value) |
Update Module type. | |
int | cbltGA () const |
Retrieve const VME module Geographic Address. | |
void | setCbltGA (int value) |
Update VME module Geographic Address. | |
int | cbltModuleType () const |
Retrieve const cble module type. | |
void | setCbltModuleType (int value) |
Update cble module type. | |
int | cbltDataLength () const |
Retrieve const bytes from CBLT head to foot. | |
void | setCbltDataLength (int value) |
Update bytes from CBLT head to foot. | |
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 | |
int | m_triggerNum |
8-bit loop integers from 0 | |
int | m_triggerType |
local:0000, cross:0001 | |
int | m_version |
data format version | |
int | m_status |
Status. | |
int | m_dataLength |
bytes from data head to foot | |
std::vector< DayaBay::RawPmtChannel * > | m_channels |
PMT channels. |
Definition at line 43 of file RawRomFee.h.
DayaBay::RawRomFee::RawRomFee | ( | ) | [inline] |
Default Constructor.
Definition at line 48 of file RawRomFee.h.
00048 : m_triggerNum(0), 00049 m_triggerType(0), 00050 m_version(0), 00051 m_status(0), 00052 m_dataLength(0), 00053 m_channels() {}
DayaBay::RawRomFee::~RawRomFee | ( | ) | [inline] |
destructor
Definition at line 170 of file RawRomFee.h.
00171 { 00172 00173 for(unsigned int i=0; i<m_channels.size(); i++) { 00174 delete m_channels[i]; 00175 } 00176 m_channels.clear(); 00177 00178 }
std::ostream & DayaBay::RawRomFee::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Reimplemented from DayaBay::RawRom.
Definition at line 180 of file RawRomFee.h.
00181 { 00182 RawRom::fillStream(s); 00183 s << "{ " << "triggerNum : " << m_triggerNum << std::endl 00184 << "triggerType : " << m_triggerType << std::endl 00185 << "version : " << m_version << std::endl 00186 << "status : " << m_status << std::endl 00187 << "dataLength : " << m_dataLength << std::endl 00188 << "channels : " << m_channels << std::endl << " }"; 00189 return s; 00190 }
int DayaBay::RawRomFee::triggerNum | ( | ) | const [inline] |
Retrieve const 8-bit loop integers from 0.
Definition at line 193 of file RawRomFee.h.
00194 { 00195 return m_triggerNum; 00196 }
void DayaBay::RawRomFee::setTriggerNum | ( | int | value | ) | [inline] |
Update 8-bit loop integers from 0.
Definition at line 198 of file RawRomFee.h.
00199 { 00200 m_triggerNum = value; 00201 }
int DayaBay::RawRomFee::triggerType | ( | ) | const [inline] |
Retrieve const local:0000, cross:0001.
Definition at line 203 of file RawRomFee.h.
00204 { 00205 return m_triggerType; 00206 }
void DayaBay::RawRomFee::setTriggerType | ( | int | value | ) | [inline] |
Update local:0000, cross:0001.
Definition at line 208 of file RawRomFee.h.
00209 { 00210 m_triggerType = value; 00211 }
int DayaBay::RawRomFee::version | ( | ) | const [inline] |
Retrieve const data format version.
Definition at line 213 of file RawRomFee.h.
00214 { 00215 return m_version; 00216 }
void DayaBay::RawRomFee::setVersion | ( | int | value | ) | [inline] |
Update data format version.
Definition at line 218 of file RawRomFee.h.
00219 { 00220 m_version = value; 00221 }
int DayaBay::RawRomFee::status | ( | ) | const [inline] |
Retrieve const Status.
Definition at line 223 of file RawRomFee.h.
00224 { 00225 return m_status; 00226 }
void DayaBay::RawRomFee::setStatus | ( | int | value | ) | [inline] |
int DayaBay::RawRomFee::dataLength | ( | ) | const [inline] |
Retrieve const bytes from data head to foot.
Definition at line 233 of file RawRomFee.h.
00234 { 00235 return m_dataLength; 00236 }
void DayaBay::RawRomFee::setDataLength | ( | int | value | ) | [inline] |
Update bytes from data head to foot.
Definition at line 238 of file RawRomFee.h.
00239 { 00240 m_dataLength = value; 00241 }
const std::vector< DayaBay::RawPmtChannel * > & DayaBay::RawRomFee::channels | ( | ) | const [inline] |
Retrieve const PMT channels.
Definition at line 243 of file RawRomFee.h.
00244 { 00245 return m_channels; 00246 }
void DayaBay::RawRomFee::setChannels | ( | const std::vector< DayaBay::RawPmtChannel * > & | value | ) | [inline] |
Update PMT channels.
Definition at line 248 of file RawRomFee.h.
00249 { 00250 m_channels = value; 00251 }
static void* DayaBay::RawRomFee::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented from DayaBay::RawRom.
Definition at line 112 of file RawRomFee.h.
00113 { 00114 return ( sizeof(RawRomFee) == size ? 00115 boost::singleton_pool<RawRomFee, sizeof(RawRomFee)>::malloc() : 00116 ::operator new(size) ); 00117 }
static void* DayaBay::RawRomFee::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::RawRom.
Definition at line 122 of file RawRomFee.h.
00123 { 00124 return ::operator new (size,pObj); 00125 }
static void DayaBay::RawRomFee::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented from DayaBay::RawRom.
Definition at line 128 of file RawRomFee.h.
00129 { 00130 boost::singleton_pool<RawRomFee, sizeof(RawRomFee)>::is_from(p) ? 00131 boost::singleton_pool<RawRomFee, sizeof(RawRomFee)>::free(p) : 00132 ::operator delete(p); 00133 }
static void DayaBay::RawRomFee::operator delete | ( | void * | p, | |
void * | pObj | |||
) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Reimplemented from DayaBay::RawRom.
Definition at line 137 of file RawRomFee.h.
00138 { 00139 ::operator delete (p, pObj); 00140 }
const DayaBay::RawEventHeader * DayaBay::RawRom::header | ( | ) | const [inline, inherited] |
Retrieve const pointer to RawEventHeader.
Definition at line 190 of file RawRom.h.
00191 { 00192 return m_header; 00193 }
void DayaBay::RawRom::setHeader | ( | DayaBay::RawEventHeader * | value | ) | [inline, inherited] |
Update pointer to RawEventHeader.
Definition at line 195 of file RawRom.h.
00196 { 00197 m_header = value; 00198 }
int DayaBay::RawRom::size | ( | ) | const [inline, inherited] |
void DayaBay::RawRom::setSize | ( | int | value | ) | [inline, inherited] |
int DayaBay::RawRom::slot | ( | ) | const [inline, inherited] |
void DayaBay::RawRom::setSlot | ( | int | value | ) | [inline, inherited] |
int DayaBay::RawRom::type | ( | ) | const [inline, inherited] |
void DayaBay::RawRom::setType | ( | int | value | ) | [inline, inherited] |
int DayaBay::RawRom::cbltGA | ( | ) | const [inline, inherited] |
void DayaBay::RawRom::setCbltGA | ( | int | value | ) | [inline, inherited] |
int DayaBay::RawRom::cbltModuleType | ( | ) | const [inline, inherited] |
Retrieve const cble module type.
Definition at line 240 of file RawRom.h.
00241 { 00242 return m_cbltModuleType; 00243 }
void DayaBay::RawRom::setCbltModuleType | ( | int | value | ) | [inline, inherited] |
Update cble module type.
Definition at line 245 of file RawRom.h.
00246 { 00247 m_cbltModuleType = value; 00248 }
int DayaBay::RawRom::cbltDataLength | ( | ) | const [inline, inherited] |
Retrieve const bytes from CBLT head to foot.
Definition at line 250 of file RawRom.h.
00251 { 00252 return m_cbltDataLength; 00253 }
void DayaBay::RawRom::setCbltDataLength | ( | int | value | ) | [inline, inherited] |
Update bytes from CBLT head to foot.
Definition at line 255 of file RawRom.h.
00256 { 00257 m_cbltDataLength = value; 00258 }
int DayaBay::RawRomFee::m_triggerNum [private] |
int DayaBay::RawRomFee::m_triggerType [private] |
int DayaBay::RawRomFee::m_version [private] |
int DayaBay::RawRomFee::m_status [private] |
int DayaBay::RawRomFee::m_dataLength [private] |
std::vector<DayaBay::RawPmtChannel*> DayaBay::RawRomFee::m_channels [private] |