Public Types | Public Member Functions | Private Attributes | List of all members
VDColdboxOnlineChannel Class Reference

#include <VDColdboxOnlineChannel.h>

Inheritance diagram for VDColdboxOnlineChannel:
IndexMapTool

Public Types

using Name = std::string
 
- Public Types inherited from IndexMapTool
using Index = unsigned int
 

Public Member Functions

 VDColdboxOnlineChannel (const fhicl::ParameterSet &ps)
 
Index get (Index chanOff) const override
 
- Public Member Functions inherited from IndexMapTool
virtual ~IndexMapTool ()=default
 

Private Attributes

Index m_LogLevel
 

Additional Inherited Members

- Static Public Member Functions inherited from IndexMapTool
static Index badIndex ()
 

Detailed Description

Definition at line 27 of file VDColdboxOnlineChannel.h.

Member Typedef Documentation

Definition at line 31 of file VDColdboxOnlineChannel.h.

Constructor & Destructor Documentation

VDColdboxOnlineChannel::VDColdboxOnlineChannel ( const fhicl::ParameterSet ps)

Definition at line 15 of file VDColdboxOnlineChannel_tool.cc.

16 : m_LogLevel(pset.get<Index>("LogLevel")) {
17  const string myname = "VDColdboxOnlineChannel::ctor: ";
18  cout << myname << " LogLevel: " << m_LogLevel << endl;
19 }
unsigned int Index
QTextStream & endl(QTextStream &s)

Member Function Documentation

Index VDColdboxOnlineChannel::get ( Index  chanOff) const
overridevirtual

Implements IndexMapTool.

Definition at line 23 of file VDColdboxOnlineChannel_tool.cc.

23  {
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 }
static Index badIndex()
Definition: IndexMapTool.h:18
QTextStream & endl(QTextStream &s)

Member Data Documentation

Index VDColdboxOnlineChannel::m_LogLevel
private

Definition at line 40 of file VDColdboxOnlineChannel.h.


The documentation for this class was generated from the following files: