#include <RFFHitFinderAlg.h>
Definition at line 31 of file RFFHitFinderAlg.h.
Definition at line 87 of file RFFHitFinderAlg.cxx.
94 float totalArea = 0.0;
101 areaErrorVector[ihit] =
104 totalArea += areaVector[ihit];
109 areaFracVector[ihit] = areaVector[ihit]/totalArea;
111 hitVector.emplace_back(wire.Channel(),
119 summedADCTotal*areaFracVector[ihit],
121 areaErrorVector[ihit],
const std::vector< float > & AmplitudeVector()
const std::vector< float > & MeanVector()
const std::vector< float > & SigmaVector()
const std::vector< float > & MeanErrorVector()
const std::vector< float > & AmplitudeErrorVector()
const std::vector< float > & SigmaErrorVector()
Definition at line 60 of file RFFHitFinderAlg.cxx.
64 hitVector.reserve(wireVector.size());
65 for(
auto const& wire : wireVector)
68 geo::WireID const& wireID =
geo.ChannelToWire(wire.Channel()).at(0);
72 for(
auto const& roi : wire.SignalROI().get_ranges())
76 const float summedADCTotal = std::accumulate(roi.data().begin(),roi.data().end(),0.0);
80 EmplaceHit(hitVector,wire,summedADCTotal,startTick,endTick,sigtype,wireID);
void EmplaceHit(std::vector< recob::Hit > &, recob::Wire const &, float const &, raw::TDCtick_t const &, raw::TDCtick_t const &, geo::SigType_t const &, geo::WireID const &)
void RunFitter(const std::vector< float > &signal)
int TDCtick_t
Type representing a TDC tick.
enum geo::_plane_sigtype SigType_t
void SetFitterParams(unsigned int)
LArSoft geometry interface.
void hit::RFFHitFinderAlg::SetFitterParams |
( |
unsigned int |
p | ) |
|
|
private |
Definition at line 55 of file RFFHitFinderAlg.cxx.
void SetFitterParams(float, unsigned int, float)
std::vector< float > fAmpThresholdVec
std::vector< float > fMatchThresholdVec
std::vector< unsigned int > fMergeMultiplicityVec
void hit::RFFHitFinderAlg::SetFitterParamsVectors |
( |
geo::Geometry const & |
geo | ) |
|
Definition at line 28 of file RFFHitFinderAlg.cxx.
30 const unsigned int n_planes =
geo.Nplanes();
38 throw std::runtime_error(
"Error in RFFHitFinderAlg: Configured with zero planes.");
43 throw std::runtime_error(
"Error in RFFHitFinderAlg: Configured with incorrect n_planes.");
std::vector< float > fAmpThresholdVec
std::vector< float > fMatchThresholdVec
std::vector< unsigned int > fMergeMultiplicityVec
LArSoft geometry interface.
std::vector<float> hit::RFFHitFinderAlg::fAmpThresholdVec |
|
private |
std::vector<float> hit::RFFHitFinderAlg::fMatchThresholdVec |
|
private |
std::vector<unsigned int> hit::RFFHitFinderAlg::fMergeMultiplicityVec |
|
private |
const float hit::RFFHitFinderAlg::SQRT_TWO_PI = 2.506628 |
|
private |
The documentation for this class was generated from the following files: