LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
EmTrackClusterId3outTl_module.cc
Go to the documentation of this file.
1 // Class: EmTrackClusterId3outTl
3 // Module Type: producer
4 // File: EmTrackClusterId3outTl_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 3-output CNN models, see EmTrackMichelClusterId for
12 // usage of 4-output models and EmTrackClusterId3outTl2out_module.cc for 2-output
13 // models.
14 //
16 
18 
21 #include "fhiclcpp/ParameterSet.h"
22 
23 #include <string>
24 
25 namespace nnet {
26 
28  public:
30  explicit EmTrackClusterId3outTl(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 }
EDProducer(fhicl::ParameterSet const &pset)
Definition: EDProducer.cc:6
EmTrackClusterId3outTl & operator=(EmTrackClusterId3outTl const &)=delete
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:65
void produce(art::Event &e)
Definition: EmTrack.h:391
Definition: EmTrack.h:40
void produce(art::Event &e) override
ProducesCollector & producesCollector() noexcept
TCEvent evt
Definition: DataStructs.cxx:8
Float_t e
Definition: plot.C:35