48 fMinADC = pset.get<
double > (
"MinADC");
58 if(!rawdigitView.
size())
return false;
67 if (!channelFilter.
IsGood(digit->Channel()))
continue;
69 std::vector<short> rawadc(digit->Samples());
71 short max = *std::max_element(rawadc.begin(),rawadc.end()) - digit->GetPedestal();
std::string fDigitModuleLabel
bool filter(art::Event &evt)
Collection of charge vs time digitized from a single readout channel.
#define DEFINE_ART_MODULE(klass)
virtual bool IsGood(raw::ChannelID_t channel) const
Returns whether the specified channel is physical and good.
Class providing information about the quality of channels.
static int max(int a, int b)
ADCFilter(fhicl::ParameterSet const &)
auto size() const noexcept
Interface for experiment-specific channel quality info provider.
EDFilter(fhicl::ParameterSet const &pset)
std::size_t getView(std::string const &moduleLabel, std::string const &productInstanceName, std::string const &processName, std::vector< ELEMENT const * > &result) const
Interface for experiment-specific service for channel quality info.
void Uncompress(const std::vector< short > &adc, std::vector< short > &uncompressed, raw::Compress_t compress)
Uncompresses a raw data buffer.