Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larreco
larreco
HitFinder
HitFinderTools
ICandidateHitFinder.h
Go to the documentation of this file.
1
///////////////////////////////////////////////////////////////////////
2
///
3
/// \file ICandidateHitFinder.h
4
///
5
/// \brief This provides an interface for tools which are tasked with
6
/// finding candidate hits on input waveforms
7
///
8
/// \author T. Usher
9
///
10
////////////////////////////////////////////////////////////////////////
11
12
#ifndef ICandidateHitFinder_H
13
#define ICandidateHitFinder_H
14
15
#include "
fhiclcpp/ParameterSet.h
"
16
#include "
lardataobj/RecoBase/Wire.h
"
17
18
namespace
reco_tool
{
19
class
ICandidateHitFinder
{
20
public
:
21
virtual
~ICandidateHitFinder
() noexcept =
default
;
22
23
// Define a structure to contain hits
24
struct
HitCandidate
{
25
size_t
startTick
;
26
size_t
stopTick
;
27
size_t
maxTick
;
28
size_t
minTick
;
29
float
maxDerivative
;
30
float
minDerivative
;
31
float
hitCenter
;
32
float
hitSigma
;
33
float
hitHeight
;
34
};
35
36
using
HitCandidateVec
= std::vector<HitCandidate>;
37
using
MergeHitCandidateVec
= std::vector<HitCandidateVec>;
38
39
using
Waveform
= std::vector<float>;
40
41
// Search for candidate hits on the input waveform
42
virtual
void
findHitCandidates
(
43
const
recob::Wire::RegionsOfInterest_t::datarange_t&,
// Waveform (with range info) to analyze
44
const
size_t
,
// waveform start tick
45
const
size_t
,
// channel #
46
const
size_t
,
// Event count (for histograms)
47
HitCandidateVec
&)
const
= 0;
// output candidate hits
48
49
virtual
void
MergeHitCandidates
(
const
recob::Wire::RegionsOfInterest_t::datarange_t&,
50
const
HitCandidateVec
&,
51
MergeHitCandidateVec
&)
const
= 0;
52
};
53
}
54
55
#endif
reco_tool::ICandidateHitFinder::HitCandidate
Definition:
ICandidateHitFinder.h:24
reco_tool::ICandidateHitFinder::Waveform
std::vector< float > Waveform
Definition:
ICandidateHitFinder.h:39
reco_tool
Definition:
CandHitDerivative_tool.cc:20
reco_tool::ICandidateHitFinder::MergeHitCandidates
virtual void MergeHitCandidates(const recob::Wire::RegionsOfInterest_t::datarange_t &, const HitCandidateVec &, MergeHitCandidateVec &) const =0
ParameterSet.h
reco_tool::ICandidateHitFinder::HitCandidate::stopTick
size_t stopTick
Definition:
ICandidateHitFinder.h:26
reco_tool::ICandidateHitFinder::HitCandidate::hitCenter
float hitCenter
Definition:
ICandidateHitFinder.h:31
reco_tool::ICandidateHitFinder::HitCandidate::hitHeight
float hitHeight
Definition:
ICandidateHitFinder.h:33
reco_tool::ICandidateHitFinder::HitCandidate::maxDerivative
float maxDerivative
Definition:
ICandidateHitFinder.h:29
reco_tool::ICandidateHitFinder::HitCandidate::hitSigma
float hitSigma
Definition:
ICandidateHitFinder.h:32
reco_tool::ICandidateHitFinder::HitCandidate::minDerivative
float minDerivative
Definition:
ICandidateHitFinder.h:30
reco_tool::ICandidateHitFinder::~ICandidateHitFinder
virtual ~ICandidateHitFinder() noexcept=default
reco_tool::ICandidateHitFinder::HitCandidate::startTick
size_t startTick
Definition:
ICandidateHitFinder.h:25
reco_tool::ICandidateHitFinder::findHitCandidates
virtual void findHitCandidates(const recob::Wire::RegionsOfInterest_t::datarange_t &, const size_t, const size_t, const size_t, HitCandidateVec &) const =0
reco_tool::ICandidateHitFinder::HitCandidate::minTick
size_t minTick
Definition:
ICandidateHitFinder.h:28
reco_tool::ICandidateHitFinder::HitCandidate::maxTick
size_t maxTick
Definition:
ICandidateHitFinder.h:27
Wire.h
Declaration of basic channel signal object.
reco_tool::ICandidateHitFinder::MergeHitCandidateVec
std::vector< HitCandidateVec > MergeHitCandidateVec
Definition:
ICandidateHitFinder.h:37
reco_tool::ICandidateHitFinder
Definition:
ICandidateHitFinder.h:19
reco_tool::ICandidateHitFinder::HitCandidateVec
std::vector< HitCandidate > HitCandidateVec
Definition:
ICandidateHitFinder.h:36
Generated by
1.8.11