#include <PdspOnlineChannel.h>
Definition at line 52 of file PdspOnlineChannel.h.
Definition at line 15 of file PdspOnlineChannel_tool.cc.
21 const string myname =
"PdspOnlineChannel::ctor: ";
25 cout << myname <<
"ERROR: Invalid ordering: " <<
m_Ordering <<
endl;
ChannelGroupService::Name Name
QTextStream & endl(QTextStream &s)
Index PdspOnlineChannel::get |
( |
Index |
chanOff | ) |
const |
|
overridevirtual |
Implements IndexMapTool.
Definition at line 31 of file PdspOnlineChannel_tool.cc.
32 const string myname =
"PdspOnlineChannel::get: ";
33 if ( chanOff >= 15360 ) {
34 if (
m_LogLevel > 1 ) cout << myname <<
"Invalid offline channel: " << chanOff <<
endl;
41 if (
m_LogLevel > 1 ) cout << myname <<
"Invalid APA index: " << iapa <<
endl;
48 if (
m_LogLevel > 1 ) cout << myname <<
"Invalid WIB index: " << iwib <<
endl;
54 if ( icon < 1 || icon > 4 ) {
55 if (
m_LogLevel > 1 ) cout << myname <<
"Invalid connector index: " << icon <<
endl;
58 Index kcon = icon - 1;
62 if (
m_LogLevel > 1 ) cout << myname <<
"Invalid FEMB channel index: " << ichf <<
endl;
69 chanOn = 2560*kapa + 512*kwib + 128*kcon + kchf;
71 chanOn = 2560*kapa + 640*kcon + 128*kwib + kchf;
74 static Index ifmb[20] = {10, 9, 8, 7, 6,
78 Index jfmb = 5*kcon + kwib;
79 Index kfmb = ifmb[jfmb] - 1;
81 bool beamLeft = kapa/2 != (kapa+1)/2;
82 if ( beamLeft ) kfmb = (kfmb + 10) % 20;
83 chanOn = 2560*kapa + 128*kfmb + kchf;
unsigned int FEMBChannelFromOfflineChannel(unsigned int offlineChannel) const
Returns FEMB channel.
unsigned int APAFromOfflineChannel(unsigned int offlineChannel) const
Returns APA/crate.
unsigned int WIBFromOfflineChannel(unsigned int offlineChannel) const
Returns WIB/slot.
unsigned int FEMBFromOfflineChannel(unsigned int offlineChannel) const
Returns FEMB/fiber.
QTextStream & endl(QTextStream &s)
Index PdspOnlineChannel::m_LogLevel |
|
private |
bool PdspOnlineChannel::m_orderByConnector |
|
private |
bool PdspOnlineChannel::m_orderByFemb |
|
private |
bool PdspOnlineChannel::m_orderByWib |
|
private |
Name PdspOnlineChannel::m_Ordering |
|
private |
The documentation for this class was generated from the following files: