ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCellRec
src
EventInfoClearAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef LARCELLREC_EVENTINFOCELARALG_H
6
#define LARCELLREC_EVENTINFOCELARALG_H
7
8
#include "
AthenaBaseComps/AthAlgorithm.h
"
9
#include "
StoreGate/ReadHandleKey.h
"
10
#include "
StoreGate/WriteDecorHandleKey.h
"
11
#include "
xAODEventInfo/EventInfo.h
"
12
#include <atomic>
13
#include "
CxxUtils/checker_macros.h
"
14
#include "
xAODEventInfo/EventInfoLockHelper.h
"
15
16
//Ad-hoc xAODFix algorithm, intended to cear the EventInfo::ErrorState for run 456721, LB 731 - End of run
17
//One Front End boad failed, producing data-corruption errors. One failing FEB is considered a tolerable defect
18
//Now, this one FEB is properly marked as "deadReadout" but the veto-periods have not been cleared from
19
//the EventVeto DB folder. Therefore the Event-Info ERROR-bit is (incorrectly) set
20
//This algo is not thread-safe, it relies on const_cast to modify the xAOD::EventInfo object
21
//Therefore, it needs to be scheduled in the AthBeginSeq
22
23
24
class
AthenaAttributeList
;
25
26
class
ATLAS_NOT_THREAD_SAFE
EventInfoClearAlg
:
public
AthAlgorithm
{
27
public
:
28
//Delegate constructor:
29
using
AthAlgorithm::AthAlgorithm
;
30
31
virtual
StatusCode
initialize
()
override
;
32
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
33
virtual
StatusCode
finalize
()
override
;
34
35
private
:
36
mutable
std::atomic<unsigned>
m_nevt
{0};
37
mutable
std::atomic<unsigned>
m_nevtCleard
{0};
38
39
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfoKey
{
this
,
"EventInfoKey"
,
"EventInfo"
};
40
41
EventInfoLockHelper::unlockFunc_t
m_runIf
=[](uint32_t runNbr, uint32_t lbNbr,uint64_t)->
bool
{
return
(runNbr==456729 && lbNbr>=732);};
42
};
43
#endif
AthAlgorithm.h
EventInfoLockHelper.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
checker_macros.h
Define macros for attributes used to control the static checker.
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition
checker_macros.h:212
AthAlgorithm::execute
virtual StatusCode execute(const EventContext &ctx)=0
Execute method.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
AthenaAttributeList
An AttributeList represents a logical row of attributes in a metadata table.
Definition
PersistentDataModel/PersistentDataModel/AthenaAttributeList.h:46
EventInfoClearAlg
Definition
EventInfoClearAlg.h:26
EventInfoClearAlg::finalize
virtual StatusCode finalize() override
Definition
EventInfoClearAlg.cxx:23
EventInfoClearAlg::m_nevtCleard
std::atomic< unsigned > m_nevtCleard
Definition
EventInfoClearAlg.h:37
EventInfoClearAlg::m_runIf
EventInfoLockHelper::unlockFunc_t m_runIf
Definition
EventInfoClearAlg.h:41
EventInfoClearAlg::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
EventInfoClearAlg::m_nevt
std::atomic< unsigned > m_nevt
Definition
EventInfoClearAlg.h:36
EventInfoClearAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition
EventInfoClearAlg.h:39
EventInfoLockHelper::unlockFunc_t
std::function< bool(uint32_t, uint32_t, uint64_t)> unlockFunc_t
Definition
EventInfoLockHelper.h:22
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
initialize
void initialize()
Definition
run_EoverP.cxx:894
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0