176 for (
Index opDet = 0; opDet < 90; opDet++) {
187 fOpDet[opChannel] = opDet;
220 if ((opDet > 28 && opDet < 61))
235 mf::LogError(
"ProtoDUNEChannelMapAlgv8") <<
"Invalid address: SSP #" << ssp <<
", SSP channel" << sspch;
245 mf::LogWarning(
"ProtoDUNEChannelMapAlgv8") <<
"Requesting an OpDet number for an uninstrumented channel, " << opChannel;
248 return fOpDet.at(opChannel);
255 mf::LogWarning(
"ProtoDUNEChannelMapAlgv8") <<
"Requesting an OpDet number for an uninstrumented channel, " << opChannel;
269 Index ch = ( (trunc(ssp/10) - 1)*4 + ssp%10 - 1 )*12 + sspch;
281 cout <<
"---------------------------------------------------------------" <<
endl;
282 cout <<
"---------------------------------------------------------------" <<
endl;
283 cout <<
"---------------------------------------------------------------" <<
endl;
284 cout <<
"---------------------------------------------------------------" <<
endl;
285 cout <<
"---------------------------------------------------------------" <<
endl;
286 cout <<
"---------------------------------------------------------------" <<
endl;
287 cout <<
"---------------------------------------------------------------" <<
endl;
288 cout << endl <<
endl;
290 std::vector<Index> ssps = { 11, 12, 13, 14,
297 cout << endl <<
"By SSP" <<
endl;
298 for (
Index ssp : ssps) {
299 for (
Index sspch = 0; sspch < 12; sspch++) {
304 cout << endl <<
"Non-Beam side" <<
endl;
305 for (
Index opDet = 0; opDet < 45; opDet ++) {
306 cout <<
setw(2) << opDet <<
":";
314 cout << endl <<
"Beam side" <<
endl;
315 for (
Index opDet = 45; opDet < 90; opDet ++) {
316 cout <<
setw(2) << opDet <<
":";
324 cout << endl <<
"Online -> offline" <<
endl;
326 cout <<
setw(3) << opCh <<
": ";
332 cout <<
"empty channel" <<
endl;
336 cout << endl <<
endl;
337 cout <<
"---------------------------------------------------------------" <<
endl;
338 cout <<
"---------------------------------------------------------------" <<
endl;
339 cout <<
"---------------------------------------------------------------" <<
endl;
340 cout <<
"---------------------------------------------------------------" <<
endl;
341 cout <<
"---------------------------------------------------------------" <<
endl;
342 cout <<
"---------------------------------------------------------------" <<
endl;
343 cout <<
"---------------------------------------------------------------" <<
endl;
Index MaxOpChannel(Index NOpDets) const override
Returns the number of optical channels contained in some detectors.
std::map< Index, Index > fSSPChOne
std::map< Index, Index > fHWChannel
std::map< Index, Index > fOpDet
Encapsulate the construction of a single cyostat.
Index NOpChannels(Index NOpDets) const override
Returns the number of optical channels contained in some detectors.
Interface to algorithm class for a specific detector channel mapping in protoDUNE.
std::map< Index, Index > fSSP
Index NOpHardwareChannels(Index opDet) const override
Returns the number of channels in the specified optical detectors.
void PrintChannelMaps() const
Interface to algorithm class for standard sorting of geo::XXXGeo objects.
Index OpDetFromOpChannel(Index opChannel) const override
Returns the optical detector the specified optical channel belongs.
bool IsValidOpChannel(Index opChannel, Index) const override
Returns whether the ID identifies a valid optical detector channel.
const geo::GeoObjectSorter * fSorter
sorts geo::XXXGeo objects
Interface to algorithm class for a specific detector channel mapping.
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError
Index OpChannel(Index detNum, Index channel) const override
Returns the channel ID of the specified hardware channel.
ProtoDUNEChannelMapAlgv8(const fhicl::ParameterSet &pset)
Interface to algorithm class for sorting geo::XXXGeo objects.
void Initialize(GeometryData_t const &geodata) override
Geometry initialisation.
Encapsulate the geometry of an auxiliary detector.
Q_EXPORT QTSManip setw(int w)
void Uninitialize() override
Deconfiguration: prepare for a following call of Initialize()
Encapsulate the geometry of a wire.
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()
void Initialize(GeometryData_t const &geodata) override
Geometry initialisation.
Encapsulate the construction of a single detector plane.
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
Access the description of detector geometry.
Data in the geometry description.
Index OpChannelFromSSP(Index ssp, Index sspch) const
LArSoft geometry interface.
QTextStream & endl(QTextStream &s)
Encapsulate the construction of a single detector plane.