15 #include "messagefacility/MessageLogger/MessageLogger.h"
27 gigahertz samplingFreq,
unsigned int nSubsamples,
31 using namespace util::quantities::time_literals;
32 using namespace icarus::waveform_operations;
41 auto const isBelowThreshold = (pulseShape.polarity() == +1)
42 #
if defined(__clang__) && (__clang_major__ < 8)
55 #
if defined(__clang__) && (__clang_major__ < 8)
71 std::cref(pulseShape),
75 static_cast<gsl::index
>(nSubsamples),
84 (
ADCcount limit, std::string
const& outputCat )
const
86 assert(pulseLength() > 0);
87 auto const low = *(fSampledShape.subsample(0).begin());
89 = *(fSampledShape.subsample(fSampledShape.nSubsamples() - 1).rbegin());
91 bool const bLowOk = (
low.abs() < limit);
92 bool const bHighOk = (high.abs() < limit);
93 if (bLowOk && bHighOk)
return true;
94 if (!outputCat.empty()) {
95 mf::LogWarning log(outputCat);
96 log <<
"Check on sampled photoelectron waveform template failed!";
98 log <<
"\n => low tail at the starting of sampling is already " <<
low;
102 <<
"\n => high tail at the end of sampling ("
103 << duration() <<
") is still at " << high
106 log <<
"\nShape parameters:" << shape().toString(
" ",
"");
standard_dbscan3dalg useful for diagnostics hits not in a line will not be clustered on on only for track like only for track like on on the smaller the less shower like tracks low
bool checkRange(ADCcount limit, std::string const &outputCat) const
Checks that the waveform tails not sampled are negligible.
A value measured in the specified unit.
static SampledFunction_t sampleShape(PulseFunction_t const &pulseShape, gigahertz samplingFreq, unsigned int nSubsamples, ADCcount threshold)
Builds the sampling cache.
Interface for a function describing a pulse from a photoelectron.
Sampling of a photoelectron pulse.
then echo echo For and will not be changed by echo further linking echo echo B echo The symbol is in the uninitialized data multiple common symbols may appear with the echo same name If the symbol is defined the common echo symbols are treated as undefined references For more echo details on common see the discussion of warn common echo in *Note Linker see the discussion of warn common echo in *Note Linker such as a global int variable echo as opposed to a large global array echo echo I echo The symbol is an indirect reference to another symbol This echo is a GNU extension to the a out object file format which is echo rarely used echo echo N echo The symbol is a debugging symbol echo echo R echo The symbol is in a read only data section echo echo S echo The symbol is in an uninitialized data section for small echo objects echo echo T echo The symbol is in the the normal defined echo symbol is used with no error When a weak undefined symbol echo is linked and the symbol is not defined
then echo File list $list not found else cat $list while read file do echo $file sed s
nanosecond nanoseconds
Alias for common language habits.