38 unsigned int nbadchs = 0;
40 if (wid1==wid2)
continue;
47 std::cout<<
"Done building bad channel map."<<std::endl;
51 for (
auto& spt : sps){
57 auto &hits = hitFromSp.at(spt.key());
58 for (
auto &
hit : hits){
std::map< geo::WireID, int > badchannelmap
art::Ptr< recob::SpacePoint > sp
IteratorBox< plane_id_iterator,&GeometryCore::begin_plane_id,&GeometryCore::end_plane_id > IteratePlaneIDs() const
Enables ranged-for loops on all plane IDs of the detector.
IteratorBox< wire_id_iterator,&GeometryCore::begin_wire_id,&GeometryCore::end_wire_id > IterateWireIDs() const
Enables ranged-for loops on all wire IDs of the detector.
virtual bool IsGood(raw::ChannelID_t channel) const
Returns whether the specified channel is physical and good.
Class providing information about the quality of channels.
Description of geometry of one entire detector.
constexpr auto absDiff(A const &a, B const &b)
Returns the absolute value of the difference between two values.
raw::ChannelID_t PlaneWireToChannel(WireID const &wireid) const
Returns the ID of the TPC channel connected to the specified wire.
std::vector< point_t > points
unsigned int nbadchannels
BEGIN_PROLOG could also be cout