15 #ifndef geo_ProtoDUNEChannelMapAlgv7_H 16 #define geo_ProtoDUNEChannelMapAlgv7_H 19 #include "cetlib_except/exception.h" 50 {
return fOpDet.count(opChannel); }
62 std::map<Index, Index>
fSSP;
Index MaxOpChannel(Index NOpDets) const override
Returns the number of optical channels contained in some detectors.
ProtoDUNEChannelMapAlgv7(const fhicl::ParameterSet &pset)
Classes identifying readout-related concepts.
Index HardwareChannelFromOpChannel(Index opChannel) const override
Returns the hardware channel number of specified optical channel.
void Uninitialize() override
Deconfiguration: prepare for a following call of Initialize()
std::map< Index, Index > fHWChannel
Interface to algorithm class for a specific detector channel mapping.
Index OpChannel(Index detNum, Index channel) const override
Returns the channel ID of the specified hardware channel.
void PrintChannelMaps() const
Interface to algorithm class for sorting geo::XXXGeo objects.
Index OpChannelFromSSP(Index ssp, Index sspch) const
std::map< Index, Index > fSSP
Index NOpHardwareChannels(Index opDet) const override
Returns the number of channels in the specified optical detectors.
bool IsValidOpChannel(Index opChannel, Index) const override
Returns whether the ID identifies a valid optical detector channel.
Index OpDetFromOpChannel(Index opChannel) const override
Returns the optical detector the specified optical channel belongs.
std::map< Index, Index > fSSPChOne
Index NOpChannels(Index NOpDets) const override
Returns the number of optical channels contained in some detectors.
Index SSPfromOpDet(Index opDet) const
Index FirstSSPChFromOpDet(Index OpDet) const
void Initialize(GeometryData_t const &geodata) override
Geometry initialisation.
Data in the geometry description.
std::map< Index, Index > fOpDet
Interface to algorithm class for a specific detector channel mapping.
LArSoft geometry interface.