18 #include "art_root_io/TFileService.h" 24 #include "DAQChannelMap/DAQChannelMap.h" 61 produces< std::vector<rawdata::RawDigit> >();
75 fDiBlocks = tfs->make<TH1F>(
"diblocks",
";DiBlock;Digits", 14, 1., 15.);
76 fPlanes = tfs->make<TH1F>(
"planes",
";Plane;Digits", 1000, 0, 1000);
85 std::unique_ptr< std::vector<rawdata::RawDigit> > resizedDetDigits(
new std::vector<rawdata::RawDigit>);
96 uint32_t diBlock(UINT_MAX);
97 uint32_t
plane(UINT_MAX);
99 for(
size_t d = 0;
d < inputDigits->size(); ++
d){
105 resizedDetDigits->push_back(inputDigits->at(
d));
111 e.
put(std::move(resizedDetDigits));
ResizeDetector(fhicl::ParameterSet const &p)
EDProducer(fhicl::ParameterSet const &pset)
DEFINE_ART_MODULE(TestTMapFile)
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
static DAQChannelMap * getInstance(int detID)
T get(std::string const &key) const
novadaq::cnv::DetId DetId() const
Prefer ds::DetectorService::DetId() instead.
uint32_t fMaxDiBlock
maximum diblock from which to use digits
void produce(art::Event &e) override
TH1F * fDiBlocks
diblocks of the digits put into the vector
TH1F * fPlanes
planes of the digits put into the vector
void reconfigure(fhicl::ParameterSet const &p)
plane_t getPlane(lchan logicalchan) const
Decode the plane number from an lchan.
dchan encodeDChan(int detID, diblock_t diblock, dcm_id_t dcm, feb_t feb, pixel_t pixel) const
virtual ~ResizeDetector()
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
static constexpr Double_t cm
diblock_t getDiBlock(dchan daqchan) const
Decode the diblock ID from a dchan.
Encapsulate the geometry of one entire detector (near, far, ndos)
std::string fRawDigitLabel
module producing raw digits