26 struct RemoveBadChannelsParams
35 Name(
"RemoveBadChans"),
36 Comment(
"Whether or not to remove hits on bad channels.")
42 Comment(
"Where to find CellHits.")
71 produces<std::vector<rb::CellHit>>();
72 produces<int, art::InRun>();
73 produces<int, art::InSubRun>();
88 std::cout << __PRETTY_FUNCTION__ <<
" writing run diblock mask " << std::hex << *mask << std::dec <<
" to run." <<
std::endl;
89 run.
put(std::move(mask));
101 std::unique_ptr<int>
mask(
new int(tmask));
102 LOG_DEBUG(
"RemoveBadChannels") << __PRETTY_FUNCTION__ <<
" writing subrun diblock mask " << std::hex << tmask << std::dec <<
" to subrun." <<
std::endl;
103 subrun.
put(std::move(mask));
114 mf::LogError(
"RemoveBadChannels") <<
"Cannot find " <<
fParams.cellHitLabel() <<
". Perhaps you want RemoveBadChannelsFilter instead?";
119 auto cellhitcol = std::make_unique<std::vector<rb::CellHit>>();
123 mf::LogError(
"RemoveBadChannels") <<
"Cannot find " <<
fParams.cellHitLabel() <<
". Bailing.";
130 cellhitcol->reserve(hitcol->size());
142 cellhitcol->push_back(
hit);
148 cellhitcol->push_back(
hit);
152 evt.
put(std::move(cellhitcol));
#define LOG_DEBUG(stream)
SubRunNumber_t subRun() const
virtual ~RemoveBadChannels()
const art::ProductToken< std::vector< rb::CellHit > > fCellHitToken
const RemoveBadChannelsParams fParams
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError
art::ProductID put(std::unique_ptr< PROD > &&)
DEFINE_ART_MODULE(TestTMapFile)
ProductID put(std::unique_ptr< PROD > &&product)
Create CellHits from RawDigits.
virtual void beginSubRun(art::SubRun &subrun)
void produce(art::Event &evt)
Perform a "2 point" Hough transform on a collection of hits.
Atom< std::string > cellHitLabel
RemoveBadChannels(const Parameters ¶ms)
A rawdata::RawDigit with channel information decoded.
virtual void beginRun(art::Run &run)
ProductID put(std::unique_ptr< PROD > &&)
This module creates CellHit object.
bool GetDiBlockMaskFromCondb() const
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< bool > removeBadChans