14 #ifndef GEO_CHANNEL35MAPALG_H 15 #define GEO_CHANNEL35MAPALG_H 53 unsigned int cstat)
const override 64 unsigned int cstat)
const override 67 (
const TVector3& worldPos,
geo::PlaneID const& planeID)
const override;
73 unsigned int cstat)
const override 79 std::set<View_t>
const&
Views()
const;
80 std::set<PlaneID>
const&
PlaneIDs()
const override;
99 virtual unsigned int MaxTPCsets()
const override;
160 virtual unsigned int NROPs 165 virtual unsigned int MaxROPs()
const override;
213 virtual std::vector<geo::TPCID>
ROPtoTPCs 259 unsigned int NOpChannels(
unsigned int NOpDets)
const override;
261 unsigned int OpChannel(
unsigned int detNum,
unsigned int channel = 0)
const override;
302 template <
typename T>
315 #endif // GEO_CHANNELMAP35ALG_H virtual std::vector< geo::PlaneID > ROPtoWirePlanes(readout::ROPID const &ropid) const override
Returns a list of ID of wire planes belonging to the specified ROP.
std::vector< unsigned int > fNTPC
number of TPCs in each cryostat
unsigned int fNcryostat
number of cryostats in the detector
virtual geo::GeoObjectSorter const & Sorter() const override
Returns the object to sort geometry with.
Interface for a class providing readout channel mapping to geometry.
virtual readout::ROPID ChannelToROP(raw::ChannelID_t channel) const override
T const & AccessAPAelement(PlaneInfoMap_t< T > const &data, geo::PlaneID planeid) const
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.
unsigned int fPlanesPerAPA
Classes identifying readout-related concepts.
virtual unsigned int NROPs(readout::TPCsetID const &tpcsetid) const override
Returns the total number of ROP in the specified TPC set.
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
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.
virtual std::vector< geo::TPCID > ROPtoTPCs(readout::ROPID const &ropid) const override
Returns a list of ID of TPCs the specified ROP spans.
geo::GeoObjectSorter35 fSorter
sorts geo::XXXGeo objects
The data type to uniquely identify a Plane.
std::vector< double > fWirePitch
virtual unsigned int NTPCsets(readout::CryostatID const &cryoid) const override
Returns the total number of TPC sets in the specified cryostat.
Class identifying a set of TPC sharing readout channels.
unsigned int Nchannels() const override
Returns the total number of channels present (not necessarily contiguous)
PlaneInfoMap_t< unsigned int > fWiresPerPlane
virtual bool HasROP(readout::ROPID const &ropid) const override
T const & AccessElement(TPCInfoMap_t< T > const &map, geo::TPCID const &id) const
Returns the specified element of the TPC map.
unsigned int OpChannel(unsigned int detNum, unsigned int channel=0) const override
Returns the channel ID of the specified hardware channel.
std::set< View_t > fViews
vector of the views present in the detector
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 readout::TPCsetID TPCtoTPCset(geo::TPCID const &tpcid) const override
Returns the ID of the TPC set the specified TPC belongs to.
std::vector< double > fCosOrientation
raw::ChannelID_t fTopChannel
book keeping highest channel #
TPCInfoMap_t< std::vector< T >> PlaneInfoMap_t
Data type for per-plane information.
SigType_t SignalTypeForChannelImpl(raw::ChannelID_t const channel) const override
Return the signal type of the specified channel.
virtual bool HasTPCset(readout::TPCsetID const &tpcsetid) const override
std::vector< double > fOrientation
PlaneInfoMap_t< PlaneData_t > fPlaneData
std::set< PlaneID > const & PlaneIDs() const override
Returns a list of the plane IDs in the whole detector.
enum geo::_plane_sigtype SigType_t
Interface to algorithm class for standard sorting of geo::XXXGeo objects.
virtual unsigned int MaxTPCsets() const override
View_t View(raw::ChannelID_t const channel) const
The data type to uniquely identify a TPC.
Class identifying a set of planes sharing readout channels.
unsigned int WiresPerPlane(geo::PlaneID const &planeid) const
virtual raw::ChannelID_t FirstChannelInROP(readout::ROPID const &ropid) const override
Returns the ID of the first channel in the specified readout plane.
void Initialize(GeometryData_t const &geodata) override
Geometry initialisation.
std::vector< double > fSinOrientation
std::set< PlaneID > fPlaneIDs
vector of the PlaneIDs present in the detector
PlaneInfoMap_t< unsigned int > nAnchoredWires
ChannelMap35Alg(fhicl::ParameterSet const &p)
std::vector< WireID > ChannelToWire(raw::ChannelID_t channel) const override
all data we need for each APA
unsigned int OpDetFromOpChannel(unsigned int opChannel) const override
Returns the optical detector the specified optical channel belongs.
virtual geo::PlaneID FirstWirePlaneInROP(readout::ROPID const &ropid) const override
Returns the ID of the first plane belonging to the specified ROP.
std::set< View_t > const & Views() const
raw::ChannelID_t fChannelsPerAPA
void Uninitialize() override
Deconfiguration: prepare for a following call of Initialize()
virtual unsigned int MaxROPs() const override
virtual geo::TPCID FirstTPCinTPCset(readout::TPCsetID const &tpcsetid) const override
Data in the geometry description.
unsigned int fNchannels
number of channels in the detector
unsigned int ChannelID_t
Type representing the ID of a readout channel.
TPCID_t TPC
Index of the TPC within its cryostat.
Interface to algorithm class for a specific detector channel mapping.
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 HardwareChannelFromOpChannel(unsigned int opChannel) const override
Returns the hardware channel number of specified optical channel.
LArSoft geometry interface.
unsigned int AnchoredWires(geo::PlaneID const &planeid) const
virtual readout::ROPID WirePlaneToROP(geo::PlaneID const &planeid) const override
Returns the ID of the ROP planeid belongs to, or invalid if none.
float fWireSortingInZ
+1 if the wire ID order follow z (larger z, or smaller intercept => larger wire ID); -1 otherwise ...
unsigned int NOpChannels(unsigned int NOpDets) const override
Returns the number of optical channels contained in some detectors.
The data type to uniquely identify a cryostat.
unsigned int NOpHardwareChannels(unsigned int opDet) const override
Returns the number of channels in the specified optical detectors.