#include <IcebergOnlineChannel.h>
Definition at line 48 of file IcebergOnlineChannel.h.
Definition at line 15 of file IcebergOnlineChannel_tool.cc.
21 const string myname =
"IcebergOnlineChannel::ctor: ";
25 cout << myname <<
"ERROR: Invalid ordering: " <<
m_Ordering <<
endl;
ChannelGroupService::Name Name
QTextStream & endl(QTextStream &s)
Index IcebergOnlineChannel::get |
( |
Index |
chanOff | ) |
const |
|
overridevirtual |
Implements IndexMapTool.
Definition at line 31 of file IcebergOnlineChannel_tool.cc.
32 const string myname =
"IcebergOnlineChannel::get: ";
33 if ( chanOff >= 1280 ) {
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;
70 cout << myname <<
"WIB ordering is not yest supported." <<
endl;
73 cout << myname <<
"Connector ordering is not yest supported." <<
endl;
77 if ( chanOff < 200 ) {
78 ifmb = ( 199-chanOff)/40 + 0;
79 }
else if ( chanOff < 400 ) {
80 ifmb = ( 399-chanOff)/40 + 5;
81 }
else if ( chanOff < 800 ) {
82 ifmb = (chanOff- 400)/40 + 0;
83 }
else if ( chanOff < 1040 ) {
84 ifmb = (chanOff- 800)/48 + 0;
85 }
else if ( chanOff < 1280 ) {
86 ifmb = (1279-chanOff)/48 + 5;
88 cout <<
"Invalid offline channel: : " << chanOff <<
endl;
92 chanOn = 1280*kapa + 128*(ifmb) + kchf;
95 cout << myname <<
"ChanOff --> (kapa kwib kcon kchf) --> chanON: " 96 << chanOff <<
" --> (" << kapa <<
" " << kwib <<
" " << kcon <<
" " << kchf
98 <<
" --> " << 100*(kapa+1) + kfmb <<
"-" << kchf <<
endl;
unsigned int APAFromOfflineChannel(unsigned int offlineChannel) const
Returns APA/crate.
unsigned int FEMBChannelFromOfflineChannel(unsigned int offlineChannel) const
Returns FEMB channel.
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 IcebergOnlineChannel::m_LogLevel |
|
private |
bool IcebergOnlineChannel::m_orderByConnector |
|
private |
bool IcebergOnlineChannel::m_orderByFemb |
|
private |
bool IcebergOnlineChannel::m_orderByWib |
|
private |
Name IcebergOnlineChannel::m_Ordering |
|
private |
The documentation for this class was generated from the following files: