18 GIdentifier identity = ghit->getGID().front();
20 auto gdata = std::make_unique<GDigitizedData>(
gopts, ghit);
22 gdata->includeVariable(identity.getName(), identity.getValue());
23 gdata->includeVariable(
"hitn",
static_cast<int> (hitn) );
24 gdata->includeVariable(
"totEdep", ghit->getTotalEnergyDeposited());
25 gdata->includeVariable(
"time", ghit->getAverageTime());
26 gdata->includeVariable(
"pid", ghit->getPid());
27 gdata->includeVariable(
"totalE", ghit->getE());
std::unique_ptr< GDigitizedData > digitizeHitImpl(GHit *ghit, size_t hitn) override
Digitizes a hit for particle counters.
bool defineReadoutSpecsImpl() override
Defines readout specifications for particle counter digitization.