#include <FUResource.h>
Public Member Functions | |
void | allocate (FUShmRawCell *shmCell) |
void | appendBlockToSuperFrag (MemRef_t *bufRef) |
UInt_t | buResourceId () const |
bool | crcBeingChecked () |
void | doCrcCheck (bool doCrcCheck) |
UInt_t | evtNumber () const |
bool | fatalError () const |
void | fillSuperFragPayload () throw (evf::Exception) |
FUResource (UInt_t fuResourceId, log4cplus::Logger, EvffedFillerRB *, xdaq::Application *) | |
UInt_t | fuResourceId () const |
void | incNbSent () |
bool | isAllocated () const |
bool | isComplete () const |
UInt_t | nbBytes (bool reset=true) |
UInt_t | nbCrcErrors (bool reset=true) |
UInt_t | nbErrors (bool reset=true) |
UInt_t | nbSent () const |
void | process (MemRef_t *bufRef) |
void | release (bool detachResource) |
void | releaseSuperFrag () |
void | removeLastAppendedBlockFromSuperFrag () |
void | scheduleCRCError () |
evf::FUShmRawCell * | shmCell () |
void | superFragSize () throw (evf::Exception) |
virtual | ~FUResource () |
Static Public Member Functions | |
static void | doFedIdCheck (bool doFedIdCheck) |
static void | useEvmBoard (bool useEvmBoard) |
Private Attributes | |
xdaq::Application * | app_ |
UInt_t | buResourceId_ |
bool | doCrcCheck_ |
UInt_t | eventPayloadSize_ |
UInt_t | eventSize_ |
UInt_t | evtNumber_ |
bool | fatalError_ |
UInt_t | fedSize_ [1024] |
EvffedFillerRB * | frb_ |
UInt_t | fuResourceId_ |
UInt_t | iBlock_ |
UInt_t | iSuperFrag_ |
log4cplus::Logger | log_ |
UInt_t | nbBytes_ |
UInt_t | nbCrcErrors_ |
UInt_t | nbErrors_ |
UInt_t | nBlock_ |
UInt_t | nbSent_ |
bool | nextEventWillHaveCRCError_ |
UInt_t | nFedMax_ |
UInt_t | nSuperFrag_ |
UInt_t | nSuperFragMax_ |
evf::FUShmRawCell * | shmCell_ |
MemRef_t * | superFragHead_ |
UInt_t | superFragSize_ |
MemRef_t * | superFragTail_ |
Static Private Attributes | |
static bool | doFedIdCheck_ = true |
static unsigned int | gtpDaqId_ = FEDNumbering::MAXTriggerGTPFEDID |
static unsigned int | gtpeId_ = FEDNumbering::MINTriggerEGTPFEDID |
static unsigned int | gtpEvmId_ = FEDNumbering::MINTriggerGTPFEDID |
static bool | useEvmBoard_ = true |
Friends | |
class | ResourceChecker |
FUResource::FUResource | ( | UInt_t | fuResourceId, |
log4cplus::Logger | logger, | ||
EvffedFillerRB * | frb, | ||
xdaq::Application * | app | ||
) |
Definition at line 45 of file FUResource.cc.
|
virtual |
Definition at line 54 of file FUResource.cc.
void FUResource::allocate | ( | FUShmRawCell * | shmCell | ) |
Associate a ShmRawCell to the resource
Definition at line 63 of file FUResource.cc.
References evf::FUShmRawCell::clear(), eventPayloadSize_, fuResourceId_, evf::FUShmRawCell::nFed(), nFedMax_, evf::FUShmRawCell::nSuperFrag(), nSuperFragMax_, evf::FUShmRawCell::payloadSize(), evf::FUShmRawCell::setEventTypeData(), evf::FUShmRawCell::setFuResourceId(), shmCell(), and shmCell_.
Referenced by evf::FUResourceQueue::buildResource(), and evf::FUResourceTable::buildResource().
void FUResource::appendBlockToSuperFrag | ( | MemRef_t * | bufRef | ) |
Append I2O block to super fragment
Definition at line 184 of file FUResource.cc.
References superFragHead_, and superFragTail_.
|
inline |
|
inline |
|
inline |
Definition at line 104 of file FUResource.h.
References doCrcCheck_.
Referenced by evf::FUResourceQueue::buildResource(), and evf::FUResourceTable::buildResource().
|
inlinestatic |
Definition at line 97 of file FUResource.h.
References doFedIdCheck_.
Referenced by evf::FUResourceBroker::actionPerformed(), and evf::rb_statemachine::SharedResources::configureResources().
|
inline |
|
inline |
Definition at line 110 of file FUResource.h.
References fatalError_.
Referenced by evf::FUResourceQueue::buildResource(), evf::FUResourceTable::buildResource(), and process().
void FUResource::fillSuperFragPayload | ( | ) | ||
throw | ( | evf::Exception | ||
) |
Fills super fragment payload with I2O blocks
Definition at line 248 of file FUResource.cc.
References evtNumber_, fuResourceId_, iSuperFrag_, evf::FUShmRawCell::markSuperFrag(), nbBytes(), nbBytes_, nbErrors_, shmCell_, superFragHead_, superFragSize_, and evf::FUShmRawCell::writeData().
|
inline |
|
inline |
Increment the number of sent resources
Definition at line 134 of file FUResource.h.
References nbSent_.
|
inline |
Definition at line 113 of file FUResource.h.
References shmCell_.
Referenced by evf::FUResourceQueue::buildResource(), and evf::FUResourceTable::buildResource().
|
inline |
Checks if all I2O blocks have been received for this resource
Definition at line 221 of file FUResource.h.
References gather_cfg::cout, iBlock_, iSuperFrag_, nBlock_, and nSuperFrag_.
Referenced by evf::FUResourceQueue::buildResource(), evf::FUResourceTable::buildResource(), and process().
UInt_t FUResource::nbBytes | ( | bool | reset = true | ) |
Definition at line 324 of file FUResource.cc.
References nbBytes_, and query::result.
Referenced by fillSuperFragPayload().
UInt_t FUResource::nbCrcErrors | ( | bool | reset = true | ) |
Definition at line 316 of file FUResource.cc.
References nbCrcErrors_, and query::result.
Referenced by evf::FUResourceQueue::buildResource(), and evf::FUResourceTable::buildResource().
UInt_t FUResource::nbErrors | ( | bool | reset = true | ) |
Definition at line 308 of file FUResource.cc.
References nbErrors_, and query::result.
Referenced by evf::FUResourceQueue::buildResource(), and evf::FUResourceTable::buildResource().
|
inline |
Definition at line 127 of file FUResource.h.
References nbSent_.
void FUResource::process | ( | MemRef_t * | bufRef | ) |
Process resource
Definition at line 126 of file FUResource.cc.
References gather_cfg::cout, alignCSCRings::e, evtNumber_, edm::hlt::Exception, fatalError(), fatalError_, evf::EvffedFillerRB::fedId(), fedSize_, frb_, fuResourceId_, evf::EvffedFillerRB::getPayload(), isComplete(), iSuperFrag_, log_, evf::FUShmRawCell::markFed(), evf::FUShmRawCell::markSuperFrag(), nbErrors_, evf::ResourceChecker::processDataBlock(), evf::EvffedFillerRB::putHeader(), evf::EvffedFillerRB::putTrailer(), shmCell_, evf::EvffedFillerRB::size(), superFragSize_, and evf::FUShmRawCell::writeData().
Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), evf::FUResourceQueue::buildResource(), evf::FUResourceTable::buildResource(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::dumpPython(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::open(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), ConfigBuilder.ConfigBuilder::prepare_FASTSIM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), ConfigBuilder.ConfigBuilder::scheduleSequence(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProcess(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProperty().
void FUResource::release | ( | bool | detachResource | ) |
Release resource
Definition at line 82 of file FUResource.cc.
References buResourceId_, doCrcCheck_, alignCSCRings::e, eventSize_, evtNumber_, edm::hlt::Exception, fatalError_, fedSize_, i, iBlock_, iSuperFrag_, log_, nbCrcErrors_, nbErrors_, nBlock_, nbSent_, nSuperFrag_, shmCell_, superFragHead_, and superFragTail_.
Referenced by cuy.ValElement::__init__(), evf::FUResourceQueue::buildResource(), evf::FUResourceTable::buildResource(), evf::FUResourceQueue::initialize(), and evf::FUResourceTable::initialize().
void FUResource::releaseSuperFrag | ( | ) |
Releases the current super fragment and memory used by it
Definition at line 298 of file FUResource.cc.
References superFragHead_, and superFragTail_.
void FUResource::removeLastAppendedBlockFromSuperFrag | ( | ) |
Remove last appended I2O block from super fragment
Definition at line 196 of file FUResource.cc.
References cond::rpcobimon::current, superFragHead_, and superFragTail_.
|
inline |
Definition at line 148 of file FUResource.h.
References nextEventWillHaveCRCError_.
|
inline |
Returns a pointer to the Shm Raw cell associated to this resource
Definition at line 145 of file FUResource.h.
References shmCell_.
Referenced by allocate(), and evf::FUResourceTable::buildResource().
void FUResource::superFragSize | ( | ) | ||
throw | ( | evf::Exception | ||
) |
Returns the size of the current super fragment
Definition at line 216 of file FUResource.cc.
References eventPayloadSize_, eventSize_, evtNumber_, fuResourceId_, iSuperFrag_, nbErrors_, superFragHead_, and superFragSize_.
|
inlinestatic |
Definition at line 101 of file FUResource.h.
References useEvmBoard_.
Referenced by evf::FUResourceBroker::actionPerformed(), and evf::rb_statemachine::SharedResources::configureResources().
|
friend |
Definition at line 202 of file FUResource.h.
|
private |
Definition at line 194 of file FUResource.h.
Referenced by evf::ResourceChecker::findFEDs().
|
private |
Definition at line 166 of file FUResource.h.
Referenced by buResourceId(), and release().
|
private |
Definition at line 162 of file FUResource.h.
Referenced by crcBeingChecked(), doCrcCheck(), evf::ResourceChecker::findFEDs(), and release().
|
staticprivate |
Definition at line 159 of file FUResource.h.
Referenced by doFedIdCheck(), and evf::ResourceChecker::findFEDs().
|
private |
Definition at line 172 of file FUResource.h.
Referenced by allocate(), and superFragSize().
|
private |
Definition at line 189 of file FUResource.h.
Referenced by release(), and superFragSize().
|
private |
Definition at line 167 of file FUResource.h.
Referenced by evtNumber(), fillSuperFragPayload(), evf::ResourceChecker::findFEDs(), process(), release(), and superFragSize().
|
private |
Definition at line 163 of file FUResource.h.
Referenced by fatalError(), process(), and release().
|
private |
Definition at line 187 of file FUResource.h.
Referenced by evf::ResourceChecker::findFEDs(), process(), and release().
|
private |
Definition at line 192 of file FUResource.h.
Referenced by process().
|
private |
Definition at line 165 of file FUResource.h.
Referenced by allocate(), fillSuperFragPayload(), fuResourceId(), process(), and superFragSize().
|
staticprivate |
Definition at line 198 of file FUResource.h.
Referenced by evf::ResourceChecker::findFEDs().
|
staticprivate |
Definition at line 200 of file FUResource.h.
Referenced by evf::ResourceChecker::findFEDs().
|
staticprivate |
Definition at line 199 of file FUResource.h.
Referenced by evf::ResourceChecker::findFEDs().
|
private |
Definition at line 176 of file FUResource.h.
Referenced by isComplete(), and release().
|
private |
Definition at line 178 of file FUResource.h.
Referenced by fillSuperFragPayload(), evf::ResourceChecker::findFEDs(), isComplete(), process(), release(), and superFragSize().
|
private |
Definition at line 156 of file FUResource.h.
Referenced by evf::ResourceChecker::findFEDs(), process(), and release().
|
private |
Definition at line 185 of file FUResource.h.
Referenced by fillSuperFragPayload(), and nbBytes().
|
private |
Definition at line 184 of file FUResource.h.
Referenced by evf::ResourceChecker::findFEDs(), nbCrcErrors(), and release().
|
private |
Definition at line 183 of file FUResource.h.
Referenced by fillSuperFragPayload(), evf::ResourceChecker::findFEDs(), nbErrors(), process(), release(), and superFragSize().
|
private |
Definition at line 177 of file FUResource.h.
Referenced by isComplete(), and release().
|
private |
Definition at line 181 of file FUResource.h.
Referenced by incNbSent(), nbSent(), and release().
|
private |
Definition at line 196 of file FUResource.h.
Referenced by evf::ResourceChecker::findFEDs(), and scheduleCRCError().
|
private |
Definition at line 173 of file FUResource.h.
Referenced by allocate().
|
private |
Definition at line 179 of file FUResource.h.
Referenced by isComplete(), and release().
|
private |
Definition at line 174 of file FUResource.h.
Referenced by allocate().
|
private |
Definition at line 191 of file FUResource.h.
Referenced by allocate(), fillSuperFragPayload(), evf::ResourceChecker::findFEDs(), isAllocated(), process(), release(), and shmCell().
|
private |
Definition at line 169 of file FUResource.h.
Referenced by appendBlockToSuperFrag(), fillSuperFragPayload(), release(), releaseSuperFrag(), removeLastAppendedBlockFromSuperFrag(), and superFragSize().
|
private |
Definition at line 188 of file FUResource.h.
Referenced by fillSuperFragPayload(), process(), and superFragSize().
|
private |
Definition at line 170 of file FUResource.h.
Referenced by appendBlockToSuperFrag(), release(), releaseSuperFrag(), and removeLastAppendedBlockFromSuperFrag().
|
staticprivate |
Definition at line 161 of file FUResource.h.
Referenced by evf::ResourceChecker::findFEDs(), and useEvmBoard().