#include <FileChannelMappingService.h>
Definition at line 27 of file FileChannelMappingService.h.
Definition at line 31 of file FileChannelMappingService_service.cc.
33 const string myname =
"FileChannelMappingService::ctor: ";
36 pset.get_if_present<
int>(
"LogLevel",
m_LogLevel);
39 cout << myname <<
"Reading map file." <<
endl;
45 if ( fullname.empty() ) {
46 cout <<
"ERROR: " <<
"Input file not found: " <<
m_FileName <<
endl;
50 std::ifstream
infile(fullname);
53 unsigned int count = 0;
63 cout << myname <<
"Channel map file: " << fullname <<
endl;
64 cout << myname <<
" Number of map entries: " << count <<
endl;
65 cout << myname <<
" Maximum online channel: " <<
m_offMap.size()-1 <<
endl;
66 cout << myname <<
" Maximum offline channel: " <<
m_onMap.size()-1 <<
endl;
std::string m_FilePathEnv
std::ostream & print(std::ostream &out=std::cout, std::string prefix="") const
cet::coded_exception< error, detail::translate > exception
QTextStream & endl(QTextStream &s)
ChannelMappingService::Channel Channel
Channel FileChannelMappingService::offline |
( |
Channel |
onlineChannel | ) |
const |
|
virtual |
Implements ChannelMappingService.
Definition at line 78 of file FileChannelMappingService_service.cc.
79 const string myname =
"FileChannelMappingService::offline: ";
82 if ( chout ==
bad() ) {
84 cout << myname <<
"ERROR: " <<
"No offline channel mapped to online channel " << chin <<
endl;
cet::coded_exception< error, detail::translate > exception
QTextStream & endl(QTextStream &s)
ChannelMappingService::Channel Channel
Channel FileChannelMappingService::online |
( |
Channel |
offlineChannel | ) |
const |
|
virtual |
Implements ChannelMappingService.
Definition at line 93 of file FileChannelMappingService_service.cc.
94 const string myname =
"FileChannelMappingService::online: ";
97 if ( chout ==
bad() ) {
99 cout << myname <<
"ERROR: " <<
"No online channel mapped to offline channel " << chin <<
endl;
cet::coded_exception< error, detail::translate > exception
QTextStream & endl(QTextStream &s)
ChannelMappingService::Channel Channel
ostream & FileChannelMappingService::print |
( |
std::ostream & |
out = std::cout , |
|
|
std::string |
prefix = "" |
|
) |
| const |
|
virtual |
int FileChannelMappingService::m_LogLevel |
|
private |
The documentation for this class was generated from the following files: