7 double timeWindow = 10;
8 double gridStartTime = 0;
11 readoutSpecs = std::make_shared<GReadoutSpecs>(timeWindow, gridStartTime, hitBitSet,
log);
22 auto gdata = std::make_unique<GDigitizedData>(
gopts, ghit);
25 gdata->includeVariable(
"hitn",
static_cast<int>(hitn));
28 gdata->includeVariable(
"pid", ghit->
getPid());
29 gdata->includeVariable(
"totalE", ghit->
getE());
std::shared_ptr< GLogger > log
std::shared_ptr< GOptions > gopts
Options used by the digitization plugin instance.
void check_if_log_defined() const
Ensures options/logging are configured before plugin methods run.
std::shared_ptr< const GReadoutSpecs > readoutSpecs
Readout specs are created during initialization and treated as immutable.
std::unique_ptr< GDigitizedData > digitizeHitImpl(GHit *ghit, size_t hitn) override
Digitizes a hit for flux detectors.
bool defineReadoutSpecsImpl() override
Defines readout specifications for flux digitization.
std::vector< GIdentifier > getGID() const
double getTotalEnergyDeposited()
std::bitset< NHITBITS > HitBitSet
Internal digitization plugins shipped with the gdynamic digitization library.
std::string getName() const