20 #include "lbne-raw-data/Services/ChannelMap/ChannelMapService.h" 21 #include "art_root_io/TFileService.h" 71 std::vector<raw::RawDigit>
const& rawDigitVector(*rawDigitHandle);
75 for (
int i = 0; i<3; ++i){
76 for (
int j = 0; j<32; ++j){
81 unsigned int ch = digitIt->Channel();
82 unsigned int plane =
fChannelMap->PlaneFromOfflineChannel(ch);
83 unsigned int rce =
fChannelMap->RCEFromOfflineChannel(ch);
84 unsigned int regulator =
fChannelMap->RegulatorFromOfflineChannel(ch);
85 float ped = digitIt->GetPedestal();
86 for (
unsigned s = 0;
s< 15000; ++
s){
87 sig[plane][rce*2+regulator][count[plane][rce*2+regulator]]->SetBinContent(
s+1,digitIt->ADC(
s)-ped);
89 ++count[plane][rce*2+regulator];
97 for (
int i = 0; i<3; ++i){
98 for (
int j = 0; j<32; ++j){
99 for (
int k = 0;
k<28; ++
k){
100 sig[i][j][
k] = tfs->make<TH1D>(Form(
"sig_%d_%d_%d",i,j,
k),Form(
"Plane=%d Regulator=%d Channel=%d",i,j,
k),15000,0,15000);
Pedestal provider class for DUNE.
CheckRawDigit & operator=(CheckRawDigit const &)=delete
Definition of basic raw digits.
void CheckRawDigit(raw::RawDigit const &digits, raw::ChannelID_t channel, unsigned short samples, raw::RawDigit::ADCvector_t const &uncompressed_adclist, raw::Compress_t compression)
EDAnalyzer(fhicl::ParameterSet const &pset)
std::string fRawDigitModuleLabel
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
#define DEFINE_ART_MODULE(klass)
T get(std::string const &key) const
std::string fRawDigitModuleInstance
CheckRawDigit(fhicl::ParameterSet const &p)
art::ServiceHandle< lbne::ChannelMapService > fChannelMap
void analyze(art::Event const &e) override