Classes | Public Types | Public Member Functions | Private Attributes | List of all members
lar::test::AssnsChainHitMaker Class Reference

Creates some dummy hits. More...

Inheritance diagram for lar::test::AssnsChainHitMaker:
art::EDProducer art::detail::Producer art::detail::LegacyModule art::Modifier art::ModuleBase art::ProductRegistryHelper

Classes

struct  Config
 

Public Types

using Parameters = art::EDProducer::Table< Config >
 
- Public Types inherited from art::EDProducer
using ModuleType = EDProducer
 
using WorkerType = WorkerT< EDProducer >
 
- Public Types inherited from art::detail::Producer
template<typename UserConfig , typename KeysToIgnore = void>
using Table = Modifier::Table< UserConfig, KeysToIgnore >
 
- Public Types inherited from art::Modifier
template<typename UserConfig , typename UserKeysToIgnore = void>
using Table = ProducerTable< UserConfig, detail::ModuleConfig, UserKeysToIgnore >
 

Public Member Functions

 AssnsChainHitMaker (Parameters const &config)
 
virtual void produce (art::Event &event) override
 
- Public Member Functions inherited from art::EDProducer
 EDProducer (fhicl::ParameterSet const &pset)
 
template<typename Config >
 EDProducer (Table< Config > const &config)
 
std::string workerType () const
 
- Public Member Functions inherited from art::detail::Producer
virtual ~Producer () noexcept
 
 Producer (fhicl::ParameterSet const &)
 
 Producer (Producer const &)=delete
 
 Producer (Producer &&)=delete
 
Produceroperator= (Producer const &)=delete
 
Produceroperator= (Producer &&)=delete
 
void doBeginJob (SharedResources const &resources)
 
void doEndJob ()
 
void doRespondToOpenInputFile (FileBlock const &fb)
 
void doRespondToCloseInputFile (FileBlock const &fb)
 
void doRespondToOpenOutputFiles (FileBlock const &fb)
 
void doRespondToCloseOutputFiles (FileBlock const &fb)
 
bool doBeginRun (RunPrincipal &rp, ModuleContext const &mc)
 
bool doEndRun (RunPrincipal &rp, ModuleContext const &mc)
 
bool doBeginSubRun (SubRunPrincipal &srp, ModuleContext const &mc)
 
bool doEndSubRun (SubRunPrincipal &srp, ModuleContext const &mc)
 
bool doEvent (EventPrincipal &ep, ModuleContext const &mc, std::atomic< std::size_t > &counts_run, std::atomic< std::size_t > &counts_passed, std::atomic< std::size_t > &counts_failed)
 
- Public Member Functions inherited from art::Modifier
 ~Modifier () noexcept
 
 Modifier ()
 
 Modifier (Modifier const &)=delete
 
 Modifier (Modifier &&)=delete
 
Modifieroperator= (Modifier const &)=delete
 
Modifieroperator= (Modifier &&)=delete
 
- Public Member Functions inherited from art::ModuleBase
virtual ~ModuleBase () noexcept
 
 ModuleBase ()
 
ModuleDescription const & moduleDescription () const
 
void setModuleDescription (ModuleDescription const &)
 
std::array< std::vector< ProductInfo >, NumBranchTypes > const & getConsumables () const
 
void sortConsumables (std::string const &current_process_name)
 
template<typename T , BranchType BT>
ViewToken< T > consumesView (InputTag const &tag)
 
template<typename T , BranchType BT>
ViewToken< T > mayConsumeView (InputTag const &tag)
 

Private Attributes

unsigned int nHits
 Number of hits to be generated. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from art::EDProducer
static void commitEvent (EventPrincipal &ep, Event &e)
 
- Protected Member Functions inherited from art::ModuleBase
ConsumesCollectorconsumesCollector ()
 
template<typename T , BranchType = InEvent>
ProductToken< T > consumes (InputTag const &)
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > consumesView (InputTag const &)
 
template<typename T , BranchType = InEvent>
void consumesMany ()
 
template<typename T , BranchType = InEvent>
ProductToken< T > mayConsume (InputTag const &)
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > mayConsumeView (InputTag const &)
 
template<typename T , BranchType = InEvent>
void mayConsumeMany ()
 

Detailed Description

Creates some dummy hits.

The produced hits are not associated to wires or raw digits.

Configuration parameters

Definition at line 42 of file AssnsChainHitMaker_module.cc.

Member Typedef Documentation

Definition at line 57 of file AssnsChainHitMaker_module.cc.

Constructor & Destructor Documentation

lar::test::AssnsChainHitMaker::AssnsChainHitMaker ( Parameters const &  config)
inlineexplicit

Definition at line 59 of file AssnsChainHitMaker_module.cc.

61  {
62  produces<std::vector<recob::Hit>>();
63  }
EDProducer(fhicl::ParameterSet const &pset)
Definition: EDProducer.h:20
static Config * config
Definition: config.cpp:1054
unsigned int nHits
Number of hits to be generated.

Member Function Documentation

void lar::test::AssnsChainHitMaker::produce ( art::Event event)
overridevirtual

Implements art::EDProducer.

Definition at line 80 of file AssnsChainHitMaker_module.cc.

80  {
81 
82  auto hits = std::make_unique<std::vector<recob::Hit>>();
83 
84  for (unsigned int i = 0; i < nHits; ++i) {
85 
86  hits->emplace_back(
87  raw::ChannelID_t(i + 1), // channel
88  raw::TDCtick_t(10*i), // start_tick
89  raw::TDCtick_t(10*i + 40), // end_tick
90  10.0 * i, // peak_time
91  1.0, // sigma_peak_time
92  0.5, // RMS
93  200.0 + i, // peak_amplitude
94  10.0, // sigma_peak_amplitude
95  400.0, // summedADC
96  400.0, // hit_integral
97  10.0, // hit_sigma_integral
98  1, // multiplicity
99  0, // local_index
100  1.0, // goodness_of_fit
101  37, // DOF
102  geo::kUnknown, // view
103  geo::kMysteryType, // signal_type
104  geo::WireID{ 0, 1, 2, i } // wire ID
105  );
106 
107  } // for
108 
109  mf::LogInfo("AssnsChainHitMaker") << "Produced " << hits->size() << " hits.";
110 
111  event.put(std::move(hits));
112 
113 } // lar::test::AssnsChainHitMaker::produce()
Who knows?
Definition: geo_types.h:147
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
Unknown view.
Definition: geo_types.h:136
int TDCtick_t
Type representing a TDC tick.
Definition: RawTypes.h:25
def move(depos, offset)
Definition: depos.py:107
unsigned int nHits
Number of hits to be generated.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Definition: RawTypes.h:28

Member Data Documentation

unsigned int lar::test::AssnsChainHitMaker::nHits
private

Number of hits to be generated.

Definition at line 68 of file AssnsChainHitMaker_module.cc.


The documentation for this class was generated from the following file: