All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
hit::RFFHitFinder Class Reference
Inheritance diagram for hit::RFFHitFinder:

Public Member Functions

 RFFHitFinder (fhicl::ParameterSet const &p)
 
 RFFHitFinder (RFFHitFinder const &)=delete
 
 RFFHitFinder (RFFHitFinder &&)=delete
 
RFFHitFinderoperator= (RFFHitFinder const &)=delete
 
RFFHitFinderoperator= (RFFHitFinder &&)=delete
 

Private Member Functions

void produce (art::Event &e) override
 
void beginJob () override
 

Private Attributes

art::InputTag fWireModuleLabel
 
RFFHitFinderAlg fAlg
 

Detailed Description

Definition at line 31 of file RFFHitFinder_module.cc.

Constructor & Destructor Documentation

hit::RFFHitFinder::RFFHitFinder ( fhicl::ParameterSet const &  p)
explicit

Definition at line 53 of file RFFHitFinder_module.cc.

54  :
55  EDProducer{p},
56  fWireModuleLabel(p.get<std::string>("WireModuleLabel")),
57  fAlg(p.get<fhicl::ParameterSet>("RFFHitFinderAlgParams"))
58  {
59  //calls the produces stuff for me!
61  }
art::InputTag fWireModuleLabel
pdgs p
Definition: selectors.fcl:22
static void declare_products(art::ProducesCollector &collector, std::string instance_name="", bool doWireAssns=true, bool doRawDigitAssns=true)
Declares the hit products we are going to fill.
Definition: HitCreator.cxx:248
RFFHitFinderAlg fAlg
hit::RFFHitFinder::RFFHitFinder ( RFFHitFinder const &  )
delete
hit::RFFHitFinder::RFFHitFinder ( RFFHitFinder &&  )
delete

Member Function Documentation

void hit::RFFHitFinder::beginJob ( )
overrideprivate

Definition at line 80 of file RFFHitFinder_module.cc.

81  {
82  art::ServiceHandle<geo::Geometry const> geoHandle;
83  geo::Geometry const& geo(*geoHandle);
85  }
void SetFitterParamsVectors(geo::Geometry const &)
The geometry of one entire detector, as served by art.
Definition: Geometry.h:181
RFFHitFinderAlg fAlg
RFFHitFinder& hit::RFFHitFinder::operator= ( RFFHitFinder const &  )
delete
RFFHitFinder& hit::RFFHitFinder::operator= ( RFFHitFinder &&  )
delete
void hit::RFFHitFinder::produce ( art::Event &  e)
overrideprivate

Definition at line 63 of file RFFHitFinder_module.cc.

64  {
65  art::ServiceHandle<geo::Geometry const> geoHandle;
66 
67  art::Handle< std::vector<recob::Wire> > wireHandle;
68  e.getByLabel(fWireModuleLabel,wireHandle);
69 
70  std::unique_ptr< std::vector<recob::Hit> > hitCollection(new std::vector<recob::Hit>);
71  fAlg.Run(*wireHandle,*hitCollection,*geoHandle);
72 
74  hcol.use_hits(std::move(hitCollection));
75  hcol.put_into(e);
76 
77  //e.put(std::move(hitCollection));
78  }
art::InputTag fWireModuleLabel
void Run(std::vector< recob::Wire > const &, std::vector< recob::Hit > &, geo::Geometry const &)
A class handling a collection of hits and its associations.
Definition: HitCreator.h:692
do i e
RFFHitFinderAlg fAlg

Member Data Documentation

RFFHitFinderAlg hit::RFFHitFinder::fAlg
private

Definition at line 49 of file RFFHitFinder_module.cc.

art::InputTag hit::RFFHitFinder::fWireModuleLabel
private

Definition at line 48 of file RFFHitFinder_module.cc.


The documentation for this class was generated from the following file: