LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ICandidateHitFinder.h
Go to the documentation of this file.
1
12
#ifndef ICandidateHitFinder_H
13
#define ICandidateHitFinder_H
14
15
#include "
fhiclcpp/ParameterSet.h
"
16
17
namespace
reco_tool
18
{
19
class
ICandidateHitFinder
20
{
21
public
:
22
virtual
~ICandidateHitFinder
() noexcept =
default
;
23
24
// Define standard art tool interface
25
virtual
void
configure
(
const
fhicl::ParameterSet
& pset) = 0;
26
27
// Define a structure to contain hits
28
using
HitCandidate_t
=
struct
HitCandidate
29
{
30
size_t
startTick;
31
size_t
stopTick
;
32
size_t
maxTick
;
33
size_t
minTick
;
34
float
maxDerivative
;
35
float
minDerivative
;
36
float
hitCenter
;
37
float
hitSigma
;
38
float
hitHeight
;
39
};
40
41
using
HitCandidateVec
= std::vector<HitCandidate_t>;
42
using
MergeHitCandidateVec
= std::vector<HitCandidateVec>;
43
44
using
Waveform
= std::vector<float>;
45
46
// Search for candidate hits on the input waveform
47
virtual
void
findHitCandidates
(
const
Waveform
&,
// Waveform to analyze
48
size_t
,
// waveform start tick
49
size_t
,
// channel #
50
size_t
,
// Event count (for histograms)
51
HitCandidateVec
&)
const
= 0;
// output candidate hits
52
53
virtual
void
MergeHitCandidates
(
const
Waveform
&,
54
const
HitCandidateVec
&,
55
MergeHitCandidateVec
&)
const
= 0;
56
};
57
}
58
59
#endif
reco_tool::ICandidateHitFinder::findHitCandidates
virtual void findHitCandidates(const Waveform &, size_t, size_t, size_t, HitCandidateVec &) const =0
reco_tool::ICandidateHitFinder::configure
virtual void configure(const fhicl::ParameterSet &pset)=0
reco_tool::ICandidateHitFinder::stopTick
size_t stopTick
Definition:
ICandidateHitFinder.h:31
reco_tool::ICandidateHitFinder::Waveform
std::vector< float > Waveform
Definition:
ICandidateHitFinder.h:44
reco_tool
Definition:
CandHitDerivative_tool.cc:23
reco_tool::ICandidateHitFinder::HitCandidateVec
std::vector< HitCandidate_t > HitCandidateVec
Definition:
ICandidateHitFinder.h:41
reco_tool::ICandidateHitFinder::HitCandidate_t
struct HitCandidate{size_t startTick HitCandidate_t
Definition:
ICandidateHitFinder.h:30
reco_tool::ICandidateHitFinder::minTick
size_t minTick
Definition:
ICandidateHitFinder.h:33
ParameterSet.h
reco_tool::ICandidateHitFinder::maxDerivative
float maxDerivative
Definition:
ICandidateHitFinder.h:34
reco_tool::ICandidateHitFinder::hitCenter
float hitCenter
Definition:
ICandidateHitFinder.h:36
reco_tool::ICandidateHitFinder::hitSigma
float hitSigma
Definition:
ICandidateHitFinder.h:37
reco_tool::ICandidateHitFinder::~ICandidateHitFinder
virtual ~ICandidateHitFinder() noexcept=default
reco_tool::ICandidateHitFinder::minDerivative
float minDerivative
Definition:
ICandidateHitFinder.h:35
reco_tool::ICandidateHitFinder::maxTick
size_t maxTick
Definition:
ICandidateHitFinder.h:32
reco_tool::ICandidateHitFinder::hitHeight
float hitHeight
Definition:
ICandidateHitFinder.h:38
reco_tool::ICandidateHitFinder::MergeHitCandidates
virtual void MergeHitCandidates(const Waveform &, const HitCandidateVec &, MergeHitCandidateVec &) const =0
reco_tool::ICandidateHitFinder::MergeHitCandidateVec
std::vector< HitCandidateVec > MergeHitCandidateVec
Definition:
ICandidateHitFinder.h:42
fhicl::ParameterSet
Definition:
ParameterSet.h:34
reco_tool::ICandidateHitFinder
Definition:
ICandidateHitFinder.h:19
larreco
v07_10_02
source
larreco
HitFinder
HitFinderTools
ICandidateHitFinder.h
Generated on Wed Dec 12 2018 14:42:55 for LArSoft by
1.8.11