ATLAS Offline Software
Loading...
Searching...
No Matches
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
17namespace 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 virtual std::bitset<s_nbits_TIP> getFullTIPWord() const = 0;
33
34 virtual std::string toString() const = 0;
35 };
36
37 using TIPword = std::bitset<ITIPWriterAlgTool::s_nbits_TIP>;
38
39}
40#endif
virtual ~ITIPWriterAlgTool()=default
static constexpr std::size_t s_nbits_TIP
Number of bits for the TIP word.
virtual std::string toString() const =0
DeclareInterfaceID(ITIPWriterAlgTool, 1, 0)
virtual StatusCode updateTIP(std::bitset< s_nbits_TIP > &, const EventContext &) const =0
virtual std::bitset< s_nbits_TIP > getFullTIPWord() const =0
AlgTool to read in LArStripNeighborhoods, and run the eRatio Algorithm.
std::bitset< ITIPWriterAlgTool::s_nbits_TIP > TIPword