|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "Identifier/Identifier.h"
22 m_noisyROTool(
"LArNoisyROTool",this)
36 return StatusCode::SUCCESS;
46 const std::set<unsigned int> knownBadFEBs;
47 const std::vector<HWIdentifier> knownMNBFEBs;
51 return StatusCode::SUCCESS;
54 const EventIDBase& EIHandle = ctx.eventID();
55 long int thisTimeStamp = (EIHandle).time_stamp();
56 long int thisTimeStampns = (EIHandle).time_stamp_ns_offset();
57 uint32_t thisLB = (EIHandle).lumi_block();
58 unsigned long long thisEv = (EIHandle).event_number();
59 ATH_MSG_DEBUG (
name() <<
" processing EN : " << thisEv <<
" in LB : " << thisLB <<
" TS : " << thisTimeStamp <<
" TSNS : " << thisTimeStampns );
61 std::set<unsigned int> bf;
62 std::vector<HWIdentifier> MNBfeb;
76 MNBfeb.emplace_back(
i->first);
98 if ( badFEBFlag || badFEBFlag_W || badSaturatedTightCut || MNBLooseCut || MNBTightCut || MNBTight_PsVetoCut)
101 bool failSetWARN=
false;
102 bool failSetWARNREASON=
false;
110 if ( badFEBFlag_W ) {
117 if ( badSaturatedTightCut ){
128 if ( MNBTight_PsVetoCut ) {
138 if (failSetWARN)
ATH_MSG_WARNING(
"Failure during EventInfo::setEventErrorState(EventInfo::LAR,EventInfo::WARNING)" );
139 if (failSetWARNREASON)
ATH_MSG_WARNING(
"Failure during setEventFlagBit(EventInfo::LAr,...)" );
142 return StatusCode::SUCCESS;
147 return StatusCode::SUCCESS;
uint8_t MNBTight_PsVetoFlaggedPartitions() const
SG::ReadHandleKey< CaloCellContainer > m_CaloCellContainerName
const_pointer_type cptr()
Dereference the pointer.
virtual StatusCode execute(const EventContext &ctx) const override
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
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.
uint8_t SatTightFlaggedPartitions() const
virtual StatusCode initialize() override
const std::string & key() const
Return the StoreGate ID for the referenced object.
@ LAr
The LAr calorimeter.
@ Error
The sub-detector issued an error.
An algorithm that can be simultaneously executed in multiple threads.
SG::WriteHandleKey< LArNoisyROSummary > m_outputKey
uint8_t MNBTightFlaggedPartitions() const
@ MININOISEBURSTTIGHT_PSVETO
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
uint8_t MNBLooseFlaggedPartitions() const
BadChanVec::const_iterator const_iterator
SG::ReadCondHandleKey< LArBadFebCont > m_knownMNBFEBsVecKey
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
virtual bool isValid() override final
Can the handle be successfully dereferenced?
ToolHandle< ILArNoisyROTool > m_noisyROTool
Gaudi::Property< bool > m_isMC
LArNoisyROAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadCondHandleKey< LArBadFebCont > m_knownBadFEBsVecKey
@ Warning
The sub-detector issued a warning.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
#define ATH_MSG_WARNING(x)
uint8_t BadFEB_WFlaggedPartitions() const
SG::WriteDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
EventFlagErrorState errorState(EventFlagSubDet subDet) const
Get the error state for a particular sub-detector.
virtual StatusCode finalize() override
bool updateErrorState(const EventFlagSubDet subDet, const EventFlagErrorState state) const
Update the error state for one particular sub-detector.
const_iterator begin() const
Access to the begin iterator of the underlying vector.
uint8_t BadFEBFlaggedPartitions() const
const_iterator end() const
Access to the end iterator of the underlying vector.