ATLAS Offline Software
LArTimeVetoAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARCELLREC_LARTIMEVETOALG_H
6 #define LARCELLREC_LARTIMEVETOALG_H
7 
8 #include <string>
9 
15 #include <atomic>
16 
18 
20  public:
21  //Delegate constructor:
23 
24  virtual StatusCode initialize() override;
25  virtual StatusCode execute (const EventContext& ctx) const override;
26  virtual StatusCode finalize() override;
27 
28  private:
29  mutable std::atomic<unsigned> m_nevt{0};
30  mutable std::atomic<unsigned> m_nevtMasked{0};
31 
32  SG::ReadCondHandleKey<AthenaAttributeList> m_eventVetoKey{this, "folderName", "/LAR/BadChannelsOfl/EventVeto", "Folder name for DB access"};
33  SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey{this,"EventInfoKey","EventInfo"};
34  SG::WriteDecorHandleKey<xAOD::EventInfo> m_eventInfoDecorKey{this, "eventInfoDecorKey", "EventInfo.larFlags", "Key for EventInfo object"};
35 };
36 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey< xAOD::EventInfo >
LArTimeVetoAlg
Definition: LArTimeVetoAlg.h:19
LArTimeVetoAlg::m_nevtMasked
std::atomic< unsigned > m_nevtMasked
Definition: LArTimeVetoAlg.h:30
SG::ReadHandleKey< xAOD::EventInfo >
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
LArTimeVetoAlg::finalize
virtual StatusCode finalize() override
Definition: LArTimeVetoAlg.cxx:24
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArTimeVetoAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: LArTimeVetoAlg.h:33
AthenaAttributeList
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
Definition: PersistentDataModel/PersistentDataModel/AthenaAttributeList.h:45
ReadCondHandleKey.h
AthReentrantAlgorithm.h
LArTimeVetoAlg::m_eventInfoDecorKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
Definition: LArTimeVetoAlg.h:34
EventInfo.h
SG::ReadCondHandleKey< AthenaAttributeList >
LArTimeVetoAlg::initialize
virtual StatusCode initialize() override
Definition: LArTimeVetoAlg.cxx:13
LArTimeVetoAlg::m_nevt
std::atomic< unsigned > m_nevt
Definition: LArTimeVetoAlg.h:29
LArTimeVetoAlg::m_eventVetoKey
SG::ReadCondHandleKey< AthenaAttributeList > m_eventVetoKey
Definition: LArTimeVetoAlg.h:32
LArTimeVetoAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: LArTimeVetoAlg.cxx:32