17 double timeWindow = 10;
19 double gridStartTime = 0;
21 HitBitSet hitBitSet(
"000001");
25 readoutSpecs = std::make_shared<GReadoutSpecs>(timeWindow, gridStartTime, hitBitSet, log);
48 GIdentifier identity = ghit->getGID().front();
51 auto gdata = std::make_unique<GDigitizedData>(
gopts, ghit);
55 gdata->includeVariable(identity.getName(), identity.getValue());
57 gdata->includeVariable(
"hitn",
static_cast<int>(hitn));
59 gdata->includeVariable(
"totEdep", ghit->getTotalEnergyDeposited());
61 gdata->includeVariable(
"time", ghit->getAverageTime());
63 gdata->includeVariable(
"pid", ghit->getPid());
65 gdata->includeVariable(
"totalE", ghit->getE());
std::shared_ptr< GOptions > gopts
Optional pointer to GOptions.
void check_if_log_defined() const
Checks that all required loggers and options are defined.
std::shared_ptr< const GReadoutSpecs > readoutSpecs
After init, we never mutate these:
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.
Declares internal digitization classes for various detector types.