DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::detchannelmaps::PdspChannelMapService Class Reference

#include <PdspChannelMapService.hpp>

Public Types

enum  _FelixOrRCE { kRCE , kFELIX }
 
typedef enum dunedaq::detchannelmaps::PdspChannelMapService::_FelixOrRCE FelixOrRCE
 

Public Member Functions

 PdspChannelMapService (std::string, std::string)
 
unsigned int GetOfflineNumberFromDetectorElements (unsigned int crate, unsigned int slot, unsigned int fiber, unsigned int fembchannel, FelixOrRCE frswitch)
 
unsigned int APAFromOfflineChannel (unsigned int offlineChannel) const
 Returns APA/crate.
 
unsigned int InstalledAPAFromOfflineChannel (unsigned int offlineChannel) const
 Returns APA/crate in installation notation.
 
unsigned int WIBFromOfflineChannel (unsigned int offlineChannel) const
 Returns WIB/slot.
 
unsigned int FEMBFromOfflineChannel (unsigned int offlineChannel) const
 Returns FEMB/fiber.
 
unsigned int FEMBChannelFromOfflineChannel (unsigned int offlineChannel) const
 Returns FEMB channel.
 
unsigned int StreamChannelFromOfflineChannel (unsigned int offlineChannel, FelixOrRCE frswitch) const
 Returns RCE(FELIX) stream(frame) channel.
 
unsigned int SlotIdFromOfflineChannel (unsigned int offlineChannel) const
 Returns global slot ID.
 
unsigned int FiberIdFromOfflineChannel (unsigned int offlineChannel) const
 Returns global fiber ID.
 
unsigned int ChipFromOfflineChannel (unsigned int offlineChannel) const
 Returns chip number.
 
unsigned int ChipChannelFromOfflineChannel (unsigned int offlineChannel) const
 Returns chip channel number.
 
unsigned int ASICFromOfflineChannel (unsigned int offlineChannel)
 Returns ASIC number – to be deprecated.
 
unsigned int ASICChannelFromOfflineChannel (unsigned int offlineChannel)
 Returns ASIC channel number – to be deprecated.
 
unsigned int AsicFromOfflineChannel (unsigned int offlineChannel) const
 
unsigned int AsicChannelFromOfflineChannel (unsigned int offlineChannel) const
 
unsigned int AsicLinkFromOfflineChannel (unsigned int offlineChannel) const
 
unsigned int PlaneFromOfflineChannel (unsigned int offlineChannel) const
 Returns plane.
 
unsigned int SSPOfflineChannelFromOnlineChannel (unsigned int onlineChannel)
 
unsigned int SSPOnlineChannelFromOfflineChannel (unsigned int offlineChannel) const
 
unsigned int SSPAPAFromOfflineChannel (unsigned int offlineChannel) const
 
unsigned int SSPWithinAPAFromOfflineChannel (unsigned int offlineChannel) const
 
unsigned int SSPGlobalFromOfflineChannel (unsigned int offlineChannel) const
 
unsigned int SSPChanWithinSSPFromOfflineChannel (unsigned int offlineChannel) const
 
unsigned int OpDetNoFromOfflineChannel (unsigned int offlineChannel) const
 

Private Member Functions

size_t count_bits (size_t i)
 
void check_offline_channel (unsigned int offlineChannel) const
 
void SSP_check_offline_channel (unsigned int offlineChannel) const
 

Private Attributes

const size_t fNChans = 15360
 
const size_t fNCrates = 6
 
const size_t fNSlots = 5
 
const size_t fNFibers = 4
 
const size_t fNFEMBChans = 128
 
const size_t fNSSPChans = 288
 
const size_t fNChansPerSSP = 12
 
const size_t fNAPAs = 6
 
size_t fBadCrateNumberWarningsIssued
 
size_t fBadSlotNumberWarningsIssued
 
size_t fBadFiberNumberWarningsIssued
 
size_t fSSPBadChannelNumberWarningsIssued
 
size_t fASICWarningsIssued
 
size_t fASICChanWarningsIssued
 
