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 
54 
55  // Interface inherited from IRegSelTool service
56 
57 
58  void HashIDList( const IRoiDescriptor& roi, std::vector<IdentifierHash>& idlist ) const override;
59 
60 
61  void HashIDList( long layer, const IRoiDescriptor& roi, std::vector<IdentifierHash>& idlist) const override;
62 
63 
64  void ROBIDList( const IRoiDescriptor& roi, std::vector<uint32_t>& roblist ) const override;
65 
66 
67  void ROBIDList( long layer, const IRoiDescriptor& roi, std::vector<uint32_t>& roblist ) const override;
68 
69 
70 protected:
71 
73  // const RegSelSiLUT* lookup() const;
74  const IRegSelLUT* lookup() const;
75 
76 protected:
77 
78  void cleanup( std::vector<IdentifierHash>& idvec ) const;
79 
80 private:
81 
84 
86  BooleanProperty m_dumpTable;
87 
88  SG::ReadCondHandleKey<IRegSelLUTCondData> m_tableKey{ this, "RegSelLUT", "Tool_Not_Initalised", "Region Selector lookup table" };
89 
95 
96  bool m_rpcflag;
97 
98 };
99 
100 #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:88
RegSelTool::initialize
virtual StatusCode initialize() override
@method initialize, loads lookup tables for retrieve Identifier Hash and ROBID
Definition: RegSelTool.cxx:45
RegSelTool::m_initialised
bool m_initialised
Flag to determine whether it has yet been initialised.
Definition: RegSelTool.h:83
RegSelTool::m_rpcflag
bool m_rpcflag
flag to avoid the need for a separate rpc lookup table class FixMe: this flag may be replaced by cust...
Definition: RegSelTool.h:96
RegSelTool::~RegSelTool
virtual ~RegSelTool() override
Destructor.
Definition: RegSelTool.cxx:34
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IRoiDescriptor
Describes the API of the Region of Ineterest geometry.
Definition: IRoiDescriptor.h:23
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
RegSelTool
emacs: this is -*- c++ -*-
Definition: RegSelTool.h:38
IRegSelLUT
Definition: IRegSelLUT.h:25
IRegSelLUTCondData.h
RegSelTool::HashIDList
void HashIDList(const IRoiDescriptor &roi, std::vector< IdentifierHash > &idlist) const override
IRegSlTool interface ...
Definition: RegSelTool.cxx:72
RegSelTool::cleanup
void cleanup(std::vector< IdentifierHash > &idvec) const
Definition: RegSelTool.cxx:58
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
DetDescrDictionaryDict::idvec
DataVector< Identifier > idvec
Definition: DetDescrDictionaryDict.h:14
RegSelTool::m_dumpTable
BooleanProperty m_dumpTable
Flag to dump loaded table in data file.
Definition: RegSelTool.h:86
SG::ReadCondHandleKey
Definition: ReadCondHandleKey.h:20
RegSelTool::ROBIDList
void ROBIDList(const IRoiDescriptor &roi, std::vector< uint32_t > &roblist) const override
ROB id access methods.
Definition: RegSelTool.cxx:121
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
RegSelSiLUT
Definition: RegSelSiLUT.h:41
IRoiDescriptor.h
RegSelTool::lookup
const IRegSelLUT * lookup() const
@method lookup, actually retrieve the lookup table as conditions data - might combine with handle()
Definition: RegSelTool.cxx:37