gdynamicDigitization
Loading...
Searching...
No Matches
gplugin_test_example.h
Go to the documentation of this file.
1#pragma once
2
19// gdynamic
21
22// c++
23#include <string>
24
37{
38public:
41
53 bool defineReadoutSpecsImpl() override;
54
71 bool loadConstantsImpl(int runno, std::string const& variation) override;
72
83 bool loadTTImpl([[maybe_unused]] int runno, [[maybe_unused]] std::string const& variation) override;
84
97 [[nodiscard]] std::unique_ptr<GDigitizedData> digitizeHitImpl(GHit* ghit, [[maybe_unused]] size_t hitn) override;
98
99private:
101 double var1 = 1;
102
104 int var2[2] = {0, 0};
105
107 std::vector<double> var3;
108
110 std::string var4;
111
113 std::shared_ptr<GTranslationTable> translationTable;
114};
Abstract base class for dynamically loaded digitization plugins.
GDynamicDigitization(const std::shared_ptr< GOptions > &g)
Constructs the digitization base object.
Minimal test plugin for dynamic digitization.
bool loadConstantsImpl(int runno, std::string const &variation) override
Loads example constants used by this plugin.
bool loadTTImpl(int runno, std::string const &variation) override
Builds a minimal in-memory translation table for the example.
std::unique_ptr< GDigitizedData > digitizeHitImpl(GHit *ghit, size_t hitn) override
Digitizes the provided hit into a small example output record.
bool defineReadoutSpecsImpl() override
Defines readout specifications for this example plugin.