Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
IITkStripCablingTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef IITkCablingTool_h
6 #define IITkCablingTool_h
7 
16 //InnerDetector
17 //to ensure clients can actually use the conversion constructors, include these here (otherwise could be forward declared)
19 
20 //Gaudi includes
21 #include "GaudiKernel/EventContext.h"
22 #include "GaudiKernel/IAlgTool.h"
23 
24 //standard includes
25 #include <cstdint> //C++11
26 #include <vector>
27 
28 //fwd declarations
29 class Identifier;
30 class IdentifierHash;
31 
36 class IITkStripCablingTool: virtual public IAlgTool {
37  public:
39  virtual ~IITkStripCablingTool() = default;
40 
43 
46  virtual ITkStripOnlineId getOnlineIdFromHash(const IdentifierHash& hash, const EventContext& ctx) const = 0;
47 
50  virtual std::uint32_t getRobIdFromHash(const IdentifierHash& hash, const EventContext& ctx) const = 0;
51 
53  virtual void getAllRods(std::vector<std::uint32_t>& usersVector) const = 0;
54  virtual void getAllRods(std::vector<std::uint32_t>& usersVector, const EventContext& ctx) const = 0;
55 };
56 
57 #endif // IITkStripCablingTool_h
IITkStripCablingTool::getOnlineIdFromHash
virtual ITkStripOnlineId getOnlineIdFromHash(const IdentifierHash &hash, const EventContext &ctx) const =0
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
IITkStripCablingTool
Definition: IITkStripCablingTool.h:36
IITkStripCablingTool::DeclareInterfaceID
DeclareInterfaceID(IITkStripCablingTool, 1, 0)
Creates the InterfaceID and interfaceID() method.
ITkStripOnlineId.h
IITkStripCablingTool::getAllRods
virtual void getAllRods(std::vector< std::uint32_t > &usersVector) const =0
fill a users vector with all the RodIds
IITkStripCablingTool::getRobIdFromHash
virtual std::uint32_t getRobIdFromHash(const IdentifierHash &hash) const =0
return the rob/rod Id, given a hash (used by simulation encoders)
IITkStripCablingTool::~IITkStripCablingTool
virtual ~IITkStripCablingTool()=default
no-op destructor
IITkStripCablingTool::getRobIdFromHash
virtual std::uint32_t getRobIdFromHash(const IdentifierHash &hash, const EventContext &ctx) const =0
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
ITkStripOnlineId
Definition: ITkStripOnlineId.h:16
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
IITkStripCablingTool::getAllRods
virtual void getAllRods(std::vector< std::uint32_t > &usersVector, const EventContext &ctx) const =0
IITkStripCablingTool::getOnlineIdFromHash
virtual ITkStripOnlineId getOnlineIdFromHash(const IdentifierHash &hash) const =0
return the online Id, given a hash (used by simulation encoders)
Identifier
Definition: IdentifierFieldParser.cxx:14