unsigned int farrayCsfcToOffline [6][5][4][128]
 
unsigned int fvAPAMap [15360]
 
unsigned int fvWIBMap [15360]
 
unsigned int fvFEMBMap [15360]
 
unsigned int fvFEMBChannelMap [15360]
 
unsigned int fvStreamChannelMap [15360]
 
unsigned int fvSlotIdMap [15360]
 
unsigned int fvFiberIdMap [15360]
 
unsigned int fvChipMap [15360]
 
unsigned int fvChipChannelMap [15360]
 
unsigned int fvASICMap [15360]
 
unsigned int fvASICChannelMap [15360]
 
unsigned int fvPlaneMap [15360]
 
unsigned int fFELIXarrayCsfcToOffline [6][5][4][128]
 
unsigned int fFELIXvAPAMap [15360]
 
unsigned int fFELIXvWIBMap [15360]
 
unsigned int fFELIXvFEMBMap [15360]
 
unsigned int fFELIXvFEMBChannelMap [15360]
 
unsigned int fFELIXvStreamChannelMap [15360]
 
unsigned int fFELIXvSlotIdMap [15360]
 
unsigned int fFELIXvFiberIdMap [15360]
 
unsigned int fFELIXvChipMap [15360]
 
unsigned int fFELIXvChipChannelMap [15360]
 
unsigned int fFELIXvASICMap [15360]
 
unsigned int fFELIXvASICChannelMap [15360]
 
unsigned int fFELIXvPlaneMap [15360]
 
unsigned int fvInstalledAPA [6]
 
unsigned int fvTPCSet_VsInstalledAPA [6]
 
unsigned int farraySSPOnlineToOffline [288]
 
unsigned int farraySSPOfflineToOnline [288]
 
unsigned int fvSSPAPAMap [288]
 
unsigned int fvSSPWithinAPAMap [288]
 
unsigned int fvSSPGlobalMap [288]
 
unsigned int fvSSPChanWithinSSPMap [288]
 
unsigned int fvOpDetNoMap [288]
 

Detailed Description

Definition at line 32 of file PdspChannelMapService.hpp.

Member Typedef Documentation

◆ FelixOrRCE

Member Enumeration Documentation

◆ _FelixOrRCE

Constructor & Destructor Documentation

◆ PdspChannelMapService()

dunedaq::detchannelmaps::PdspChannelMapService::PdspChannelMapService ( std::string rcename,
std::string felixname )

Definition at line 38 of file PdspChannelMapService.cpp.

39{
40
47
48 std::ifstream inFile(rcename, std::ios::in);
49 if (inFile.bad() || inFile.fail() || !inFile.is_open()) {
50 throw std::runtime_error(std::string("Bad file ") + std::string(rcename));
51 }
52 std::string line;
53
54 while (std::getline(inFile, line)) {
55 unsigned int crateNo, slotNo, fiberNo, FEMBChannel, StreamChannel, slotID, fiberID, chipNo, chipChannel, asicNo,
56 asicChannel, planeType, offlineChannel;
57 std::stringstream linestream(line);
58 linestream >> crateNo >> slotNo >> fiberNo >> FEMBChannel >> StreamChannel >> slotID >> fiberID >> chipNo >>
59 chipChannel >> asicNo >> asicChannel >> planeType >> offlineChannel;
60
61 // fill lookup tables. Throw an exception if any number is out of expected bounds.
62 // checking for negative values produces compiler warnings as these are unsigned ints
63
64 if (offlineChannel >= fNChans) {
65 throw std::logic_error("Ununderstood Offline Channel");
66 }
67 if (crateNo >= fNCrates) {
68 throw std::logic_error("Ununderstood Crate Number");
69 }
70 if (slotNo >= fNSlots) {
71 throw std::logic_error("Ununderstood Slot Number");
72 }
73 if (fiberNo >= fNFibers) {
74 throw std::logic_error("Ununderstood Fiber Number");
75 }
76 if (StreamChannel >= fNFEMBChans) {
77 throw std::logic_error("Ununderstood FEMB (Stream) Channel Number");
78 }
79
80 farrayCsfcToOffline[crateNo][slotNo][fiberNo][StreamChannel] = offlineChannel;
81 fvAPAMap[offlineChannel] = crateNo;
82 fvWIBMap[offlineChannel] = slotNo;
83 fvFEMBMap[offlineChannel] = fiberNo;
84 fvFEMBChannelMap[offlineChannel] = FEMBChannel;
85 fvStreamChannelMap[offlineChannel] = StreamChannel;
86 fvSlotIdMap[offlineChannel] = slotID;
87 fvFiberIdMap[offlineChannel] = fiberID;
88 fvChipMap[offlineChannel] = chipNo;
89 fvChipChannelMap[offlineChannel] = chipChannel;
90 fvASICMap[offlineChannel] = asicNo;
91 fvASICChannelMap[offlineChannel] = asicChannel;
92 fvPlaneMap[offlineChannel] = planeType;
93 }
94 inFile.close();
95
96 std::ifstream FELIXinFile(felixname, std::ios::in);
97 if (FELIXinFile.bad() || FELIXinFile.fail() || !FELIXinFile.is_open()) {
98 throw std::runtime_error(std::string("Bad file ") + std::string(felixname));
99 }
100
101 while (std::getline(FELIXinFile, line)) {
102 unsigned int crateNo, slotNo, fiberNo, FEMBChannel, StreamChannel, slotID, fiberID, chipNo, chipChannel, asicNo,
103 asicChannel, planeType, offlineChannel;
104 std::stringstream linestream(line);
105 linestream >> crateNo >> slotNo >> fiberNo >> FEMBChannel >> StreamChannel >> slotID >> fiberID >> chipNo >>
106 chipChannel >> asicNo >> asicChannel >> planeType >> offlineChannel;
107
108 // fill lookup tables. Throw an exception if any number is out of expected bounds.
109 // checking for negative values produces compiler warnings as these are unsigned ints
110
111 if (offlineChannel >= fNChans) {
112 throw std::logic_error("Ununderstood Offline Channel");
113 }
114 if (crateNo >= fNCrates) {
115 throw std::logic_error("Ununderstood Crate Number");
116 }
117 if (slotNo >= fNSlots) {
118 throw std::logic_error("Ununderstood Slot Number");
119 }
120 if (fiberNo >= fNFibers) {
121 throw std::logic_error("Ununderstood Fiber Number");
122 }
123 if (StreamChannel >= fNFEMBChans) {
124 throw std::logic_error("Ununderstood FEMB (Stream) Channel Number");
125 }
126
127 fFELIXarrayCsfcToOffline[crateNo][slotNo][fiberNo][StreamChannel] = offlineChannel;
128 fFELIXvAPAMap[offlineChannel] = crateNo;
129 fFELIXvWIBMap[offlineChannel] = slotNo;
130 fFELIXvFEMBMap[offlineChannel] = fiberNo;
131 fFELIXvFEMBChannelMap[offlineChannel] = FEMBChannel;
132 fFELIXvStreamChannelMap[offlineChannel] = StreamChannel;
133 fFELIXvSlotIdMap[offlineChannel] = slotID;
134 fFELIXvFiberIdMap[offlineChannel] = fiberID;
135 fFELIXvChipMap[offlineChannel] = chipNo;
136 fFELIXvChipChannelMap[offlineChannel] = chipChannel;
137 fFELIXvASICMap[offlineChannel] = asicNo;
138 fFELIXvASICChannelMap[offlineChannel] = asicChannel;
139 fFELIXvPlaneMap[offlineChannel] = planeType;
140 }
141 inFile.close();
142
143 // APA numbering -- hardcoded here.
144 // Installation numbering:
145 // APA5 APA6 APA4
146 // beam -->
147 // APA3 APA2 APA1
148 //
149 // The Offline numbering:
150 // APA1 APA3 APA5
151 // beam -->
152 // APA0 APA2 APA4
153 //
154 fvInstalledAPA[0] = 3;
155 fvInstalledAPA[1] = 5;
156 fvInstalledAPA[2] = 2;
157 fvInstalledAPA[3] = 6;
158 fvInstalledAPA[4] = 1;
159 fvInstalledAPA[5] = 4;
160
161 // and the inverse map -- shifted by 1 -- the above list must start counting at 1.
162
163 for (size_t i = 0; i < 6; ++i) {
165 }
166
167} // NOLINT(readability/fn_size)

