24 #include "larevt/CalibrationDBI/Interface/ChannelStatusProvider.h" 25 #include "larevt/CalibrationDBI/Interface/ChannelStatusService.h" 45 fMinADC = pset.get<
double>(
"MinADC");
55 if (!rawdigitView.
size())
return false;
57 lariov::ChannelStatusProvider
const& channelFilter =
63 if (!channelFilter.IsGood(digit->Channel()))
continue;
65 std::vector<short> rawadc(digit->Samples());
67 short max = *std::max_element(rawadc.begin(), rawadc.end()) - digit->GetPedestal();
68 if (max >=
fMinADC)
return true;
std::string fDigitModuleLabel
bool filter(art::Event &evt)
Collection of charge vs time digitized from a single readout channel.
Definition of basic raw digits.
#define DEFINE_ART_MODULE(klass)
Collect all the RawData header files together.
std::size_t getView(std::string const &moduleLabel, std::string const &productInstanceName, std::string const &processName, std::vector< ELEMENT const * > &result) const
ADCFilter(fhicl::ParameterSet const &)
auto size() const noexcept
EDFilter(fhicl::ParameterSet const &pset)
void Uncompress(const std::vector< short > &adc, std::vector< short > &uncompressed, raw::Compress_t compress)
Uncompresses a raw data buffer.