20 #include "DAQChannelMap/DAQChannelMap.h" 23 class RemoveOneDSlices;
61 produces<std::vector<HitList>>(
"TwoDSlices");
71 LOG_DEBUG(
"RemoveOneDSlices") <<
"=== novaddt::RemoveOneDSlices filter. Event: " 77 LOG_DEBUG(
"RemoveOneDSlices") <<
"\t got " << hit_lists->size() <<
" hit lists" <<
std::endl;
80 std::unique_ptr< std::vector<HitList> >final_product(
new std::vector<HitList>);
82 for(
unsigned int i=0;
i<hit_lists->size(); ++
i){
85 LOG_DEBUG(
"RemoveOneDSlices") <<
"\t hit list[" <<
i <<
"]: " << product.size() <<
" hits" <<
std::endl;
98 LOG_DEBUG(
"RemoveOneDSlices") <<
"\t produced " << final_product->size() <<
" hit lists" <<
std::endl;
100 event.put(std::move(final_product),
"TwoDSlices");
109 for (
unsigned int i_hit = 0; i_hit < hits.size(); ++i_hit){
119 LOG_DEBUG(
"RemoveOneDSlices") <<
"\t\t - end of loop, current slice x hits: " 120 << x_hits <<
", y hits: " 127 LOG_DEBUG(
"RemoveOneDSlices") <<
"\t\t - Hit list: " << hits.size()
132 for(
unsigned int j = 0;
j < hits.size(); ++
j){
138 LOG_DEBUG(
"RemoveOneDSlices") <<
"\t\t\thit[" << j
139 <<
"]: TDC: " << hit.
TDC().
val 140 <<
", ADC: " << hit.
ADC().
val #define LOG_DEBUG(stream)
novaddt::Plane const & Plane() const
novaddt::TDC const & TDC() const
std::vector< DAQHit > HitList
DEFINE_ART_MODULE(TestTMapFile)
virtual ~RemoveOneDSlices()
novaddt::ADC const & ADC() const
RemoveOneDSlices(fhicl::ParameterSet const &p)
novaddt::View const & View() const
Identifier for the X measuring view of the detector (top)
virtual bool filter(art::Event &event)
T product(std::vector< T > dims)
novaddt::Cell const & Cell() const
std::string fInputInstance
void countHitsPerViewOutlyingCells(HitList &hits, uint &x_hits, uint &y_hits)
void printDDTSlice(HitList &hits)