Member Function Documentation

◆ APAFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::APAFromOfflineChannel ( unsigned int offlineChannel) const

Returns APA/crate.

Definition at line 232 of file PdspChannelMapService.cpp.

233{
234 check_offline_channel(offlineChannel);
235 return fvAPAMap[offlineChannel];
236 // return fFELIXvAPAMap[offlineChannel]; // -- FELIX one -- should be the same
237}
void check_offline_channel(unsigned int offlineChannel) const

◆ ASICChannelFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::ASICChannelFromOfflineChannel ( unsigned int offlineChannel)

Returns ASIC channel number – to be deprecated.

Definition at line 368 of file PdspChannelMapService.cpp.

369{
371 TLOG() << "PdspChannelMapService: Deprecated call to ASICChannelFromOfflineChannel. "
372 << "Not a meaningful number -- channels are grouped by 16's not 8's";
373 }
375 check_offline_channel(offlineChannel);
376 return fvASICChannelMap[offlineChannel];
377}
#define TLOG(...)
Definition macro.hpp:22

◆ AsicChannelFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::AsicChannelFromOfflineChannel ( unsigned int offlineChannel) const

Definition at line 340 of file PdspChannelMapService.cpp.

341{
342 check_offline_channel(offlineChannel);
343 return fvChipChannelMap[offlineChannel];
344}

◆ ASICFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::ASICFromOfflineChannel ( unsigned int offlineChannel)

Returns ASIC number – to be deprecated.

Definition at line 349 of file PdspChannelMapService.cpp.

350{
352 TLOG() << "PdspChannelMapService: Deprecated call to ASICFromOfflineChannel. "
353 << "Use AsicLinkFromOfflineChannel";
354 }
356 check_offline_channel(offlineChannel);
357 return fvASICMap[offlineChannel];
358}

◆ AsicFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::AsicFromOfflineChannel ( unsigned int offlineChannel) const

Definition at line 324 of file PdspChannelMapService.cpp.

325{
326 check_offline_channel(offlineChannel);
327 return fvChipMap[offlineChannel];
328}

◆ AsicLinkFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::AsicLinkFromOfflineChannel ( unsigned int offlineChannel) const

Definition at line 361 of file PdspChannelMapService.cpp.

362{
363 check_offline_channel(offlineChannel);
364 return fvASICMap[offlineChannel];
365}

◆ check_offline_channel()

void dunedaq::detchannelmaps::PdspChannelMapService::check_offline_channel ( unsigned int offlineChannel) const
inlineprivate

Definition at line 200 of file PdspChannelMapService.hpp.

201 {
202 if (offlineChannel >= fNChans) {
203 throw std::logic_error("Offline TPC Channel Number out of range");
204 }
205 };

◆ ChipChannelFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::ChipChannelFromOfflineChannel ( unsigned int offlineChannel) const

Returns chip channel number.

Definition at line 331 of file PdspChannelMapService.cpp.

332{
333 check_offline_channel(offlineChannel);
334 return fvChipChannelMap[offlineChannel];
335}

◆ ChipFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::ChipFromOfflineChannel ( unsigned int offlineChannel) const

Returns chip number.

Definition at line 317 of file PdspChannelMapService.cpp.

318{
319 check_offline_channel(offlineChannel);
320 return fvChipMap[offlineChannel];
321}

◆ count_bits()

size_t dunedaq::detchannelmaps::PdspChannelMapService::count_bits ( size_t i)
private

Definition at line 387 of file PdspChannelMapService.cpp.

388{
389 size_t result = 0;
390 size_t s = sizeof(size_t) * 8;
391 for (size_t j = 0; j < s; ++j) {
392 if (i & 1)
393 ++result;
394 i >>= 1;
395 }
396 return result;
397}

