sbn::PMTFlashTriggerFilter::PMTFlashTriggerFilter |
( |
fhicl::ParameterSet const & |
p | ) |
|
|
explicit |
bool sbn::PMTFlashTriggerFilter::filter |
( |
art::Event & |
e | ) |
|
|
override |
Definition at line 70 of file PMTFlashTriggerFilter_module.cc.
72 art::Handle<std::vector<sbn::FlashTriggerPrimitive>> flashtrig_handle;
76 if (flashtrig_handle.isValid()) {
81 std::unique_ptr<bool>
store(
new bool);
process_name opflash opflashana store
art::InputTag fFlashTriggerPrimitiveLabel
bool HasTrigger(const std::vector< FlashTriggerPrimitive > &primitives, int threshold, unsigned n_above_threshold)
unsigned fNPMTAboveThreshold
bool sbn::PMTFlashTriggerFilter::HasTrigger |
( |
const std::vector< FlashTriggerPrimitive > & |
primitives, |
|
|
int |
threshold, |
|
|
unsigned |
n_above_threshold |
|
) |
| |
|
private |
Definition at line 89 of file PMTFlashTriggerFilter_module.cc.
90 if (n_above_threshold == 0)
return true;
92 std::map<int, std::vector<unsigned>> above_threshold;
96 if (trig.
adc <= threshold) {
97 above_threshold[trig.
tdc].push_back(primitive.channel);
102 for (
auto const &pair: above_threshold) {
103 if (pair.second.size() >= n_above_threshold) {
art::InputTag sbn::PMTFlashTriggerFilter::fFlashTriggerPrimitiveLabel |
|
private |
unsigned sbn::PMTFlashTriggerFilter::fNPMTAboveThreshold |
|
private |
int sbn::PMTFlashTriggerFilter::fPMTTriggerThreshold |
|
private |
bool sbn::PMTFlashTriggerFilter::fStoreDataProduct |
|
private |
The documentation for this class was generated from the following file: