EmTrackMichelIdTl_module.cc
Go to the documentation of this file.
1 /////////////////////////////////////////////////////////////////////////////////////
2 // Class: EmTrackMichelIdTl
3 // Module Type: producer
4 // File: EmTrackMichelIdTl_module.cc
5 // Authors: D.Stefan (dorota.stefan@cern.ch), from DUNE, CERN/NCBJ
6 // P.Plonski (pplonski86@gmail.com), from DUNE, WUT
7 // R.Sulej (robert.sulej@cern.ch), from DUNE, FNAL/NCBJ
8 // M.Wang (mwang@fnal.gov), from DUNE, FNAL, tool interface ver
9 // Module applies CNN to 2D image made of deconvoluted wire waveforms in order
10 // to distinguish EM-like activity from track-like objects. In addition the activity
11 // of Michel electrons is recognized. New clusters of hits are produced to include
12 // also unclustered hits and tag all the activity as EM/track in the same way.
13 // Note: Michel electrons are best tagged on the level of single hits, since
14 // clustering may have introduced mistakes (hits of muon and electron clustered
15 // together).
16 //
17 /////////////////////////////////////////////////////////////////////////////////////
18 
22 #include "fhiclcpp/ParameterSet.h"
23 
25 
26 namespace nnet {
27 
29  public:
31  explicit EmTrackMichelIdTl(Parameters const& p);
32 
33  EmTrackMichelIdTl(EmTrackMichelIdTl const&) = delete;
37 
38  private:
39  void produce(art::Event& e) override;
41  };
42  // ------------------------------------------------------
43 
45  : EDProducer{p}
46  , fEmTrack{p(), p.get_PSet().get<std::string>("module_label"), producesCollector()}
47  {}
48  // ------------------------------------------------------
49 
50  void
52  {
53  fEmTrack.produce(evt);
54  }
55  // ------------------------------------------------------
56 
58 
59 }
std::string string
Definition: nybbler.cc:12
EmTrackMichelIdTl(Parameters const &p)
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
EmTrackMichelIdTl & operator=(EmTrackMichelIdTl const &)=delete
ProducesCollector & producesCollector() noexcept
TCEvent evt
Definition: DataStructs.cxx:7
void produce(art::Event &e) override