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