8 #ifndef GEO_CHANNELMAPCRUALG_H 9 #define GEO_CHANNELMAPCRUALG_H 43 (
double YPos,
double ZPos,
geo::PlaneID const& planeID)
const override;
47 unsigned int cstat)
const override 53 (
const TVector3& worldPos,
geo::PlaneID const& planeID)
const override;
57 unsigned int cstat)
const override 67 unsigned int cstat)
const override 72 virtual std::set<PlaneID>
const&
PlaneIDs()
const override;
89 virtual unsigned int MaxTPCsets()
const override;
133 virtual unsigned int MaxROPs()
const override;
161 virtual std::vector<geo::TPCID>
ROPtoTPCs 234 #endif // GEO_CHANNELMAPCRMDALG_H Interface for a class providing readout channel mapping to geometry.
virtual raw::ChannelID_t PlaneWireToChannel(geo::WireID const &wireID) const override
Returns the channel ID a wire is connected to.
void Initialize(GeometryData_t const &geodata) override
Geometry initialisation.
virtual geo::GeoObjectSorter const & Sorter() const override
Returns the object to sort geometry with.
PlaneInfoMap_t< unsigned int > fWiresPerPlane
TPCInfoMap_t< unsigned int > fNPlanes
Classes identifying readout-related concepts.
PlaneInfoMap_t< float > fWireCounts
ChannelMapCRUAlg(fhicl::ParameterSet const &p)
virtual unsigned int NTPCsets(readout::CryostatID const &cryoid) const override
Returns the total number of TPC sets in the specified cryostat.
virtual raw::ChannelID_t PlaneWireToChannel(unsigned int plane, unsigned int wire, unsigned int tpc, unsigned int cstat) const override
Returns the channel ID a wire is connected to.
virtual std::vector< geo::TPCID > TPCsetToTPCs(readout::TPCsetID const &tpcsetid) const override
Returns a list of ID of TPCs belonging to the specified TPC set.
virtual WireID NearestWireID(const TVector3 &worldPos, unsigned int PlaneNo, unsigned int TPCNo, unsigned int cstat) const override
Returns the ID of the wire nearest to the specified position.
The data type to uniquely identify a Plane.
virtual WireID NearestWireID(const TVector3 &worldPos, geo::PlaneID const &planeID) const override
Returns the ID of the wire nearest to the specified position.
Class identifying a set of TPC sharing readout channels.
T const & AccessElement(TPCInfoMap_t< T > const &map, geo::TPCID const &id) const
Returns the specified element of the TPC map.
virtual geo::PlaneID FirstWirePlaneInROP(readout::ROPID const &ropid) const override
Returns the ID of the first plane belonging to the specified ROP.
virtual readout::ROPID WirePlaneToROP(geo::PlaneID const &planeid) const override
Returns the ID of the ROP planeid belongs to.
std::set< PlaneID > fPlaneIDs
vector of the PlaneIDs present in the detector
raw::ChannelID_t fTopChannel
book keeping highest channel #
virtual std::vector< geo::TPCID > ROPtoTPCs(readout::ROPID const &ropid) const override
Returns a list of ID of TPCs the specified ROP spans.
std::vector< std::vector< T >> TPCInfoMap_t
Data type for per-TPC information.
TPCInfoMap_t< std::vector< T >> PlaneInfoMap_t
Data type for per-plane information.
PlaneInfoMap_t< float > fOrthVectorsZ
unsigned int fNcryostat
number of cryostats in the detector
unsigned int MaxTPCs() const
Returns the largest number of TPCs in a single cryostat.
virtual SigType_t SignalTypeForChannelImpl(raw::ChannelID_t const channel) const override
Return the signal type of the specified channel.
enum geo::_plane_sigtype SigType_t
PlaneInfoMap_t< float > fOrthVectorsY
Unit vectors orthogonal to wires in.
PlaneInfoMap_t< unsigned int > fPlaneBaselines
virtual readout::TPCsetID TPCtoTPCset(geo::TPCID const &tpcid) const override
Returns the ID of the TPC set tpcid belongs to.
PlaneInfoMap_t< float > fFirstWireProj
virtual std::set< PlaneID > const & PlaneIDs() const override
Returns a list of the plane IDs in the whole detector.
virtual unsigned int NROPs(readout::TPCsetID const &tpcsetid) const override
Returns the total number of ROP in the specified TPC set.
The data type to uniquely identify a TPC.
std::vector< WireID > ChannelToWire(raw::ChannelID_t channel) const override
Definition of data types for geometry description.
Class identifying a set of planes sharing readout channels.
std::set< View_t > fViews
vector of the views present in the detector
Interface to algorithm class for sorting VD CRUs of geo::XXXGeo objects.
virtual raw::ChannelID_t FirstChannelInROP(readout::ROPID const &ropid) const override
Returns the ID of the first channel in the specified readout plane.
unsigned int fNchannels
number of channels in the detector
virtual bool HasROP(readout::ROPID const &ropid) const override
virtual double WireCoordinate(double YPos, double ZPos, unsigned int PlaneNo, unsigned int TPCNo, unsigned int cstat) const override
Returns the index of the wire nearest to the specified position.
unsigned int Nchannels() const override
Returns the total number of channels present (not necessarily contiguous)
virtual readout::ROPID ChannelToROP(raw::ChannelID_t channel) const override
static geo::PlaneID ConvertROPtoWirePlane(readout::ROPID const &ropid)
Converts a wire plane ID into a ROP ID using the same numerical indices.
virtual std::vector< geo::PlaneID > ROPtoWirePlanes(readout::ROPID const &ropid) const override
Returns a list of ID of planes belonging to the specified ROP.
static readout::TPCsetID ConvertTPCtoTPCset(geo::TPCID const &tpcid)
Converts a TPC ID into a TPC set ID using the same numerical indices.
virtual double WireCoordinate(double YPos, double ZPos, geo::PlaneID const &planeID) const override
Returns the index of the wire nearest to the specified position.
virtual geo::TPCID FirstTPCinTPCset(readout::TPCsetID const &tpcsetid) const override
Returns the ID of the first TPC belonging to the specified TPC set.
void Uninitialize() override
Deconfiguration: prepare for a following call of Initialize()
virtual bool HasTPCset(readout::TPCsetID const &tpcsetid) const override
virtual unsigned int MaxROPs() const override
Returns the largest number of ROPs a TPC set in the detector has.
std::vector< unsigned int > fNTPC
number of TPCs in each cryostat
Data in the geometry description.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
geo::GeoObjectSorterCRU fSorter
class to sort geo objects
virtual unsigned int MaxTPCsets() const override
Returns the largest number of TPC sets any cryostat in the detector has.
Interface to algorithm class for a specific detector channel mapping.
static geo::TPCID ConvertTPCsetToTPC(readout::TPCsetID const &tpcsetid)
Converts a TPC set ID into a TPC ID using the same numerical indices.
static readout::ROPID ConvertWirePlaneToROP(geo::PlaneID const &planeid)
Converts a ROP ID into a wire plane ID using the same numerical indices.
LArSoft geometry interface.
unsigned int WireCount(geo::PlaneID const &id) const
Retrieved the wire cound for the specified plane ID.
The data type to uniquely identify a cryostat.