◆ FEMBChannelFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::FEMBChannelFromOfflineChannel ( unsigned int offlineChannel) const

Returns FEMB channel.

Definition at line 273 of file PdspChannelMapService.cpp.

274{
275 check_offline_channel(offlineChannel);
276 return fvFEMBChannelMap[offlineChannel];
277 // return fFELIXvFEMBChannelMap[offlineChannel]; // -- FELIX one -- should be the same
278}

◆ FEMBFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::FEMBFromOfflineChannel ( unsigned int offlineChannel) const

Returns FEMB/fiber.

Definition at line 263 of file PdspChannelMapService.cpp.

264{
265 check_offline_channel(offlineChannel);
266 return fvFEMBMap[offlineChannel] + 1;
267 // return fFELIXvFEMBMap[offlineChannel];
268}

◆ FiberIdFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::FiberIdFromOfflineChannel ( unsigned int offlineChannel) const

Returns global fiber ID.

Definition at line 308 of file PdspChannelMapService.cpp.

309{
310 check_offline_channel(offlineChannel);
311 return fvFiberIdMap[offlineChannel];
312}

◆ GetOfflineNumberFromDetectorElements()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::GetOfflineNumberFromDetectorElements ( unsigned int crate,
unsigned int slot,
unsigned int fiber,
unsigned int fembchannel,
FelixOrRCE frswitch )

Definition at line 175 of file PdspChannelMapService.cpp.

180{
181
182 unsigned int offlineChannel = 0;
183 unsigned int lcrate = crate;
184 unsigned int lslot = slot;
185 unsigned int lfiber = fiber;
186
187 if (crate > fNCrates || crate == 0) {
189 TLOG() << "PdspChannelMapService: Bad Crate Number, expecting a number between 1 and 6. "
190 << "Falling back to 1. Ununderstood crate number=" << crate;
191 }
193 lcrate = 1;
194 }
195
196 if (slot >= fNSlots) {
198 TLOG() << "PdspChannelMapService: Bad slot number, using slot number zero as a fallback. "
199 << "Ununderstood slot number: " << slot;
200 }
202 lslot = 0;
203 }
204
205 if (fiber > fNFibers || fiber == 0) {
207 TLOG() << "PdspChannelMapService: Bad fiber number, falling back to 1. "
208 << "Ununderstood fiber number: " << fiber;
209 }
211 lfiber = 1;
212 }
213
214 if (streamchannel >= fNFEMBChans) {
215 TLOG() << streamchannel << " >= " << fNFEMBChans;
216 throw std::logic_error("Ununderstood Stream (FEMB) chan");
217 }
218
219 if (frswitch == kRCE) {
220 offlineChannel = farrayCsfcToOffline[fvTPCSet_VsInstalledAPA[lcrate - 1]][lslot][lfiber - 1][streamchannel];
221 } else {
222 offlineChannel = fFELIXarrayCsfcToOffline[fvTPCSet_VsInstalledAPA[lcrate - 1]][lslot][lfiber - 1][streamchannel];
223 }
224
225 return offlineChannel;
226}

◆ InstalledAPAFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::InstalledAPAFromOfflineChannel ( unsigned int offlineChannel) const

Returns APA/crate in installation notation.

Definition at line 240 of file PdspChannelMapService.cpp.

241{
242 check_offline_channel(offlineChannel);
243 unsigned int offlineAPA = fvAPAMap[offlineChannel];
244 if (offlineAPA > 5) {
245 throw std::logic_error("Offline APA Number out of range");
246 }
247 return fvInstalledAPA[fvAPAMap[offlineChannel]];
248}

◆ OpDetNoFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::OpDetNoFromOfflineChannel ( unsigned int offlineChannel) const

Definition at line 450 of file PdspChannelMapService.cpp.

451{
452 SSP_check_offline_channel(offlineChannel);
453 return fvOpDetNoMap[offlineChannel];
454}
void SSP_check_offline_channel(unsigned int offlineChannel) const

