14 #include "fhiclcpp/ParameterSet.h"
15 #include "art/Framework/Core/EDFilter.h"
16 #include "art/Framework/Core/ModuleMacros.h"
17 #include "art/Framework/Principal/Event.h"
18 #include "art/Framework/Principal/View.h"
19 #include "art/Framework/Services/Registry/ServiceHandle.h"
34 explicit ADCFilter(fhicl::ParameterSet
const& );
47 fDigitModuleLabel = pset.get< std::string > (
"DigitModuleLabel");
48 fMinADC = pset.get<
double > (
"MinADC");
55 art::View<raw::RawDigit> rawdigitView;
58 if(!rawdigitView.size())
return false;
61 = art::ServiceHandle<lariov::ChannelStatusService const>()->GetProvider();
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.
Definition of basic raw digits.
Collect all the RawData header files together.
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.
ADCFilter(fhicl::ParameterSet const &)
Interface for experiment-specific channel quality info provider.
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.