ATLAS Offline Software
SCTEventFlagWriter.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef SCT_RAWDATABYTESTREAMCNV_SCTEVENTFLAGWRITER_H
8 #define SCT_RAWDATABYTESTREAMCNV_SCTEVENTFLAGWRITER_H
9 
11 
14 #include "GaudiKernel/ToolHandle.h"
15 
17 
27 {
28  public:
29 
31  SCTEventFlagWriter(const std::string &name, ISvcLocator *pSvcLocator);
32 
34  virtual ~SCTEventFlagWriter() = default;
35 
37  virtual StatusCode initialize() override;
38 
40  virtual StatusCode execute(const EventContext& ctx) const override;
41 
43  virtual bool isClonable() const override { return true; };
44 
45  private:
46 
48  ToolHandle<ISCT_ByteStreamErrorsTool> m_bsErrTool{this, "ErrorsTool", "SCT_ByteStreamErrorsTool",
49  "Tool to retrieve SCT ByteStream Errors"};
50 
52  SG::ReadHandleKey<xAOD::EventInfo> m_xAODEvtInfoKey{this, "xAODEventInfoKey", "EventInfo",
53  "xAOD event info key"};
54 };
55 
56 #endif // SCT_RAWDATABYTESTREAMCNV_SCTEVENTFLAGWRITER_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SCTEventFlagWriter
Athena reentrant Algorithm to flag an event bad if the number of errors exceed threshold.
Definition: SCTEventFlagWriter.h:27
SCTEventFlagWriter::~SCTEventFlagWriter
virtual ~SCTEventFlagWriter()=default
Destructur.
ISCT_ByteStreamErrorsTool
Definition: ISCT_ByteStreamErrorsTool.h:50
SG::ReadHandleKey< xAOD::EventInfo >
SCTEventFlagWriter::SCTEventFlagWriter
SCTEventFlagWriter(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: SCTEventFlagWriter.cxx:11
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SCTEventFlagWriter::initialize
virtual StatusCode initialize() override
Initialize.
Definition: SCTEventFlagWriter.cxx:18
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthReentrantAlgorithm.h
SCTEventFlagWriter::m_bsErrTool
ToolHandle< ISCT_ByteStreamErrorsTool > m_bsErrTool
Tool that keeps track of modules that give rise to errors in the bytestream.
Definition: SCTEventFlagWriter.h:48
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
EventInfo.h
SCTEventFlagWriter::execute
virtual StatusCode execute(const EventContext &ctx) const override
Execute.
Definition: SCTEventFlagWriter.cxx:28
SCTEventFlagWriter::isClonable
virtual bool isClonable() const override
Make this algorithm clonable.
Definition: SCTEventFlagWriter.h:43
SCTEventFlagWriter::m_xAODEvtInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_xAODEvtInfoKey
Read handle for the xAOD event info.
Definition: SCTEventFlagWriter.h:52