7 #ifndef LARCOREALG_GEOMETRY_CHANNELSTANDARDMAPALG_H 8 #define LARCOREALG_GEOMETRY_CHANNELSTANDARDMAPALG_H 18 namespace fhicl {
class ParameterSet; }
29 virtual void Uninitialize()
override;
31 virtual unsigned int Nchannels()
const override;
35 virtual unsigned int Nchannels(
readout::ROPID const& ropid)
const override;
38 virtual double WireCoordinate
39 (
double YPos,
double ZPos,
geo::PlaneID const& planeID)
const override;
43 unsigned int cstat)
const override 44 {
return WireCoordinate(YPos, ZPos,
geo::PlaneID(cstat, TPCNo, PlaneNo)); }
48 virtual WireID NearestWireID
49 (
const TVector3& worldPos,
geo::PlaneID const& planeID)
const override;
53 unsigned int cstat)
const override 54 {
return NearestWireID(worldPos,
geo::PlaneID(cstat, TPCNo, PlaneNo)); }
63 unsigned int cstat)
const override 64 {
return PlaneWireToChannel(
geo::WireID(cstat, tpc, plane, wire)); }
67 virtual std::set<PlaneID>
const& PlaneIDs()
const override;
83 virtual unsigned int NTPCsets
87 virtual unsigned int MaxTPCsets()
const override;
121 virtual std::vector<geo::TPCID> TPCsetToTPCs
148 virtual unsigned int NROPs
152 virtual unsigned int MaxROPs()
const override;
185 virtual std::vector<geo::PlaneID> ROPtoWirePlanes
201 virtual std::vector<geo::TPCID> ROPtoTPCs
262 {
return AccessElement(fWireCounts,
id); }
265 unsigned int MaxTPCs()
const;
283 #endif // LARCOREALG_GEOMETRY_CHANNELSTANDARDMAPALG_H Interface for a class providing readout channel mapping to geometry.
TPCInfoMap_t< unsigned int > fNPlanes
PlaneInfoMap_t< float > fWireCounts
Classes identifying readout-related concepts.
virtual geo::GeoObjectSorter const & Sorter() const override
Return the sorter.
The data type to uniquely identify a Plane.
Class identifying a set of TPC sharing readout channels.
PlaneInfoMap_t< float > fOrthVectorsZ
std::set< View_t > fViews
vector of the views present in the detector
Interface to algorithm class for standard sorting of geo::XXXGeo objects.
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.
unsigned int WireCount(geo::PlaneID const &id) const
Retrieved the wire cound for the specified plane ID.
enum geo::_plane_sigtype SigType_t
unsigned int fNcryostat
number of cryostats in the detector
PlaneInfoMap_t< unsigned int > fPlaneBaselines
PlaneInfoMap_t< unsigned int > fWiresPerPlane
PlaneInfoMap_t< float > fFirstWireProj
The data type to uniquely identify a TPC.
std::set< PlaneID > fPlaneIDs
vector of the PlaneIDs present in the detector
Definition of data types for geometry description.
Class identifying a set of planes sharing readout channels.
unsigned int fNchannels
number of channels in the detector
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.
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.
PlaneInfoMap_t< float > fOrthVectorsY
Unit vectors orthogonal to wires in.
geo::GeoObjectSorterStandard fSorter
class to sort geo objects
raw::ChannelID_t fTopChannel
book keeping highest channel #
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.
Data in the geometry description.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Interface to algorithm class for a specific detector channel mapping.
LArSoft geometry interface.
std::vector< unsigned int > fNTPC
number of TPCs in each cryostat
The data type to uniquely identify a cryostat.