#include <PdspChannelMapService.h>
Public Types | |
enum | _FelixOrRCE { kRCE, kFELIX } |
typedef enum dune::PdspChannelMapService::_FelixOrRCE | FelixOrRCE |
Public Member Functions | |
PdspChannelMapService (fhicl::ParameterSet const &pset) | |
PdspChannelMapService (fhicl::ParameterSet const &pset, art::ActivityRegistry &) | |
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. More... | |
unsigned int | InstalledAPAFromOfflineChannel (unsigned int offlineChannel) const |
Returns APA/crate in installation notation. More... | |
unsigned int | WIBFromOfflineChannel (unsigned int offlineChannel) const |
Returns WIB/slot. More... | |
unsigned int | FEMBFromOfflineChannel (unsigned int offlineChannel) const |
Returns FEMB/fiber. More... | |
unsigned int | FEMBChannelFromOfflineChannel (unsigned int offlineChannel) const |
Returns FEMB channel. More... | |
unsigned int | StreamChannelFromOfflineChannel (unsigned int offlineChannel, FelixOrRCE frswitch) const |
Returns RCE(FELIX) stream(frame) channel. More... | |
unsigned int | SlotIdFromOfflineChannel (unsigned int offlineChannel) const |
Returns global slot ID. More... | |
unsigned int | FiberIdFromOfflineChannel (unsigned int offlineChannel) const |
Returns global fiber ID. More... | |
unsigned int | ChipFromOfflineChannel (unsigned int offlineChannel) const |
Returns chip number. More... | |
unsigned int | ChipChannelFromOfflineChannel (unsigned int offlineChannel) const |
Returns chip channel number. More... | |
unsigned int | ASICFromOfflineChannel (unsigned int offlineChannel) |
Returns ASIC number – to be deprecated. More... | |
unsigned int | ASICChannelFromOfflineChannel (unsigned int offlineChannel) |
Returns ASIC channel number – to be deprecated. More... | |
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. More... | |
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] |
Definition at line 27 of file PdspChannelMapService.h.
Enumerator | |
---|---|
kRCE | |
kFELIX |
Definition at line 34 of file PdspChannelMapService.h.
dune::PdspChannelMapService::PdspChannelMapService | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 19 of file PdspChannelMapService_service.cc.
dune::PdspChannelMapService::PdspChannelMapService | ( | fhicl::ParameterSet const & | pset, |
art::ActivityRegistry & | |||
) |
Definition at line 237 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::APAFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Returns APA/crate.
Definition at line 302 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::ASICChannelFromOfflineChannel | ( | unsigned int | offlineChannel | ) |
Returns ASIC channel number – to be deprecated.
Definition at line 414 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::AsicChannelFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Definition at line 392 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::ASICFromOfflineChannel | ( | unsigned int | offlineChannel | ) |
Returns ASIC number – to be deprecated.
Definition at line 399 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::AsicFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Definition at line 380 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::AsicLinkFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Definition at line 409 of file PdspChannelMapService_service.cc.
|
inlineprivate |
Definition at line 192 of file PdspChannelMapService.h.
unsigned int dune::PdspChannelMapService::ChipChannelFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Returns chip channel number.
Definition at line 385 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::ChipFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Returns chip number.
Definition at line 375 of file PdspChannelMapService_service.cc.
|
private |
Definition at line 429 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::FEMBChannelFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Returns FEMB channel.
Definition at line 336 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::FEMBFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Returns FEMB/fiber.
Definition at line 328 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::FiberIdFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Returns global fiber ID.
Definition at line 368 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::GetOfflineNumberFromDetectorElements | ( | unsigned int | crate, |
unsigned int | slot, | ||
unsigned int | fiber, | ||
unsigned int | fembchannel, | ||
FelixOrRCE | frswitch | ||
) |
Definition at line 245 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::InstalledAPAFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Returns APA/crate in installation notation.
Definition at line 308 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::OpDetNoFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Definition at line 487 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::PlaneFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Returns plane.
Definition at line 424 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::SlotIdFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Returns global slot ID.
Definition at line 358 of file PdspChannelMapService_service.cc.
|
inlineprivate |
Definition at line 200 of file PdspChannelMapService.h.
unsigned int dune::PdspChannelMapService::SSPAPAFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Definition at line 463 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::SSPChanWithinSSPFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Definition at line 481 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::SSPGlobalFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Definition at line 475 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::SSPOfflineChannelFromOnlineChannel | ( | unsigned int | onlineChannel | ) |
Definition at line 441 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::SSPOnlineChannelFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Definition at line 457 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::SSPWithinAPAFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Definition at line 469 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::StreamChannelFromOfflineChannel | ( | unsigned int | offlineChannel, |
FelixOrRCE | frswitch | ||
) | const |
Returns RCE(FELIX) stream(frame) channel.
Definition at line 344 of file PdspChannelMapService_service.cc.
unsigned int dune::PdspChannelMapService::WIBFromOfflineChannel | ( | unsigned int | offlineChannel | ) | const |
Returns WIB/slot.
Definition at line 320 of file PdspChannelMapService_service.cc.
|
private |
Definition at line 144 of file PdspChannelMapService.h.
|
private |
Definition at line 181 of file PdspChannelMapService.h.
|
private |
Definition at line 180 of file PdspChannelMapService.h.
|
private |
Definition at line 141 of file PdspChannelMapService.h.
|
private |
Definition at line 140 of file PdspChannelMapService.h.
|
private |
Definition at line 135 of file PdspChannelMapService.h.
|
private |
Definition at line 137 of file PdspChannelMapService.h.
|
private |
Definition at line 136 of file PdspChannelMapService.h.
|
private |
Definition at line 161 of file PdspChannelMapService.h.
|
private |
Definition at line 162 of file PdspChannelMapService.h.
|
private |
Definition at line 172 of file PdspChannelMapService.h.
|
private |
Definition at line 171 of file PdspChannelMapService.h.
|
private |
Definition at line 170 of file PdspChannelMapService.h.
|
private |
Definition at line 169 of file PdspChannelMapService.h.
|
private |
Definition at line 165 of file PdspChannelMapService.h.
|
private |
Definition at line 164 of file PdspChannelMapService.h.
|
private |
Definition at line 168 of file PdspChannelMapService.h.
|
private |
Definition at line 173 of file PdspChannelMapService.h.
|
private |
Definition at line 167 of file PdspChannelMapService.h.
|
private |
Definition at line 166 of file PdspChannelMapService.h.
|
private |
Definition at line 163 of file PdspChannelMapService.h.
|
private |
Definition at line 131 of file PdspChannelMapService.h.
|
private |
Definition at line 119 of file PdspChannelMapService.h.
|
private |
Definition at line 130 of file PdspChannelMapService.h.
|
private |
Definition at line 120 of file PdspChannelMapService.h.
|
private |
Definition at line 123 of file PdspChannelMapService.h.
|
private |
Definition at line 122 of file PdspChannelMapService.h.
|
private |
Definition at line 121 of file PdspChannelMapService.h.
|
private |
Definition at line 127 of file PdspChannelMapService.h.
|
private |
Definition at line 138 of file PdspChannelMapService.h.
|
private |
Definition at line 148 of file PdspChannelMapService.h.
|
private |
Definition at line 158 of file PdspChannelMapService.h.
|
private |
Definition at line 157 of file PdspChannelMapService.h.
|
private |
Definition at line 156 of file PdspChannelMapService.h.
|
private |
Definition at line 155 of file PdspChannelMapService.h.
|
private |
Definition at line 151 of file PdspChannelMapService.h.
|
private |
Definition at line 150 of file PdspChannelMapService.h.
|
private |
Definition at line 154 of file PdspChannelMapService.h.
|
private |
Definition at line 175 of file PdspChannelMapService.h.
|
private |
Definition at line 186 of file PdspChannelMapService.h.
|
private |
Definition at line 159 of file PdspChannelMapService.h.
|
private |
Definition at line 153 of file PdspChannelMapService.h.
|
private |
Definition at line 182 of file PdspChannelMapService.h.
|
private |
Definition at line 185 of file PdspChannelMapService.h.
|
private |
Definition at line 184 of file PdspChannelMapService.h.
|
private |
Definition at line 183 of file PdspChannelMapService.h.
|
private |
Definition at line 152 of file PdspChannelMapService.h.
|
private |
Definition at line 176 of file PdspChannelMapService.h.
|
private |
Definition at line 149 of file PdspChannelMapService.h.