All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sbnana/sbnanalysis/ana/SBNOscReco/TriggerEmulator/PMTTrigger.h
Go to the documentation of this file.
1 #ifndef _sbnanalysis_numu_TriggerEmulator_hh
2 #define _sbnanalysis_numu_TriggerEmulator_hh
3 
4 #include <vector>
5 
7 
8 #include "../Data/DetInfo.h"
9 
10 namespace numu {
11 
12 std::vector<FlashTriggerPrimitive> TriggerPrimitives(
13  const std::vector<raw::OpDetWaveform> &waveforms,
14  double tick_period,
15  std::pair<double, double> &window,
16  int thresh,
17  bool is_sbnd);
18 
19  bool HasTrigger(const std::vector<FlashTriggerPrimitive> &primitives, int threshold, unsigned n_above_threshold);
20  std::vector<int> TriggerThresholds(const std::vector<numu::FlashTriggerPrimitive> &primitives, unsigned size);
21 }
22 
23 #endif
std::vector< FlashTriggerPrimitive > TriggerPrimitives(const std::vector< raw::OpDetWaveform > &waveforms, double tick_period, std::pair< double, double > &window, int thresh, bool is_sbnd)
Definition: PMTTrigger.cc:7
std::size_t size(FixedBins< T, C > const &) noexcept
Definition: FixedBins.h:561
std::vector< int > TriggerThresholds(const std::vector< numu::FlashTriggerPrimitive > &primitives, unsigned size)
Definition: PMTTrigger.cc:37
int tick_period
Definition: constants.py:3
bool HasTrigger(const std::vector< FlashTriggerPrimitive > &primitives, int threshold, unsigned n_above_threshold)
Definition: PMTTrigger.cc:65