Interface for initializing the histograms to be filled.
Begin job method.
199 art::TFileDirectory
dir =
tfs->mkdir(dirName.c_str());
207 double readOutSize =
detProp.ReadOutWindowSize();
208 double maxFreq = 1.e6 / (2. * sampleRate);
209 size_t numSamples = readOutSize / 2;
240 for(
size_t idx = 0; idx < 20; idx++)
244 fFFTPowerVec[plane][idx] = dir.make<TProfile>(histName.c_str(),
"Power Spectrum;kHz;Power", numSamples, 0., maxFreq, 0., 10000.);
248 fFFTPowerDerivVec[plane][idx] = dir.make<TProfile>(histName.c_str(),
"Power Deriv;kHz;Power", numSamples, 0., maxFreq, -500., 500.);
252 fFFTRealVec[plane][idx] = dir.make<TProfile>(histName.c_str(),
"Real values;kHz;Power", numSamples, 0., maxFreq, -10000., 10000.);
256 fFFTImaginaryVec[plane][idx] = dir.make<TProfile>(histName.c_str(),
"Imaginary values;kHz;Power", numSamples, 0., maxFreq, -10000., 10000.);
260 fSmoothPowerVec[plane][idx] = dir.make<TProfile>(histName.c_str(),
"Power Spectrum;kHz;Power", numSamples, 0., maxFreq, 0., 10000.);
265 fAveFFTPowerVec[plane] = dir.make<TProfile>(histName.c_str(),
"Power Spectrum;kHz;Power", numSamples, 0., maxFreq, 0., 1000.);
269 fConvFFTPowerVec[plane] = dir.make<TProfile>(histName.c_str(),
"Power Spectrum;kHz;Power", numSamples, 0., maxFreq, 0., 1000.);
273 fConvKernelVec[plane] = dir.make<TProfile>(histName.c_str(),
"Convolution Kernel;kHz;Power", numSamples, 0., maxFreq, 0., 1000.);
277 fFilterFuncVec[plane] = dir.make<TProfile>(histName.c_str(),
"Filter Function;kHz;Power", numSamples, 0., maxFreq, 0., 1000.);
281 fAveFFTPowerDerivVec[plane] = dir.make<TProfile>(histName.c_str(),
"Power Deriv;kHz;Power", numSamples, 0., maxFreq, -500., 500.);
285 fAveFFTRealVec[plane] = dir.make<TProfile>(histName.c_str(),
"Real values;kHz;Power", numSamples, 0., maxFreq, -10000., 1000.);
289 fAveFFTImaginaryVec[plane] = dir.make<TProfile>(histName.c_str(),
"Imaginary values;kHz;Power", numSamples, 0., maxFreq, -1000., 1000.);
293 fAveSmoothPowerVec[plane] = dir.make<TProfile>(histName.c_str(),
"Power Spectrum;kHz;Power", numSamples, 0., maxFreq, 0., 1000.);
297 fTruncMeanHist[plane] = dir.make<TH1D>(histName.c_str(),
";ADC", 200, -50., 50.);
301 fTruncRmsHist[plane] = dir.make<TH1D>(histName.c_str(),
";ADC", 100, 0., 20.);
305 fFullRmsHist[plane] = dir.make<TH1D>(histName.c_str(),
";ADC", 100, 0., 20.);
314 for(
size_t idx = 0; idx < numSamples; idx++)
316 double freq = 1.e6 * double(idx)/ (sampleRate * readOutSize);
std::vector< TProfile * > fAveFFTPowerVec
std::vector< TProfile * > fAveFFTPowerDerivVec
icarusutil::SignalShapingICARUSService & fSignalServices
The signal shaping service.
std::vector< std::vector< TProfile * > > fSmoothPowerVec
std::vector< TProfile * > fConvKernelVec
std::vector< TProfile * > fAveFFTRealVec
std::vector< TH1D * > fTruncRmsHist
std::vector< TProfile * > fConvFFTPowerVec
std::vector< std::vector< TProfile * > > fFFTPowerVec
std::vector< ComplexVal > FrequencyVec
unsigned int Nplanes(unsigned int tpc=0, unsigned int cstat=0) const
Returns the total number of wire planes in the specified TPC.
std::vector< TProfile * > fFilterFuncVec
std::vector< TH1D * > fTruncMeanHist
std::vector< std::vector< TProfile * > > fFFTRealVec
std::vector< TH1D * > fFullRmsHist
const geo::GeometryCore & fGeometry
pointer to Geometry service
raw::ChannelID_t PlaneWireToChannel(WireID const &wireid) const
Returns the ID of the TPC channel connected to the specified wire.
std::vector< std::vector< TProfile * > > fFFTImaginaryVec
std::string to_string(WindowPattern const &pattern)
std::vector< std::vector< TProfile * > > fFFTPowerDerivVec
std::vector< TProfile * > fAveSmoothPowerVec
const icarus_tool::IResponse & GetResponse(size_t channel) const
std::vector< size_t > fHiWireByPlane
Hi wire for individual wire histograms.
art::ServiceHandle< art::TFileService > tfs
unsigned int ChannelID_t
Type representing the ID of a readout channel.
double sampling_rate(DetectorClocksData const &data)
Returns the period of the TPC readout electronics clock.
std::vector< size_t > fLoWireByPlane
Low wire for individual wire histograms.
std::vector< TProfile * > fAveFFTImaginaryVec