LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
EmTrackClusterId2outTl_module.cc
Go to the documentation of this file.
1 // 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 //
15 
17 
21 #include "fhiclcpp/ParameterSet.h"
22 
23 #include <string>
24 
25 namespace nnet {
26 
28  public:
30  explicit EmTrackClusterId2outTl(Parameters const& p);
31 
36 
37  private:
38  void produce(art::Event& e) override;
40  };
41  // ------------------------------------------------------
42 
44  : EDProducer{p}
45  , fEmTrack{p(), p.get_PSet().get<std::string>("module_label"), producesCollector()}
46  {}
47  // ------------------------------------------------------
48 
50  {
51  fEmTrack.produce(evt);
52  }
53  // ------------------------------------------------------
54 
56 
57 }
EmTrackClusterId2outTl & operator=(EmTrackClusterId2outTl const &)=delete
EDProducer(fhicl::ParameterSet const &pset)
Definition: EDProducer.cc:6
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:65
void produce(art::Event &e)
Definition: EmTrack.h:391
Definition: EmTrack.h:40
ProducesCollector & producesCollector() noexcept
TCEvent evt
Definition: DataStructs.cxx:8
Float_t e
Definition: plot.C:35
void produce(art::Event &e) override