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