Dune35tChannelMappingService_service.cc
Go to the documentation of this file.
1 // Dune35tChannelMappingService.cxx
2 
4 #include <limits>
5 #include <fstream>
6 
7 using std::cout;
8 using std::ostream;
9 using std::endl;
10 using std::string;
11 using std::ifstream;
12 
13 #undef UseSeedService
14 
16 
17 //**********************************************************************
18 
21 : m_LogLevel(1) {
22  pset.get_if_present<int>("LogLevel", m_LogLevel);
23  if ( m_LogLevel > 0 ) {
24  print(cout, "Dune35tChannelMappingService::ctor: ");
25  }
26 }
27 
28 //**********************************************************************
29 
33 
34 //**********************************************************************
35 
37  return hlbnesvc->Offline(chin);
38 }
39 
40 //**********************************************************************
41 
43  return hlbnesvc->Online(chin);
44 }
45 
46 //**********************************************************************
47 
48 ostream& Dune35tChannelMappingService::print(ostream& out, string prefix) const {
49  string myname = prefix + " ";
50  cout << myname << " LogLevel: " << m_LogLevel << endl;
51  return out;
52 }
53 
54 //**********************************************************************
55 
57 
58 //**********************************************************************
Channel online(Channel offlineChannel) const
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)
std::string string
Definition: nybbler.cc:12
Dune35tChannelMappingService(fhicl::ParameterSet const &pset)
Channel offline(Channel onlineChannel) const
std::ostream & print(std::ostream &out=std::cout, std::string prefix="") const
bool get_if_present(std::string const &key, T &value) const
Definition: ParameterSet.h:208
ChannelMappingService::Channel Channel
art::ServiceHandle< lbne::ChannelMapService > hlbnesvc
QTextStream & endl(QTextStream &s)