◆ PlaneFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::PlaneFromOfflineChannel ( unsigned int offlineChannel) const

Returns plane.

Definition at line 380 of file PdspChannelMapService.cpp.

381{
382 check_offline_channel(offlineChannel);
383 return fvPlaneMap[offlineChannel];
384}

◆ SlotIdFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::SlotIdFromOfflineChannel ( unsigned int offlineChannel) const

Returns global slot ID.

Definition at line 296 of file PdspChannelMapService.cpp.

297{
298 check_offline_channel(offlineChannel);
299 return fvSlotIdMap[offlineChannel];
300 // return fFELIXvSlotIdMap[offlineChannel]; // -- FELIX one -- should be the same
301}

◆ SSP_check_offline_channel()

void dunedaq::detchannelmaps::PdspChannelMapService::SSP_check_offline_channel ( unsigned int offlineChannel) const
inlineprivate

Definition at line 207 of file PdspChannelMapService.hpp.

208 {
209 if (offlineChannel >= fNSSPChans) {
210 throw std::logic_error("Offline SSP Channel Number out of range");
211 }
212 };

◆ SSPAPAFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::SSPAPAFromOfflineChannel ( unsigned int offlineChannel) const

Definition at line 422 of file PdspChannelMapService.cpp.

423{
424 SSP_check_offline_channel(offlineChannel);
425 return fvSSPAPAMap[offlineChannel];
426}

◆ SSPChanWithinSSPFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::SSPChanWithinSSPFromOfflineChannel ( unsigned int offlineChannel) const

Definition at line 443 of file PdspChannelMapService.cpp.

444{
445 SSP_check_offline_channel(offlineChannel);
446 return fvSSPChanWithinSSPMap[offlineChannel];
447}

◆ SSPGlobalFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::SSPGlobalFromOfflineChannel ( unsigned int offlineChannel) const

Definition at line 436 of file PdspChannelMapService.cpp.

437{
438 SSP_check_offline_channel(offlineChannel);
439 return fvSSPGlobalMap[offlineChannel];
440}

◆ SSPOfflineChannelFromOnlineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::SSPOfflineChannelFromOnlineChannel ( unsigned int onlineChannel)

Definition at line 400 of file PdspChannelMapService.cpp.

401{
402 unsigned int lchannel = onlineChannel;
403
404 if (onlineChannel > fNSSPChans) {
406 TLOG() << "PdspChannelMapService: Online Channel Number too high, using zero as a fallback: " << onlineChannel;
407 }
409 lchannel = 0;
410 }
411 return farraySSPOnlineToOffline[lchannel];
412}

◆ SSPOnlineChannelFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::SSPOnlineChannelFromOfflineChannel ( unsigned int offlineChannel) const

Definition at line 415 of file PdspChannelMapService.cpp.

416{
417 SSP_check_offline_channel(offlineChannel);
418 return farraySSPOfflineToOnline[offlineChannel];
419}

◆ SSPWithinAPAFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::SSPWithinAPAFromOfflineChannel ( unsigned int offlineChannel) const

Definition at line 429 of file PdspChannelMapService.cpp.

430{
431 SSP_check_offline_channel(offlineChannel);
432 return fvSSPWithinAPAMap[offlineChannel];
433}

◆ StreamChannelFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::StreamChannelFromOfflineChannel ( unsigned int offlineChannel,
FelixOrRCE frswitch ) const

Returns RCE(FELIX) stream(frame) channel.

Definition at line 283 of file PdspChannelMapService.cpp.

284{
285 check_offline_channel(offlineChannel);
286 if (frswitch == kRCE) {
287 return fvStreamChannelMap[offlineChannel];
288 } else {
289 return fFELIXvStreamChannelMap[offlineChannel];
290 }
291}

◆ WIBFromOfflineChannel()

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::WIBFromOfflineChannel ( unsigned int offlineChannel) const

Returns WIB/slot.

Definition at line 253 of file PdspChannelMapService.cpp.

254{
255 check_offline_channel(offlineChannel);
256 return fvWIBMap[offlineChannel];
257 // return fFELIXvWIBMap[offlineChannel]; // -- FELIX one -- should be the same
258}

