EmTrackClusterId2outTl_module.cc
Go to the documentation of this file.
1 /////////////////////////////////////////////////////////////////////////////////
2 // Class: EmTrackClusterId2outTl
3 // Module Type: producer
4 // File: EmTrackClusterId2outTl_module.cc
5 // Authors: dorota.stefan@cern.ch pplonski86@gmail.com robert.sulej@cern.ch
6 //
7 // Module applies CNN to 2D image made of deconvoluted wire waveforms in order
8 // to distinguish EM-like activity from track-like objects. New clusters of
9 // hits are produced to include also unclustered hits and tag everything in
10 // a common way.
11 // NOTE: This module uses 2-output CNN models, see EmTrackClusterId and
12 // EmTrackMichelClusterId for usage of 3 and 4-output models.
13 //
14 /////////////////////////////////////////////////////////////////////////////////
15 
20 
21 namespace nnet {
22 
24  public:
26  explicit EmTrackClusterId2outTl(Parameters const& p);
27 
32 
33  private:
34  void produce(art::Event& e) override;
36  };
37  // ------------------------------------------------------
38 
40  : EDProducer{p}
41  , fEmTrack{p(), p.get_PSet().get<std::string>("module_label"), producesCollector()}
42  {}
43  // ------------------------------------------------------
44 
45  void
47  {
48  fEmTrack.produce(evt);
49  }
50  // ------------------------------------------------------
51 
53 
54 }
EmTrackClusterId2outTl & operator=(EmTrackClusterId2outTl const &)=delete
std::string string
Definition: nybbler.cc:12
EDProducer(fhicl::ParameterSet const &pset)
Definition: EDProducer.h:20
const double e
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:67
void produce(art::Event &e)
Definition: EmTrack.h:430
p
Definition: test.py:223
ProducesCollector & producesCollector() noexcept
TCEvent evt
Definition: DataStructs.cxx:7
void produce(art::Event &e) override