Go to the documentation of this file.
29 :
Transformer(
name, pSvcLocator, { {
"MCHitsLocation",
"/Event/MCHits" } },
30 {
"HitsLocation",
"/Event/Hits" } ) {}
37 for (
auto const& mcHit : mcHits ) {
38 auto nx = mcHit.x + dist( engine );
39 auto ny = mcHit.y + dist( engine );
52 "A service providing a thread safe random number generator" };
54 "Sigma of the noise (a normal distribution centered on 0)" };
DigitizationAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Accumulators::Counter n_hits
ServiceHandle< IRandomGenSvc > m_rndSvc
Digitization algorithm returning a set of hits from MCHits, basically adding noise.
const ValueType & value() const
Gaudi::Property< float > m_sigmaNoise
T emplace_back(T... args)
#define DECLARE_COMPONENT(type)
details::Transformer< Signature, Traits_, details::isLegacy< Traits_ > > Transformer
Hits operator()(const EventContext &ctx, MCHits const &mcHits) const override