ATLAS Offline Software
ITIPwriterAlgTool.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 GLOBALSIM_ITIPWRITERALGTOOL_H
6 #define GLOBALSIM_ITIPWRITERALGTOOL_H
7 
8 #include "GaudiKernel/IAlgTool.h"
9 #include "GaudiKernel/EventContext.h"
10 
11 #include <string>
12 #include <bitset>
13 
14 // provide an pure abstract interface to AlgTools implementing
15 // AlgTools which write to the TIP word.
16 
17 namespace GlobalSim {
18  class ITIPwriterAlgTool : virtual public ::IAlgTool {
19 
20  public:
21 
24  static constexpr std::size_t s_nbits_TIP{1024};
25 
27  virtual ~ITIPwriterAlgTool() = default;
28 
29  virtual StatusCode updateTIP(std::bitset<s_nbits_TIP>&,
30  const EventContext& ) const = 0;
31 
32 
33  virtual std::string toString() const = 0;
34  };
35 
36  using TIPword = std::bitset<ITIPwriterAlgTool::s_nbits_TIP>;
37 
38 }
39 #endif
GlobalSim::ITIPwriterAlgTool::DeclareInterfaceID
DeclareInterfaceID(ITIPwriterAlgTool, 1, 0)
GlobalSim::ITIPwriterAlgTool::updateTIP
virtual StatusCode updateTIP(std::bitset< s_nbits_TIP > &, const EventContext &) const =0
GlobalSim::TIPword
std::bitset< ITIPwriterAlgTool::s_nbits_TIP > TIPword
Definition: ITIPwriterAlgTool.h:36
GlobalSim::ITIPwriterAlgTool
Definition: ITIPwriterAlgTool.h:18
GlobalSim
AlgTool that to test whether expected the TIP values generated by data supplied by eEmMultTestBench c...
Definition: CommonSelector.cxx:8
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
GlobalSim::ITIPwriterAlgTool::~ITIPwriterAlgTool
virtual ~ITIPwriterAlgTool()=default
GlobalSim::ITIPwriterAlgTool::toString
virtual std::string toString() const =0
GlobalSim::ITIPwriterAlgTool::s_nbits_TIP
static constexpr std::size_t s_nbits_TIP
Number of bits for the TIP word.
Definition: ITIPwriterAlgTool.h:24