ATLAS Offline Software
RegSelTool.h
Go to the documentation of this file.
1 
13 #ifndef REGIONSELECTOR_REGSELTOOL_H
14 #define REGIONSELECTOR_REGSELTOOL_H
15 
16 // interface includes
19 
20 // spam
21 #include "GaudiKernel/StatusCode.h"
22 #include "GaudiKernel/ToolHandle.h"
23 #include "GaudiKernel/MsgStream.h"
25 
26 #include <string>
27 #include <iostream>
28 #include <vector>
29 #include <cstdint>
30 
32 
33 class RegSelModule;
34 class RegSelSiLUT;
35 class IInterface;
36 
37 
38 class RegSelTool : public extends<AthAlgTool, IRegSelTool> {
39 
40 public:
41 
44  RegSelTool( const std::string& type, const std::string& name, const IInterface* parent );
45 
47  virtual ~RegSelTool() override;
48 
49 
51  virtual StatusCode initialize() override;
52 
53 protected:
54 
56 
57  const IRegSelLUT* lookup( const EventContext& ctx ) const override;
58 
59 private:
60 
63 
65  BooleanProperty m_dumpTable;
66 
67  SG::ReadCondHandleKey<IRegSelLUTCondData> m_tableKey{ this, "RegSelLUT", "Tool_Not_Initalised", "Region Selector lookup table" };
68 
69 };
70 
71 #endif // REGIONSELECTOR_REGSELTOOL_H
RegSelModule
Definition: RegSelModule.h:38
IRegSelTool.h
RegSelTool::RegSelTool
RegSelTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor for tool (obviously).
Definition: RegSelTool.cxx:21
RegSelTool::m_tableKey
SG::ReadCondHandleKey< IRegSelLUTCondData > m_tableKey
Definition: RegSelTool.h:67
RegSelTool::initialize
virtual StatusCode initialize() override
@method initialize, loads lookup tables for retrieve Identifier Hash and ROBID
Definition: RegSelTool.cxx:37
RegSelTool::m_initialised
bool m_initialised
Flag to determine whether it has yet been initialised.
Definition: RegSelTool.h:62
RegSelTool::~RegSelTool
virtual ~RegSelTool() override
Destructor.
Definition: RegSelTool.cxx:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
RegSelTool
emacs: this is -*- c++ -*-
Definition: RegSelTool.h:38
IRegSelLUT
Definition: IRegSelLUT.h:26
IRegSelLUTCondData.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
RegSelTool::m_dumpTable
BooleanProperty m_dumpTable
Flag to dump loaded table in data file.
Definition: RegSelTool.h:65
SG::ReadCondHandleKey
Definition: ReadCondHandleKey.h:20
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
RegSelSiLUT
Definition: RegSelSiLUT.h:41
IRoiDescriptor.h
RegSelTool::lookup
const IRegSelLUT * lookup(const EventContext &ctx) const override
@method lookup, actually retrieve the lookup table as conditions data
Definition: RegSelTool.cxx:48