36 Name(
"RemoveBadChans"),
37 Comment(
"Whether or not to remove hits on bad channels.")
43 Comment(
"Where to find RawDigits.")
72 produces<std::vector<rb::CellHit>>();
73 produces<int, art::InRun>();
74 produces<int, art::InSubRun>();
89 std::cout << __PRETTY_FUNCTION__ <<
" writing run diblock mask " << std::hex << *mask << std::dec <<
" to run." <<
std::endl;
90 run.
put(std::move(mask));
102 std::unique_ptr<int>
mask(
new int(tmask));
103 LOG_DEBUG(
"CalHit") << __PRETTY_FUNCTION__ <<
" writing subrun diblock mask " << std::hex << tmask << std::dec <<
" to subrun." <<
std::endl;
104 subrun.
put(std::move(mask));
116 auto cellhitcol = std::make_unique<std::vector<rb::CellHit>>();
120 cellhitcol->reserve(digitcol->size());
145 evt.
put(std::move(cellhitcol));
#define LOG_DEBUG(stream)
const CalHitParams fParams
SubRunNumber_t subRun() const
const art::ProductToken< std::vector< rawdata::RawDigit > > fRawDigitToken
CalHit(const Parameters ¶ms)
Definition of connection map class.
art::ProductID put(std::unique_ptr< PROD > &&)
DEFINE_ART_MODULE(TestTMapFile)
Create CellHits from RawDigits.
rb::CellHit MakeCellHit(const rawdata::RawDigit *rawdigit)
ProductID put(std::unique_ptr< PROD > &&product)
unsigned short GetPlane(const rawdata::RawDigit *dig)
virtual void beginRun(art::Run &run)
virtual void beginSubRun(art::SubRun &subrun)
Atom< bool > removeBadChans
ProductID put(std::unique_ptr< PROD > &&)
This module creates CellHit object.
void produce(art::Event &evt)
bool GetDiBlockMaskFromCondb() const
unsigned short GetCell(const rawdata::RawDigit *dig)
int GoodDiBlockMask(int subrun=-1, bool reload=false)
bool getByToken(ProductToken< PROD > const &token, Handle< PROD > &result) const
bool IsBad(int plane, int cell)
Atom< std::string > rawDataLabel