24 #include "DAQChannelMap/DAQChannelMap.h" 60 produces< std::vector<rawdata::RawDigit> >();
74 fDiBlocks = tfs->
make<TH1F>(
"diblocks",
";DiBlock;Digits", 14, 1., 15.);
75 fPlanes = tfs->
make<TH1F>(
"planes",
";Plane;Digits", 1000, 0, 1000);
84 std::unique_ptr< std::vector<rawdata::RawDigit> > resizedDetDigits(
new std::vector<rawdata::RawDigit>);
95 uint32_t diBlock(UINT_MAX);
96 uint32_t
plane(UINT_MAX);
98 for(
size_t d = 0;
d < inputDigits->size(); ++
d){
104 resizedDetDigits->push_back(inputDigits->at(
d));
110 e.
put(std::move(resizedDetDigits));
ResizeDetector(fhicl::ParameterSet const &p)
DEFINE_ART_MODULE(TestTMapFile)
ProductID put(std::unique_ptr< PROD > &&product)
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
T * make(ARGS...args) const
TH1F * fDiBlocks
diblocks of the digits put into the vector
TH1F * fPlanes
planes of the digits put into the vector
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
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()
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