8 #ifndef GEO_CHANNELAPAMAPALG_H 9 #define GEO_CHANNELAPAMAPALG_H 15 #include "cetlib_except/exception.h" 50 unsigned int cstat)
const override 61 unsigned int cstat)
const override 64 (
const TVector3& worldPos,
geo::PlaneID const& planeID)
const override;
70 unsigned int cstat)
const override 76 std::set<View_t>
const&
Views()
const;
77 std::set<PlaneID>
const&
PlaneIDs()
const override;
96 virtual unsigned int MaxTPCsets()
const override;
157 virtual unsigned int NROPs 162 virtual unsigned int MaxROPs()
const override;
210 virtual std::vector<geo::TPCID>
ROPtoTPCs 256 unsigned int NOpChannels(
unsigned int NOpDets)
const override;
258 unsigned int OpChannel(
unsigned int detNum,
unsigned int channel = 0)
const override;
305 #endif // GEO_CHANNELMAPAPAALG_H unsigned int fNchannels
number of channels in the detector
float fWireSortingInZ
+1 if the wire ID order follow z (larger z, or smaller intercept => larger wire ID); -1 otherwise ...
std::set< View_t > fViews
vector of the views present in the detector
Interface for a class providing readout channel mapping to geometry.
std::vector< unsigned int > fWiresInPlane
std::vector< unsigned int > nAnchoredWires
virtual bool HasROP(readout::ROPID const &ropid) const override
Classes identifying readout-related concepts.
SigType_t SignalTypeForChannelImpl(raw::ChannelID_t const channel) const override
Return the signal type of the specified channel.
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
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.
std::vector< double > fSinOrientation
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.
The data type to uniquely identify a Plane.
unsigned int fPlanesPerAPA
std::set< PlaneID > fPlaneIDs
vector of the PlaneIDs present in the detector
Interface to algorithm class for standard sorting of geo::XXXGeo objects.
Class identifying a set of TPC sharing readout channels.
virtual geo::GeoObjectSorter const & Sorter() const override
Returns the object to sort geometry with.
geo::GeoObjectSorterAPA fSorter
sorts geo::XXXGeo objects
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.
std::set< View_t > const & Views() const
virtual unsigned int NTPCsets(readout::CryostatID const &cryoid) const override
Returns the total number of TPC sets in the specified cryostat.
raw::ChannelID_t fTopChannel
book keeping highest channel #
unsigned int fChannelsPerAPA
PlaneInfoMap_t< PlaneData_t > fPlaneData
std::vector< WireID > ChannelToWire(raw::ChannelID_t channel) const override
virtual raw::ChannelID_t FirstChannelInROP(readout::ROPID const &ropid) const override
Returns the ID of the first channel in the specified readout plane.
PlaneInfoMap_t< unsigned int > fWiresPerPlane
TPCInfoMap_t< std::vector< T >> PlaneInfoMap_t
Data type for per-plane information.
std::vector< unsigned int > fNTPC
number of TPCs in each cryostat
unsigned int OpChannel(unsigned int detNum, unsigned int channel=0) const override
Returns the channel ID of the specified hardware channel.
virtual unsigned int NROPs(readout::TPCsetID const &tpcsetid) const override
Returns the total number of ROP in the specified TPC set.
std::vector< double > fOrientation
virtual bool HasTPCset(readout::TPCsetID const &tpcsetid) const override
virtual unsigned int MaxROPs() const override
enum geo::_plane_sigtype SigType_t
virtual std::vector< geo::TPCID > ROPtoTPCs(readout::ROPID const &ropid) const override
Returns a list of ID of TPCs the specified ROP spans.
unsigned int NOpHardwareChannels(unsigned int opDet) const override
Returns the number of channels in the specified optical detectors.
virtual readout::ROPID ChannelToROP(raw::ChannelID_t channel) const override
std::vector< double > fWirePitch
The data type to uniquely identify a TPC.
void Uninitialize() override
Deconfiguration: prepare for a following call of Initialize()
virtual geo::PlaneID FirstWirePlaneInROP(readout::ROPID const &ropid) const override
Returns the ID of the first plane belonging to the specified ROP.
void Initialize(GeometryData_t const &geodata) override
Geometry initialisation.
Class identifying a set of planes sharing readout channels.
std::set< PlaneID > const & PlaneIDs() const override
Returns a list of the plane IDs in the whole detector.
virtual readout::TPCsetID TPCtoTPCset(geo::TPCID const &tpcid) const override
Returns the ID of the TPC set the specified TPC belongs to.
virtual readout::ROPID WirePlaneToROP(geo::PlaneID const &planeid) const override
Returns the ID of the ROP planeid belongs to, or invalid if none.
virtual unsigned int MaxTPCsets() const override
unsigned int OpDetFromOpChannel(unsigned int opChannel) const override
Returns the optical detector the specified optical channel belongs.
unsigned int fNcryostat
number of cryostats in the detector
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.
unsigned int HardwareChannelFromOpChannel(unsigned int opChannel) const override
Returns the hardware channel number of specified optical channel.
unsigned int NOpChannels(unsigned int NOpDets) const override
Returns the number of optical channels contained in some detectors.
unsigned int Nchannels() const override
Returns the total number of channels present (not necessarily contiguous)
all data we need for each APA
ChannelMapAPAAlg(fhicl::ParameterSet const &p)
unsigned int fChannelsPerOpDet
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.
virtual geo::TPCID FirstTPCinTPCset(readout::TPCsetID const &tpcsetid) const override
View_t View(raw::ChannelID_t const channel) const
The data type to uniquely identify a cryostat.
std::vector< double > fCosOrientation