ATLAS Offline Software
HLTResultMTByteStreamDecoderAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGHLTRESULTBYTESTREAM_HLTResultMTByteStreamDecoderAlg_H
6 #define TRIGHLTRESULTBYTESTREAM_HLTResultMTByteStreamDecoderAlg_H
7 
8 // Trigger includes
11 
12 // Athena includes
15 #include "StoreGate/WriteHandle.h"
16 
21 public:
23  HLTResultMTByteStreamDecoderAlg(const std::string& name, ISvcLocator* svcLoc);
24 
25  // ------------------------- AthReentrantAlgorithm methods -------------------
26  virtual StatusCode initialize() override;
27  virtual StatusCode finalize() override;
28  virtual StatusCode execute(const EventContext& eventContext) const override;
29 
30 private:
31  // ------------------------- Properties --------------------------------------
33  Gaudi::Property<std::vector<uint16_t>> m_moduleIdsToDecode {
34  this, "ModuleIdsToDecode", {0,1,2,3,4,5,6},
35  "List of module IDs from which payload will be decoded"
36  };
38  SG::WriteHandleKey<HLT::HLTResultMT> m_hltResultWHKey {this, "HLTResultWHKey", "HLTResultMT",
39  "Key of the output HLTResultMT object"};
40 
41  // ------------------------- Tool/Service handles ----------------------------
43  ToolHandle<HLTResultMTByteStreamDecoderTool> m_decoderTool {this, "DecoderTool", "HLTResultMTByteStreamDecoderTool",
44  "Tool performing the decoding work"};
47 
48  // ------------------------- Other private members ---------------------------
50  std::vector<uint32_t> m_robIdsToDecode;
51 };
52 
53 #endif // TRIGHLTRESULTBYTESTREAM_HLTResultMTByteStreamDecoderAlg_H
HLTResultMTByteStreamDecoderAlg::finalize
virtual StatusCode finalize() override
Definition: HLTResultMTByteStreamDecoderAlg.cxx:34
HLTResultMTByteStreamDecoderAlg::m_hltResultWHKey
SG::WriteHandleKey< HLT::HLTResultMT > m_hltResultWHKey
StoreGate key for the output HLTResultMT.
Definition: HLTResultMTByteStreamDecoderAlg.h:38
HLTResultMTByteStreamDecoderAlg::m_moduleIdsToDecode
Gaudi::Property< std::vector< uint16_t > > m_moduleIdsToDecode
Module IDs to decode.
Definition: HLTResultMTByteStreamDecoderAlg.h:33
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
WriteHandle.h
Handle class for recording to StoreGate.
HLTResultMTByteStreamDecoderAlg
Algorithm creating HLTResultMT from ByteStream representation.
Definition: HLTResultMTByteStreamDecoderAlg.h:20
SG::WriteHandleKey< HLT::HLTResultMT >
HLTResultMTByteStreamDecoderTool.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
HLTResultMTByteStreamDecoderAlg::m_decoderTool
ToolHandle< HLTResultMTByteStreamDecoderTool > m_decoderTool
Tool performing the decoding work.
Definition: HLTResultMTByteStreamDecoderAlg.h:43
AthReentrantAlgorithm.h
HLTResultMTByteStreamDecoderAlg::HLTResultMTByteStreamDecoderAlg
HLTResultMTByteStreamDecoderAlg(const std::string &name, ISvcLocator *svcLoc)
Standard constructor.
Definition: HLTResultMTByteStreamDecoderAlg.cxx:10
HLTResultMTByteStreamDecoderAlg::m_robIdsToDecode
std::vector< uint32_t > m_robIdsToDecode
Full ROB IDs constructed from the ModuleIdsToDecode property.
Definition: HLTResultMTByteStreamDecoderAlg.h:50
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
HLTResultMTByteStreamDecoderAlg::m_robDataProviderSvc
ServiceHandle< IROBDataProviderSvc > m_robDataProviderSvc
ROBDataProvider service handle.
Definition: HLTResultMTByteStreamDecoderAlg.h:46
HLTResultMT.h
HLTResultMTByteStreamDecoderAlg::initialize
virtual StatusCode initialize() override
Definition: HLTResultMTByteStreamDecoderAlg.cxx:17
IROBDataProviderSvc.h
ServiceHandle< IROBDataProviderSvc >
HLTResultMTByteStreamDecoderAlg::execute
virtual StatusCode execute(const EventContext &eventContext) const override
Definition: HLTResultMTByteStreamDecoderAlg.cxx:43