|
ATLAS Offline Software
|
#include <LArBadEventCatcher.h>
|
| LArBadEventCatcher (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~LArBadEventCatcher () |
|
StatusCode | initialize () |
|
StatusCode | execute () |
|
StatusCode | finalize () |
|
StatusCode | stop () |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Algorithm to catch corrupt events
Unlike monitoring algorithms (that wait for the job to finish, need subsequent DQMF checks, etc) this algorithm reacts imedatly if a corrupt event is identfied.It returns a StatusCode::FAILURE in the execute as well as in the finalize and causes athena to exit without any delay.
Definition at line 35 of file LArBadEventCatcher.h.
◆ StoreGateSvc_t
◆ LArBadEventCatcher()
LArBadEventCatcher::LArBadEventCatcher |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~LArBadEventCatcher()
LArBadEventCatcher::~LArBadEventCatcher |
( |
| ) |
|
◆ decipherFebError()
std::string LArBadEventCatcher::decipherFebError |
( |
const uint32_t |
errword | ) |
const |
|
private |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ eventDetails()
std::string LArBadEventCatcher::eventDetails |
( |
| ) |
const |
|
private |
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode LArBadEventCatcher::execute |
( |
| ) |
|
Definition at line 65 of file LArBadEventCatcher.cxx.
79 return StatusCode::FAILURE;
81 const size_t currSize=cont->
size();
89 return StatusCode::FAILURE;
102 if (
sc.isFailure()) {
104 return StatusCode::FAILURE;
106 const size_t currSize=cont->
size();
113 return StatusCode::FAILURE;
127 if (
sc.isFailure()) {
129 return StatusCode::FAILURE;
131 const size_t currSize=cont->
size();
139 return StatusCode::FAILURE;
150 if (
sc.isFailure()) {
155 const std::map<unsigned int,uint16_t>& allFebErrs=febErrSum->
get_all_febs();
156 std::map<unsigned int,uint16_t>::const_iterator
it=allFebErrs.begin();
157 std::map<unsigned int,uint16_t>::const_iterator it_e=allFebErrs.end();
158 for(;
it!=it_e;++
it) {
159 if (
it->second & 0xEFFF) {
168 msg() << msglvl <<
eventDetails() <<
"FEB 0x" << std::hex <<
it->first <<
" reports the following error(s): "
175 return StatusCode::FAILURE;
182 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode LArBadEventCatcher::finalize |
( |
| ) |
|
|
inline |
◆ initialize()
StatusCode LArBadEventCatcher::initialize |
( |
| ) |
|
Get LAr Online ID helper class
Definition at line 45 of file LArBadEventCatcher.cxx.
59 return StatusCode::FAILURE;
62 return StatusCode::SUCCESS;
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ stop()
StatusCode LArBadEventCatcher::stop |
( |
| ) |
|
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_BSErrFailMask
uint16_t LArBadEventCatcher::m_BSErrFailMask |
|
private |
◆ m_checkAccCalibDigits
bool LArBadEventCatcher::m_checkAccCalibDigits |
|
private |
◆ m_checkBSErrors
bool LArBadEventCatcher::m_checkBSErrors |
|
private |
◆ m_checkDigits
bool LArBadEventCatcher::m_checkDigits |
|
private |
◆ m_checkFebHeaders
bool LArBadEventCatcher::m_checkFebHeaders |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_keyList
std::vector<std::string> LArBadEventCatcher::m_keyList |
|
private |
◆ m_nAccCalibDigits
std::size_t LArBadEventCatcher::m_nAccCalibDigits |
|
private |
◆ m_nDigits
std::size_t LArBadEventCatcher::m_nDigits |
|
private |
◆ m_nEvent
unsigned LArBadEventCatcher::m_nEvent |
|
private |
◆ m_nFebheaders
std::size_t LArBadEventCatcher::m_nFebheaders |
|
private |
◆ m_onlineID
◆ m_stopJob
bool LArBadEventCatcher::m_stopJob |
|
private |
◆ m_stopOnError
bool LArBadEventCatcher::m_stopOnError |
|
private |
◆ m_thisSize
std::size_t LArBadEventCatcher::m_thisSize |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
const std::map< unsigned int, uint16_t > & get_all_febs() const
get all febs with error
uint64_t eventNumber() const
The current event's event number.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::size_t m_nAccCalibDigits
std::string eventDetails() const
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
uint32_t runNumber() const
The current event's run number.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
bool m_checkAccCalibDigits
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::size_t m_nFebheaders
Class describing the basic event information.
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
Holds information from the FEB Error Summary.
std::string decipherFebError(const uint32_t errword) const
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Container class for LArDigit.
std::vector< std::string > m_keyList
AthAlgorithm()
Default constructor:
std::string channel_name(const HWIdentifier id) const
Return a string corresponding to a feedthrough name given an identifier.
Container class for LArAccumulatedCalibDigit.
const LArOnlineID * m_onlineID
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>