9 #ifndef ICARUSCODE_PMT_TRIGGER_ALGORITHMS_SLIDINGWINDOWDEFINITIONALG_H
10 #define ICARUSCODE_PMT_TRIGGER_ALGORITHMS_SLIDINGWINDOWDEFINITIONALG_H
19 #include "cetlib_except/exception.h"
32 namespace geo {
class GeometryCore; }
35 namespace icarus::trigger {
class SlidingWindowDefinitionAlg; }
115 std::string logCategory =
"SlidingWindowDefinitionAlg"
126 (
unsigned int windowSize,
unsigned int windowStride)
const;
129 (
unsigned int windowSize,
unsigned int windowStride)
const
158 std::string logCategory
168 #endif // ICARUSCODE_PMT_TRIGGER_ALGORITHMS_SLIDINGWINDOWDEFINITIONALG_H
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
std::vector< raw::Channel_t > TriggerWindowChannels_t
Type of optical detector channel list in a window.
icarus::trigger::TriggerWindowDefs_t WindowDefs_t
Definition of all windows.
icarus::trigger::TriggerWindowChannels_t WindowChannels_t
Type of optical detector channel list in a window.
geo::GeometryCore const & fGeom
Geometry service provider.
Description of geometry of one entire detector.
Definition for PMT sliding windows.
WindowDefs_t operator()(unsigned int windowSize, unsigned int windowStride) const
std::string const fLogCategory
Message facility stream category for output.
Groups optical detector channels into windows based on position.
SlidingWindowDefinitionAlg(geo::GeometryCore const &geom, std::string logCategory="SlidingWindowDefinitionAlg")
Constructor: complete algorithm setup.
WindowDefs_t makeWindows(unsigned int windowSize) const
Performs the calculation and returns the sliding window composition.
std::vector< TriggerWindowChannels_t > TriggerWindowDefs_t
Definition of all windows.
WindowDefs_t makeWindows(unsigned int windowSize, unsigned int windowStride) const
Performs the calculation and returns the sliding window composition.