Member Data Documentation

◆ farrayCsfcToOffline

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::farrayCsfcToOffline[6][5][4][128]
private

Definition at line 151 of file PdspChannelMapService.hpp.

◆ farraySSPOfflineToOnline

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::farraySSPOfflineToOnline[288]
private

Definition at line 189 of file PdspChannelMapService.hpp.

◆ farraySSPOnlineToOffline

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::farraySSPOnlineToOffline[288]
private

Definition at line 188 of file PdspChannelMapService.hpp.

◆ fASICChanWarningsIssued

size_t dunedaq::detchannelmaps::PdspChannelMapService::fASICChanWarningsIssued
private

Definition at line 148 of file PdspChannelMapService.hpp.

◆ fASICWarningsIssued

size_t dunedaq::detchannelmaps::PdspChannelMapService::fASICWarningsIssued
private

Definition at line 147 of file PdspChannelMapService.hpp.

◆ fBadCrateNumberWarningsIssued

size_t dunedaq::detchannelmaps::PdspChannelMapService::fBadCrateNumberWarningsIssued
private

Definition at line 142 of file PdspChannelMapService.hpp.

◆ fBadFiberNumberWarningsIssued

size_t dunedaq::detchannelmaps::PdspChannelMapService::fBadFiberNumberWarningsIssued
private

Definition at line 144 of file PdspChannelMapService.hpp.

◆ fBadSlotNumberWarningsIssued

size_t dunedaq::detchannelmaps::PdspChannelMapService::fBadSlotNumberWarningsIssued
private

Definition at line 143 of file PdspChannelMapService.hpp.

◆ fFELIXarrayCsfcToOffline

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fFELIXarrayCsfcToOffline[6][5][4][128]
private

Definition at line 168 of file PdspChannelMapService.hpp.

◆ fFELIXvAPAMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fFELIXvAPAMap[15360]
private

Definition at line 169 of file PdspChannelMapService.hpp.

◆ fFELIXvASICChannelMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fFELIXvASICChannelMap[15360]
private

Definition at line 179 of file PdspChannelMapService.hpp.

◆ fFELIXvASICMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fFELIXvASICMap[15360]
private

Definition at line 178 of file PdspChannelMapService.hpp.

◆ fFELIXvChipChannelMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fFELIXvChipChannelMap[15360]
private

Definition at line 177 of file PdspChannelMapService.hpp.

◆ fFELIXvChipMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fFELIXvChipMap[15360]
private

Definition at line 176 of file PdspChannelMapService.hpp.

◆ fFELIXvFEMBChannelMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fFELIXvFEMBChannelMap[15360]
private

Definition at line 172 of file PdspChannelMapService.hpp.

◆ fFELIXvFEMBMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fFELIXvFEMBMap[15360]
private

Definition at line 171 of file PdspChannelMapService.hpp.

◆ fFELIXvFiberIdMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fFELIXvFiberIdMap[15360]
private

Definition at line 175 of file PdspChannelMapService.hpp.

◆ fFELIXvPlaneMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fFELIXvPlaneMap[15360]
private

Definition at line 180 of file PdspChannelMapService.hpp.

◆ fFELIXvSlotIdMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fFELIXvSlotIdMap[15360]
private

Definition at line 174 of file PdspChannelMapService.hpp.

◆ fFELIXvStreamChannelMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fFELIXvStreamChannelMap[15360]
private

Definition at line 173 of file PdspChannelMapService.hpp.

◆ fFELIXvWIBMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fFELIXvWIBMap[15360]
private

Definition at line 170 of file PdspChannelMapService.hpp.

◆ fNAPAs

const size_t dunedaq::detchannelmaps::PdspChannelMapService::fNAPAs = 6
private

Definition at line 138 of file PdspChannelMapService.hpp.

◆ fNChans

const size_t dunedaq::detchannelmaps::PdspChannelMapService::fNChans = 15360
private

Definition at line 126 of file PdspChannelMapService.hpp.

