60 fNoiseMap = tfs->
make<TH3D>(
"h3_adc0adc1adc2",
";ADC0;ADC1;ADC2",
72 const unsigned int slcMax = slices->size();
73 for(
unsigned int slcIdx = 0; slcIdx < slcMax; ++slcIdx){
79 for(
unsigned int cellIdx = 0; cellIdx <
cellMax; ++cellIdx){
100 unsigned int nLiveChans = 0;
103 for(std::set<unsigned int>::const_iterator
it = planes.begin();
104 it != planes.end(); ++
it){
105 const unsigned int plane = *
it;
108 if(!badChans->
IsBad(plane,
cell)) ++nLiveChans;
111 mf::LogInfo(
"RecordNoiseSpectrumFile") <<
"There are " << nLiveChans <<
" live channels";
121 "We're not smart enough to do the normalization in other cases");
unsigned int NCell(geo::View_t view) const
Number of cells in view view.
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
unsigned int Ncells() const
Number of cells in this plane.
RecordNoiseSpectrumFile(const fhicl::ParameterSet &pset)
const PlaneGeo * Plane(unsigned int i) const
DEFINE_ART_MODULE(TestTMapFile)
Common configuration params for SimpleReadout, FPGAAlgorithms, NoiseMaker.
virtual void analyze(const art::Event &evt)
virtual void endSubRun(const art::SubRun &sr)
EDAnalyzer(Table< Config > const &config)
virtual ~RecordNoiseSpectrumFile()
art::Ptr< rb::CellHit > Cell(geo::View_t view, unsigned int viewIdx) const
Get the ith cell from view view.
int fSubrunCount
We can only handle input of precisely one subrun.
T * make(ARGS...args) const
int16_t ADC(uint32_t i) const
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
const std::set< unsigned int > & GetPlanesByView(View_t v=kXorY) const
assert(nhit_max >=nhit_nbins)
bool IsNoise() const
Is the noise flag set?
bool IsBad(int plane, int cell)
Encapsulate the geometry of one entire detector (near, far, ndos)