5 double timeWindow = 10;
6 double gridStartTime = 0;
8 double maxStep = 1 * CLHEP::mm;
10 readoutSpecs = std::make_shared<GReadoutSpecs>(timeWindow, gridStartTime, hitBitSet, maxStep,
log);
19 auto gdata = std::make_unique<GDigitizedData>(
gopts, ghit);
22 gdata->includeVariable(
"hitn",
static_cast<int>(hitn));
25 gdata->includeVariable(
"pid", ghit->
getPid());
26 gdata->includeVariable(
"totalE", ghit->
getE());
std::shared_ptr< GLogger > log
std::shared_ptr< GOptions > gopts
Options used by the digitization plugin instance.
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
std::string getName() const