Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunetpc
dune
Daq
Service
Dune35tChannelMappingService_service.cc
Go to the documentation of this file.
1
// Dune35tChannelMappingService.cxx
2
3
#include "
dune/Daq/Service/Dune35tChannelMappingService.h
"
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
15
typedef
ChannelMappingService::Channel
Channel
;
16
17
//**********************************************************************
18
19
Dune35tChannelMappingService::
20
Dune35tChannelMappingService
(
fhicl::ParameterSet
const
& pset)
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
30
Dune35tChannelMappingService::
31
Dune35tChannelMappingService
(
fhicl::ParameterSet
const
& pset,
art::ActivityRegistry
&)
32
:
Dune35tChannelMappingService
(pset) { }
33
34
//**********************************************************************
35
36
Channel
Dune35tChannelMappingService::offline
(
Channel
chin)
const
{
37
return
hlbnesvc
->Offline(chin);
38
}
39
40
//**********************************************************************
41
42
Channel
Dune35tChannelMappingService::online
(
Channel
chin)
const
{
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
56
DEFINE_ART_SERVICE_INTERFACE_IMPL
(
Dune35tChannelMappingService
,
ChannelMappingService
)
57
58
//**********************************************************************
Dune35tChannelMappingService
Definition:
Dune35tChannelMappingService.h:27
Dune35tChannelMappingService.h
Dune35tChannelMappingService::online
Channel online(Channel offlineChannel) const
Definition:
Dune35tChannelMappingService_service.cc:42
DEFINE_ART_SERVICE_INTERFACE_IMPL
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)
Definition:
ServiceMacros.h:121
string
std::string string
Definition:
nybbler.cc:12
Dune35tChannelMappingService::Dune35tChannelMappingService
Dune35tChannelMappingService(fhicl::ParameterSet const &pset)
Definition:
Dune35tChannelMappingService_service.cc:20
Dune35tChannelMappingService::offline
Channel offline(Channel onlineChannel) const
Definition:
Dune35tChannelMappingService_service.cc:36
Dune35tChannelMappingService::print
std::ostream & print(std::ostream &out=std::cout, std::string prefix="") const
Definition:
Dune35tChannelMappingService_service.cc:48
ChannelMappingService::Channel
unsigned int Channel
Definition:
ChannelMappingService.h:19
fhicl::ParameterSet::get_if_present
bool get_if_present(std::string const &key, T &value) const
Definition:
ParameterSet.h:208
ChannelMappingService
Definition:
ChannelMappingService.h:15
art::ActivityRegistry
Definition:
ActivityRegistry.h:52
Channel
ChannelMappingService::Channel Channel
Definition:
Dune35tChannelMappingService_service.cc:15
Dune35tChannelMappingService::hlbnesvc
art::ServiceHandle< lbne::ChannelMapService > hlbnesvc
Definition:
Dune35tChannelMappingService.h:52
Dune35tChannelMappingService::m_LogLevel
int m_LogLevel
Definition:
Dune35tChannelMappingService.h:50
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
fhicl::ParameterSet
Definition:
ParameterSet.h:34
Generated by
1.8.11