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 std::unique_ptr<IDataCollector>&,
36 const EventContext&) const override;
37
38 virtual StatusCode countPassingTOBs(const EventContext&, unsigned int&) const = 0;
39
40 // For TIP alg initialize to check for overlaps
41 TIPword getFullTIPWord() const override;
42
43 protected:
44
45 Gaudi::Property<unsigned int> m_TIP_position {
46 this,
47 "TIPposition",
48 0,
49 "start position to write into the TIP"};
50
51 Gaudi::Property<unsigned int> m_TIP_width {
52 this,
53 "TIPwidth",
54 1,
55 "number of bits to write into the TIP"};
56
57 ulong m_maxtob{0};
58
59 };
60}
61#endif
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 updateTIP(std::bitset< s_nbits_TIP > &, const std::unique_ptr< IDataCollector > &, const EventContext &) const override
virtual StatusCode initialize() override
Initialize function running before first event.
TIPword getFullTIPWord() const override
AlgTool to read in LArStripNeighborhoods, and run the BDT Algorithm.
std::bitset< ITIPWriterAlgTool::s_nbits_TIP > TIPword