◆ fNChansPerSSP

const size_t dunedaq::detchannelmaps::PdspChannelMapService::fNChansPerSSP = 12
private

Definition at line 137 of file PdspChannelMapService.hpp.

◆ fNCrates

const size_t dunedaq::detchannelmaps::PdspChannelMapService::fNCrates = 6
private

Definition at line 127 of file PdspChannelMapService.hpp.

◆ fNFEMBChans

const size_t dunedaq::detchannelmaps::PdspChannelMapService::fNFEMBChans = 128
private

Definition at line 130 of file PdspChannelMapService.hpp.

◆ fNFibers

const size_t dunedaq::detchannelmaps::PdspChannelMapService::fNFibers = 4
private

Definition at line 129 of file PdspChannelMapService.hpp.

◆ fNSlots

const size_t dunedaq::detchannelmaps::PdspChannelMapService::fNSlots = 5
private

Definition at line 128 of file PdspChannelMapService.hpp.

◆ fNSSPChans

const size_t dunedaq::detchannelmaps::PdspChannelMapService::fNSSPChans = 288
private

Definition at line 134 of file PdspChannelMapService.hpp.

◆ fSSPBadChannelNumberWarningsIssued

size_t dunedaq::detchannelmaps::PdspChannelMapService::fSSPBadChannelNumberWarningsIssued
private

Definition at line 145 of file PdspChannelMapService.hpp.

◆ fvAPAMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvAPAMap[15360]
private

Definition at line 155 of file PdspChannelMapService.hpp.

◆ fvASICChannelMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvASICChannelMap[15360]
private

Definition at line 165 of file PdspChannelMapService.hpp.

◆ fvASICMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvASICMap[15360]
private

Definition at line 164 of file PdspChannelMapService.hpp.

◆ fvChipChannelMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvChipChannelMap[15360]
private

Definition at line 163 of file PdspChannelMapService.hpp.

◆ fvChipMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvChipMap[15360]
private

Definition at line 162 of file PdspChannelMapService.hpp.

◆ fvFEMBChannelMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvFEMBChannelMap[15360]
private

Definition at line 158 of file PdspChannelMapService.hpp.

◆ fvFEMBMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvFEMBMap[15360]
private

Definition at line 157 of file PdspChannelMapService.hpp.

◆ fvFiberIdMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvFiberIdMap[15360]
private

Definition at line 161 of file PdspChannelMapService.hpp.

◆ fvInstalledAPA

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvInstalledAPA[6]
private

Definition at line 183 of file PdspChannelMapService.hpp.

◆ fvOpDetNoMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvOpDetNoMap[288]
private

Definition at line 194 of file PdspChannelMapService.hpp.

◆ fvPlaneMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvPlaneMap[15360]
private

Definition at line 166 of file PdspChannelMapService.hpp.

◆ fvSlotIdMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvSlotIdMap[15360]
private

Definition at line 160 of file PdspChannelMapService.hpp.

◆ fvSSPAPAMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvSSPAPAMap[288]
private

Definition at line 190 of file PdspChannelMapService.hpp.

◆ fvSSPChanWithinSSPMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvSSPChanWithinSSPMap[288]
private

Definition at line 193 of file PdspChannelMapService.hpp.

◆ fvSSPGlobalMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvSSPGlobalMap[288]
private

Definition at line 192 of file PdspChannelMapService.hpp.

◆ fvSSPWithinAPAMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvSSPWithinAPAMap[288]
private

Definition at line 191 of file PdspChannelMapService.hpp.

◆ fvStreamChannelMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvStreamChannelMap[15360]
private

Definition at line 159 of file PdspChannelMapService.hpp.

◆ fvTPCSet_VsInstalledAPA

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvTPCSet_VsInstalledAPA[6]
private

Definition at line 184 of file PdspChannelMapService.hpp.

◆ fvWIBMap

unsigned int dunedaq::detchannelmaps::PdspChannelMapService::fvWIBMap[15360]
private

Definition at line 156 of file PdspChannelMapService.hpp.


The documentation for this class was generated from the following files: