146 for (
Index opDet = 0; opDet < 60; opDet++) {
157 fOpDet[opChannel] = opDet;
189 if (opDet == 30 or opDet == 47)
204 mf::LogError(
"ProtoDUNEChannelMapAlg") <<
"Invalid address: SSP #" << ssp <<
", SSP channel" << sspch;
214 mf::LogWarning(
"ProtoDUNEChannelMapAlg") <<
"Requesting an OpDet number for an uninstrumented channel, " << opChannel;
217 return fOpDet.at(opChannel);
224 mf::LogWarning(
"ProtoDUNEChannelMapAlg") <<
"Requesting an OpDet number for an uninstrumented channel, " << opChannel;
238 Index ch = ( (trunc(ssp/10) - 1)*4 + ssp%10 - 1 )*12 + sspch;
250 cout <<
"---------------------------------------------------------------" <<
endl;
251 cout <<
"---------------------------------------------------------------" <<
endl;
252 cout <<
"---------------------------------------------------------------" <<
endl;
253 cout <<
"---------------------------------------------------------------" <<
endl;
254 cout <<
"---------------------------------------------------------------" <<
endl;
255 cout <<
"---------------------------------------------------------------" <<
endl;
256 cout <<
"---------------------------------------------------------------" <<
endl;
257 cout << endl <<
endl;
259 std::vector<Index> ssps = { 11, 12, 13, 14,
266 cout << endl <<
"By SSP" <<
endl;
267 for (
Index ssp : ssps) {
268 for (
Index sspch = 0; sspch < 12; sspch++) {
273 cout << endl <<
"Beam side" <<
endl;
274 for (
Index opDet = 1; opDet < 60; opDet += 2) {
275 cout <<
setw(2) << opDet <<
":";
283 cout << endl <<
"Non-Beam side" <<
endl;
284 for (
Index opDet = 0; opDet < 60; opDet += 2) {
285 cout <<
setw(2) << opDet <<
":";
293 cout << endl <<
"Online -> offline" <<
endl;
295 cout <<
setw(3) << opCh <<
": ";
301 cout <<
"empty channel" <<
endl;
305 cout << endl <<
endl;
306 cout <<
"---------------------------------------------------------------" <<
endl;
307 cout <<
"---------------------------------------------------------------" <<
endl;
308 cout <<
"---------------------------------------------------------------" <<
endl;
309 cout <<
"---------------------------------------------------------------" <<
endl;
310 cout <<
"---------------------------------------------------------------" <<
endl;
311 cout <<
"---------------------------------------------------------------" <<
endl;
312 cout <<
"---------------------------------------------------------------" <<
endl;
bool IsValidOpChannel(Index opChannel, Index) const override
Returns whether the ID identifies a valid optical detector channel.
Encapsulate the construction of a single cyostat.
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 NOpHardwareChannels(Index opDet) const override
Returns the number of channels in the specified optical detectors.
Interface to algorithm class for standard sorting of geo::XXXGeo objects.
const geo::GeoObjectSorter * fSorter
sorts geo::XXXGeo objects
Interface to algorithm class for a specific detector channel mapping.
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError
Interface to algorithm class for sorting geo::XXXGeo objects.
Index HardwareChannelFromOpChannel(Index opChannel) const override
Returns the hardware channel number of specified optical channel.
void Initialize(GeometryData_t const &geodata) override
Geometry initialisation.
Encapsulate the geometry of an auxiliary detector.
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.
Q_EXPORT QTSManip setw(int w)
Encapsulate the geometry of a wire.
void Uninitialize() override
Deconfiguration: prepare for a following call of Initialize()
Encapsulate the construction of a single detector plane.
ProtoDUNEChannelMapAlg(const fhicl::ParameterSet &pset)
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
Access the description of detector geometry.
void Uninitialize() override
Deconfiguration: prepare for a following call of Initialize()
Data in the geometry description.
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.
Interface to algorithm class for a specific detector channel mapping in protoDUNE.
QTextStream & endl(QTextStream &s)
Encapsulate the construction of a single detector plane.