Public Member Functions | |
QLCTriggerFinder () | |
ctor | |
virtual | ~QLCTriggerFinder () |
dtor | |
virtual bool | Consolidate () |
Protected Member Functions | |
virtual void | CheckExtraBits (const QBuilderInfo_t &info, const unsigned long long sampleIndex, const long data) |
check for extra bits (25 and 26) used to signal changes in the electronics configuration | |
virtual void | SetAuxData (QEvent *ev) |
associate electronics configuration id to the event by setting the "SlowConfigId" AuxData (int). | |
Private Member Functions | |
unsigned int | GetConfigId (const unsigned int lg, const long long time) const |
get electronics configuration id associated to a given event | |
Private Attributes | |
std::map< unsigned int, std::map< long long, unsigned int > > | fTimeMap |
std::map< unsigned int, unsigned int > | fLastId |
bool QLCTriggerFinder::Consolidate | ( | ) | [virtual] |
void QLCTriggerFinder::CheckExtraBits | ( | const QBuilderInfo_t & | info, | |
const unsigned long long | sampleIndex, | |||
const long | data | |||
) | [protected, virtual] |
check for extra bits (25 and 26) used to signal changes in the electronics configuration
info | object used to access data stream | |
sampleIndex | id of the data sample to be checked | |
data | value of the sample to be checked |
References QBuilderInfo_t::buffer, fLastId, fTimeMap, QCrateReceiverBuffer::GetLg(), and QCrateReceiverBuffer::GetTimeOfSample().
unsigned int QLCTriggerFinder::GetConfigId | ( | const unsigned int | lg, | |
const long long | time | |||
) | const [private] |
get electronics configuration id associated to a given event
lg | logical channel of the event | |
trigger | time of the event |
References fTimeMap.
Referenced by SetAuxData().
std::map<unsigned int, std::map<long long, unsigned int> > QLCTriggerFinder::fTimeMap [private] |
works as fTimeMap[lg][time] = configId, where time is the time of the sample where a configuration change was detected.
Referenced by CheckExtraBits(), Consolidate(), GetConfigId(), and QLCTriggerFinder().
std::map<unsigned int, unsigned int> QLCTriggerFinder::fLastId [private] |
key: lg channel, value: last used config id
Referenced by CheckExtraBits(), Consolidate(), and QLCTriggerFinder().