#include <ElecFeeCrate.h>
Inheritance diagram for DayaBay::ElecFeeCrate:
Public Types | |
typedef std::map< DayaBay::FeeChannelId, DayaBay::ElecFeeChannel > | ChannelData |
Map of FEE channel data by channel ID. | |
typedef std::map< DayaBay::FeeChannelId, DayaBay::DigitalSignal > | DigitalMap |
Map of Digital Signals data by channel ID. | |
typedef std::map< DayaBay::FeeChannelId, DayaBay::AnalogSignal > | AnalogMap |
Map of Analog Signals data by channel ID. | |
Public Member Functions | |
ElecFeeCrate (const DayaBay::Detector &detector, DayaBay::ElecCrateHeader *header) | |
standard constructor | |
ElecFeeCrate (const Site::Site_t &site, const DetectorId::DetectorId_t &detectorId, DayaBay::ElecCrateHeader *header) | |
standard constructor | |
ElecFeeCrate () | |
Default Constructor. | |
virtual | ~ElecFeeCrate () |
Default Destructor. | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
void | addChannel (const DayaBay::FeeChannelId &channelId) |
Adds a channel to this crate. | |
ElecFeeChannel & | channel (const DayaBay::FeeChannelId &channelId) |
Returns the specified channel from this Crate. | |
DigitalSignal & | nhitSignal (const DayaBay::FeeChannelId &channelId) |
Returns the Hits pipeline for specified board in this Crate. | |
AnalogSignal & | esumSignal (const DayaBay::FeeChannelId &channelId) |
Returns the Energy pipeline for specified board in this Crate. | |
const ChannelData & | channelData () const |
Retrieve const The set of channels in this crate. | |
void | setChannelData (const ChannelData &value) |
Update The set of channels in this crate. | |
const DigitalMap & | nhit () const |
Retrieve const Nhit signals for each FEE board. | |
DigitalMap & | nhit () |
Retrieve Nhit signals for each FEE board. | |
void | setNhit (const DigitalMap &value) |
Update Nhit signals for each FEE board. | |
const AnalogMap & | esum () const |
Retrieve const unshaped Esum signals for each FEE board. | |
AnalogMap & | esum () |
Retrieve unshaped Esum signals for each FEE board. | |
void | setEsum (const AnalogMap &value) |
Update unshaped Esum signals for each FEE board. | |
const DayaBay::AnalogSignal & | esumUpper () const |
Retrieve const Esum signal for Upper ESum. | |
DayaBay::AnalogSignal & | esumUpper () |
Retrieve Esum signal for Upper ESum. | |
void | setEsumUpper (const DayaBay::AnalogSignal &value) |
Update Esum signal for Upper ESum. | |
const DayaBay::AnalogSignal & | esumLower () const |
Retrieve const Esum signal for Lower ESum. | |
DayaBay::AnalogSignal & | esumLower () |
Retrieve Esum signal for Lower ESum. | |
void | setEsumLower (const DayaBay::AnalogSignal &value) |
Update Esum signal for Lower ESum. | |
const DayaBay::AnalogSignal & | esumTotal () const |
Retrieve const ESum signal for Total ESum (Upper + Lower). | |
DayaBay::AnalogSignal & | esumTotal () |
Retrieve ESum signal for Total ESum (Upper + Lower). | |
void | setEsumTotal (const DayaBay::AnalogSignal &value) |
Update ESum signal for Total ESum (Upper + Lower). | |
const DayaBay::DigitalSignal & | esumADC () const |
Retrieve const ESum signal for ADC ESum Completion. | |
DayaBay::DigitalSignal & | esumADC () |
Retrieve ESum signal for ADC ESum Completion. | |
void | setEsumADC (const DayaBay::DigitalSignal &value) |
Update ESum signal for ADC ESum Completion. | |
const DayaBay::Detector & | detector () const |
Retrieve const The detector associated with this electronics crate. | |
void | setDetector (const DayaBay::Detector &value) |
Update The detector associated with this electronics crate. | |
const DayaBay::ElecCrateHeader * | header () const |
Retrieve const The crate header for this electronics crate. | |
void | setHeader (DayaBay::ElecCrateHeader *value) |
Update The crate header for this electronics crate. | |
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 | |
ChannelData | m_channelData |
The set of channels in this crate. | |
DigitalMap | m_nhit |
Nhit signals for each FEE board. | |
AnalogMap | m_esum |
unshaped Esum signals for each FEE board | |
DayaBay::AnalogSignal | m_esumUpper |
Esum signal for Upper ESum. | |
DayaBay::AnalogSignal | m_esumLower |
Esum signal for Lower ESum. | |
DayaBay::AnalogSignal | m_esumTotal |
ESum signal for Total ESum (Upper + Lower). | |
DayaBay::DigitalSignal | m_esumADC |
ESum signal for ADC ESum Completion. |
Definition at line 41 of file ElecFeeCrate.h.
DayaBay::ElecFeeCrate::ElecFeeCrate | ( | const DayaBay::Detector & | detector, | |
DayaBay::ElecCrateHeader * | header | |||
) | [inline] |
standard constructor
Definition at line 228 of file ElecFeeCrate.h.
00230 { 00231 00232 setDetector(detector); 00233 setHeader(header); 00234 00235 }
DayaBay::ElecFeeCrate::ElecFeeCrate | ( | const Site::Site_t & | site, | |
const DetectorId::DetectorId_t & | detectorId, | |||
DayaBay::ElecCrateHeader * | header | |||
) | [inline] |
standard constructor
Definition at line 237 of file ElecFeeCrate.h.
00240 { 00241 00242 setDetector(DayaBay::Detector(site, 00243 detectorId)); 00244 setHeader(header); 00245 00246 }
DayaBay::ElecFeeCrate::ElecFeeCrate | ( | ) | [inline] |
Default Constructor.
Definition at line 62 of file ElecFeeCrate.h.
00062 : m_channelData(), 00063 m_nhit(), 00064 m_esum(), 00065 m_esumUpper(), 00066 m_esumLower(), 00067 m_esumTotal(), 00068 m_esumADC() {}
virtual DayaBay::ElecFeeCrate::~ElecFeeCrate | ( | ) | [inline, virtual] |
std::ostream & DayaBay::ElecFeeCrate::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Reimplemented from DayaBay::ElecCrate.
Definition at line 248 of file ElecFeeCrate.h.
00249 { 00250 ElecCrate::fillStream(s); 00251 s << "{ " << "channelData : " << m_channelData << std::endl 00252 << "nhit : " << m_nhit << std::endl 00253 << "esum : " << m_esum << std::endl 00254 << "esumUpper : " << m_esumUpper << std::endl 00255 << "esumLower : " << m_esumLower << std::endl 00256 << "esumTotal : " << m_esumTotal << std::endl 00257 << "esumADC : " << m_esumADC << std::endl << " }"; 00258 return s; 00259 }
void DayaBay::ElecFeeCrate::addChannel | ( | const DayaBay::FeeChannelId & | channelId | ) | [inline] |
Adds a channel to this crate.
Definition at line 362 of file ElecFeeCrate.h.
00363 { 00364 00365 m_channelData[channelId]; 00366 m_nhit[channelId.boardId()]; 00367 m_esum[channelId.boardId()]; 00368 00369 }
DayaBay::ElecFeeChannel & DayaBay::ElecFeeCrate::channel | ( | const DayaBay::FeeChannelId & | channelId | ) | [inline] |
Returns the specified channel from this Crate.
Definition at line 371 of file ElecFeeCrate.h.
00372 { 00373 return m_channelData[channelId]; 00374 }
DayaBay::DigitalSignal & DayaBay::ElecFeeCrate::nhitSignal | ( | const DayaBay::FeeChannelId & | channelId | ) | [inline] |
Returns the Hits pipeline for specified board in this Crate.
Definition at line 376 of file ElecFeeCrate.h.
DayaBay::AnalogSignal & DayaBay::ElecFeeCrate::esumSignal | ( | const DayaBay::FeeChannelId & | channelId | ) | [inline] |
Returns the Energy pipeline for specified board in this Crate.
Definition at line 381 of file ElecFeeCrate.h.
const DayaBay::ElecFeeCrate::ChannelData & DayaBay::ElecFeeCrate::channelData | ( | ) | const [inline] |
Retrieve const The set of channels in this crate.
Definition at line 262 of file ElecFeeCrate.h.
00263 { 00264 return m_channelData; 00265 }
void DayaBay::ElecFeeCrate::setChannelData | ( | const ChannelData & | value | ) | [inline] |
Update The set of channels in this crate.
Definition at line 267 of file ElecFeeCrate.h.
00268 { 00269 m_channelData = value; 00270 }
const DayaBay::ElecFeeCrate::DigitalMap & DayaBay::ElecFeeCrate::nhit | ( | ) | const [inline] |
Retrieve const Nhit signals for each FEE board.
Definition at line 272 of file ElecFeeCrate.h.
00273 { 00274 return m_nhit; 00275 }
DayaBay::ElecFeeCrate::DigitalMap & DayaBay::ElecFeeCrate::nhit | ( | ) | [inline] |
Retrieve Nhit signals for each FEE board.
Definition at line 277 of file ElecFeeCrate.h.
00278 { 00279 return m_nhit; 00280 }
void DayaBay::ElecFeeCrate::setNhit | ( | const DigitalMap & | value | ) | [inline] |
Update Nhit signals for each FEE board.
Definition at line 282 of file ElecFeeCrate.h.
00283 { 00284 m_nhit = value; 00285 }
const DayaBay::ElecFeeCrate::AnalogMap & DayaBay::ElecFeeCrate::esum | ( | ) | const [inline] |
Retrieve const unshaped Esum signals for each FEE board.
Definition at line 287 of file ElecFeeCrate.h.
00288 { 00289 return m_esum; 00290 }
DayaBay::ElecFeeCrate::AnalogMap & DayaBay::ElecFeeCrate::esum | ( | ) | [inline] |
Retrieve unshaped Esum signals for each FEE board.
Definition at line 292 of file ElecFeeCrate.h.
00293 { 00294 return m_esum; 00295 }
void DayaBay::ElecFeeCrate::setEsum | ( | const AnalogMap & | value | ) | [inline] |
Update unshaped Esum signals for each FEE board.
Definition at line 297 of file ElecFeeCrate.h.
00298 { 00299 m_esum = value; 00300 }
const DayaBay::AnalogSignal & DayaBay::ElecFeeCrate::esumUpper | ( | ) | const [inline] |
Retrieve const Esum signal for Upper ESum.
Definition at line 302 of file ElecFeeCrate.h.
00303 { 00304 return m_esumUpper; 00305 }
DayaBay::AnalogSignal & DayaBay::ElecFeeCrate::esumUpper | ( | ) | [inline] |
Retrieve Esum signal for Upper ESum.
Definition at line 307 of file ElecFeeCrate.h.
00308 { 00309 return m_esumUpper; 00310 }
void DayaBay::ElecFeeCrate::setEsumUpper | ( | const DayaBay::AnalogSignal & | value | ) | [inline] |
Update Esum signal for Upper ESum.
Definition at line 312 of file ElecFeeCrate.h.
00313 { 00314 m_esumUpper = value; 00315 }
const DayaBay::AnalogSignal & DayaBay::ElecFeeCrate::esumLower | ( | ) | const [inline] |
Retrieve const Esum signal for Lower ESum.
Definition at line 317 of file ElecFeeCrate.h.
00318 { 00319 return m_esumLower; 00320 }
DayaBay::AnalogSignal & DayaBay::ElecFeeCrate::esumLower | ( | ) | [inline] |
Retrieve Esum signal for Lower ESum.
Definition at line 322 of file ElecFeeCrate.h.
00323 { 00324 return m_esumLower; 00325 }
void DayaBay::ElecFeeCrate::setEsumLower | ( | const DayaBay::AnalogSignal & | value | ) | [inline] |
Update Esum signal for Lower ESum.
Definition at line 327 of file ElecFeeCrate.h.
00328 { 00329 m_esumLower = value; 00330 }
const DayaBay::AnalogSignal & DayaBay::ElecFeeCrate::esumTotal | ( | ) | const [inline] |
Retrieve const ESum signal for Total ESum (Upper + Lower).
Definition at line 332 of file ElecFeeCrate.h.
00333 { 00334 return m_esumTotal; 00335 }
DayaBay::AnalogSignal & DayaBay::ElecFeeCrate::esumTotal | ( | ) | [inline] |
Retrieve ESum signal for Total ESum (Upper + Lower).
Definition at line 337 of file ElecFeeCrate.h.
00338 { 00339 return m_esumTotal; 00340 }
void DayaBay::ElecFeeCrate::setEsumTotal | ( | const DayaBay::AnalogSignal & | value | ) | [inline] |
Update ESum signal for Total ESum (Upper + Lower).
Definition at line 342 of file ElecFeeCrate.h.
00343 { 00344 m_esumTotal = value; 00345 }
const DayaBay::DigitalSignal & DayaBay::ElecFeeCrate::esumADC | ( | ) | const [inline] |
Retrieve const ESum signal for ADC ESum Completion.
Definition at line 347 of file ElecFeeCrate.h.
00348 { 00349 return m_esumADC; 00350 }
DayaBay::DigitalSignal & DayaBay::ElecFeeCrate::esumADC | ( | ) | [inline] |
Retrieve ESum signal for ADC ESum Completion.
Definition at line 352 of file ElecFeeCrate.h.
00353 { 00354 return m_esumADC; 00355 }
void DayaBay::ElecFeeCrate::setEsumADC | ( | const DayaBay::DigitalSignal & | value | ) | [inline] |
Update ESum signal for ADC ESum Completion.
Definition at line 357 of file ElecFeeCrate.h.
00358 { 00359 m_esumADC = value; 00360 }
static void* DayaBay::ElecFeeCrate::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented from DayaBay::ElecCrate.
Definition at line 171 of file ElecFeeCrate.h.
00172 { 00173 return ( sizeof(ElecFeeCrate) == size ? 00174 boost::singleton_pool<ElecFeeCrate, sizeof(ElecFeeCrate)>::malloc() : 00175 ::operator new(size) ); 00176 }
static void* DayaBay::ElecFeeCrate::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::ElecCrate.
Definition at line 181 of file ElecFeeCrate.h.
static void DayaBay::ElecFeeCrate::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented from DayaBay::ElecCrate.
Definition at line 187 of file ElecFeeCrate.h.
00188 { 00189 boost::singleton_pool<ElecFeeCrate, sizeof(ElecFeeCrate)>::is_from(p) ? 00190 boost::singleton_pool<ElecFeeCrate, sizeof(ElecFeeCrate)>::free(p) : 00191 ::operator delete(p); 00192 }
static void DayaBay::ElecFeeCrate::operator delete | ( | void * | p, | |
void * | pObj | |||
) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Reimplemented from DayaBay::ElecCrate.
Definition at line 196 of file ElecFeeCrate.h.
00197 { 00198 ::operator delete (p, pObj); 00199 }
const DayaBay::Detector & DayaBay::ElecCrate::detector | ( | ) | const [inline, inherited] |
Retrieve const The detector associated with this electronics crate.
Definition at line 167 of file ElecCrate.h.
00168 { 00169 return m_detector; 00170 }
void DayaBay::ElecCrate::setDetector | ( | const DayaBay::Detector & | value | ) | [inline, inherited] |
Update The detector associated with this electronics crate.
Definition at line 172 of file ElecCrate.h.
00173 { 00174 m_detector = value; 00175 }
const DayaBay::ElecCrateHeader * DayaBay::ElecCrate::header | ( | ) | const [inline, inherited] |
Retrieve const The crate header for this electronics crate.
Definition at line 177 of file ElecCrate.h.
00178 { 00179 return m_header; 00180 }
void DayaBay::ElecCrate::setHeader | ( | DayaBay::ElecCrateHeader * | value | ) | [inline, inherited] |
Update The crate header for this electronics crate.
Definition at line 182 of file ElecCrate.h.
00183 { 00184 m_header = value; 00185 }
DigitalMap DayaBay::ElecFeeCrate::m_nhit [private] |
AnalogMap DayaBay::ElecFeeCrate::m_esum [private] |