|
ATLAS Offline Software
|
Go to the documentation of this file.
20 #include "Identifier/Identifier.h"
27 #include "GaudiKernel/ThreadLocalContext.h"
68 return StatusCode::SUCCESS;
74 ATH_MSG_INFO (
" ---- Summary from LArBadFebMaskingTool ");
81 return StatusCode::SUCCESS;
85 const EventContext& ctx)
const
92 if (!larFebErrorSummary.
isValid()) {
94 return StatusCode::SUCCESS;
98 const std::map<unsigned int,uint16_t>& febMap = larFebErrorSummary->
get_all_febs();
127 bool toMask1 =
false;
128 bool inError =
false;
131 unsigned int ifeb = febId.get_identifier32().get_compact();
134 std::map<unsigned int,uint16_t>::const_iterator
it1 = febMap.find(ifeb);
135 if (
it1 != febMap.end()) {
138 ATH_MSG_DEBUG (
" ierror,toMask " << ierror <<
" " << toMask1 <<
" ");
145 if (toMask1 || inError) {
147 for (
int ch=0;
ch<128; ++
ch) {
149 if (
cabling->isOnlineConnected(hwid)) {
176 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
const std::map< unsigned int, uint16_t > & get_all_febs() const
get all febs with error
IdentifierHash calo_cell_hash(const Identifier cellId) const
create hash id from 'global' cell id
virtual void setTime(float time)
set time
Conditions-Data class holding LAr Bad Channel or Bad Feb information.
bool updateEventFlagBit(const EventFlagSubDet subDet, const size_t bit) const
Change detector flags with update semantics.
value_type get_compact() const
Get the compact id.
const std::string & key() const
Return the StoreGate ID for the referenced object.
uint16_t provenance() const
get provenance (data member)
virtual void setEnergy(float energy)
set energy
@ LAr
The LAr calorimeter.
LArBC_t status(const HWIdentifier channel) const
Query the status of a particular channel or FEB This is the main client access method.
@ Error
The sub-detector issued an error.
id_range feb_range() const
virtual void setQuality(uint16_t quality)
set quality
std::vector< HWIdentifier >::iterator it1
::StatusCode StatusCode
StatusCode definition for legacy code.
int nCellsCalo(const CaloCell_ID::SUBCALO caloNum) const
get number of cels of given calorimeter
Handle class for adding a decoration to an object.
HWIdentifier channel_Id(int barrel_ec, int pos_neg, int feedthrough, int slot, int channel) const
create channel identifier from fields
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
void setProvenance(uint16_t prov)
set Provenance
virtual bool isValid() override final
Can the handle be successfully dereferenced?
StatusCode initialize(bool used=true)
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
bool inError() const
FEB has readout errors, cannot be used.
Container class for CaloCell.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Data object for each calorimeter readout cell.
#define ATH_MSG_WARNING(x)
int findIndex(const IdentifierHash theHash) const
Return index of the cell with a given hash.
bool updateErrorState(const EventFlagSubDet subDet, const EventFlagErrorState state) const
Update the error state for one particular sub-detector.
const T * at(size_type n) const
Access an element, as an rvalue.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...