16 #include "art/Framework/Core/ModuleMacros.h"
17 #include "art/Framework/Core/EDProducer.h"
18 #include "art/Framework/Principal/Event.h"
20 #include "fhiclcpp/types/Atom.h"
21 #include "fhiclcpp/types/Name.h"
22 #include "fhiclcpp/types/Comment.h"
62 Comment(
"name of the data product instance to produce"),
72 virtual void produce(art::Event& event)
override;
85 void produceHits(art::Event& event, std::string instanceName);
101 : art::EDProducer(config)
103 producesCollector(), config().instanceName(),
117 (art::Event& event, std::string instanceName)
123 auto Hits = hitCollManager.collectionWriter(event);
126 for (
double time: { 0.0, 200.0, 400.0 }) {
151 Hits.put_into(event);
Declaration of signal hit object.
virtual void produce(art::Event &event) override
fhicl::Atom< std::string > instanceName
art::EDProducer::Table< Config > Parameters
int TDCtick_t
Type representing a TDC tick.
HitCollectionCreatorTest(Parameters const &config)
Helper functions to create a hit.
constexpr ChannelID_t InvalidChannelID
ID of an invalid channel.
BEGIN_PROLOG vertical distance to the surface Name
recob::HitCollectionCreatorManager hitCollManager
Definition of data types for geometry description.
art::PtrVector< recob::Hit > Hits
std::string fInstanceName
Instance name to be used for products.
void produceHits(art::Event &event, std::string instanceName)
Produces a collection of hits and stores it into the event.
2D representation of charge deposited in the TDC/wire plane
BEGIN_PROLOG hitmakerfive clustermakerfour pfparticlemakerthree showermakertwo END_PROLOG hitmakerfive clustermakerfour pfparticlemakerthree sequence::inline_paths sequence::inline_paths sequence::inline_paths showermakers test
Test module for recob::HitCollector.