ATLAS Offline Software
Loading...
Searching...
No Matches
TIPWriterAlgTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef GLOBALSIM_TIPWRITERALGTOOL_H
6#define GLOBALSIM_TIPWRITERALGTOOL_H
7
9
11
12#include <string>
13
14namespace GlobalSim {
15
20
21
22 class TIPWriterAlgTool: public extends<AthAlgTool, ITIPWriterAlgTool> {
23
24 public:
25 TIPWriterAlgTool(const std::string& type,
26 const std::string& name,
27 const IInterface* parent);
28
29 virtual ~TIPWriterAlgTool() override = default;
30
32 virtual StatusCode initialize() override;
33
34 virtual StatusCode updateTIP(std::bitset<s_nbits_TIP>&,
35 const EventContext&) const override;
36
37 virtual StatusCode countPassingTOBs(const EventContext&, unsigned int&) const = 0;
38
39 // For TIP alg initialize to check for overlaps
40 TIPword getFullTIPWord() const override;
41
42 protected:
43
44 Gaudi::Property<unsigned int> m_TIP_position {
45 this,
46 "TIPposition",
47 0,
48 "start position to write into the TIP"};
49
50 Gaudi::Property<unsigned int> m_TIP_width {
51 this,
52 "TIPwidth",
53 1,
54 "number of bits to write into the TIP"};
55
56 ulong m_maxtob{0};
57
58 };
59}
60#endif
virtual StatusCode updateTIP(std::bitset< s_nbits_TIP > &, const EventContext &) const override
virtual ~TIPWriterAlgTool() override=default
Gaudi::Property< unsigned int > m_TIP_position
Gaudi::Property< unsigned int > m_TIP_width
virtual StatusCode countPassingTOBs(const EventContext &, unsigned int &) const =0
TIPWriterAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode initialize() override
Initialize function running before first event.
TIPword getFullTIPWord() const override
AlgTool to read in LArStripNeighborhoods, and run the eRatio Algorithm.
std::bitset< ITIPWriterAlgTool::s_nbits_TIP > TIPword