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