VDColdboxOnlineChannel_tool.cc
Go to the documentation of this file.
1 // VDColdboxOnlineChannel.cxx
2 
6 #include <iostream>
7 
8 using std::string;
9 using std::cout;
10 using std::endl;
12 
13 //**********************************************************************
14 
16 : m_LogLevel(pset.get<Index>("LogLevel")) {
17  const string myname = "VDColdboxOnlineChannel::ctor: ";
18  cout << myname << " LogLevel: " << m_LogLevel << endl;
19 }
20 
21 //**********************************************************************
22 
24  const string myname = "VDColdboxOnlineChannel::get: ";
25  if ( chanOff < 1600 || chanOff >= 3392 ) {
26  if ( m_LogLevel > 1 ) cout << myname << "Invalid offline channel: " << chanOff << endl;
27  return badIndex();
28  }
31  return 128*(info.femb) + 16*(info.asic-1) + info.asicchan;
32 }
33 
34 //**********************************************************************
35 
#define DEFINE_ART_CLASS_TOOL(tool)
Definition: ToolMacros.h:42
Index get(Index chanOff) const override
std::string string
Definition: nybbler.cc:12
unsigned int Index
VDColdboxOnlineChannel(const fhicl::ParameterSet &ps)
unsigned int Index
Definition: IndexMapTool.h:16
static Index badIndex()
Definition: IndexMapTool.h:18
auto const & get(AssnsNode< L, R, D > const &r)
Definition: AssnsNode.h:115
QTextStream & endl(QTextStream &s)