All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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:

Classes

struct  Config
 

Public Types

using Parameters = art::EDProducer::Table< Config >
 

Public Member Functions

 AssnsChainHitMaker (Parameters const &config)
 
virtual void produce (art::Event &event) override
 

Private Attributes

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

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

using lar::test::AssnsChainHitMaker::Parameters = art::EDProducer::Table<Config>

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.

60  : EDProducer{config}, nHits(config().nHits())
61  {
62  produces<std::vector<recob::Hit>>();
63  }
unsigned int nHits
Number of hits to be generated.

Member Function Documentation

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

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
Unknown view.
Definition: geo_types.h:136
int TDCtick_t
Type representing a TDC tick.
Definition: RawTypes.h:25
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: