Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunetpc
dune
Daq
Service
Dune35tChannelMappingService.h
Go to the documentation of this file.
1
// Dune35tChannelMappingService
2
3
// David Adams
4
// May 2016
5
//
6
// Implementation of online-offline channel mapping that use the service in lbne_raw_data.
7
//
8
// Parameters:
9
// LogLevel [1] - Message logging level: 0=none, 1=init, 2+=every call to interface
10
//
11
// The parameter LogLevel is optional and has the indicated default values.
12
13
#ifndef Dune35tChannelMappingService_H
14
#define Dune35tChannelMappingService_H
15
16
#include "
dune/DuneInterface/ChannelMappingService.h
"
17
#include "
art/Framework/Services/Registry/ServiceHandle.h
"
18
#include "lbne-raw-data/Services/ChannelMap/ChannelMapService.h"
19
#include <vector>
20
#include <iostream>
21
22
class
TH1;
23
namespace
CLHEP
{
24
class
HepRandomEngine;
25
}
26
27
class
Dune35tChannelMappingService
:
public
ChannelMappingService
{
28
29
typedef
std::vector<Channel>
ChannelMap
;
30
31
public
:
32
33
// Ctor.
34
Dune35tChannelMappingService
(
fhicl::ParameterSet
const
& pset);
35
36
// Ctor.
37
Dune35tChannelMappingService
(
fhicl::ParameterSet
const
& pset,
art::ActivityRegistry
&);
38
39
// Map online to offline.
40
Channel
offline
(
Channel
onlineChannel)
const
;
41
42
// Map offline to online.
43
Channel
online
(
Channel
offlineChannel)
const
;
44
45
// Print the parameters.
46
std::ostream& print(std::ostream& out =std::cout,
std::string
prefix =
""
)
const
;
47
48
private
:
49
50
int
m_LogLevel
;
51
52
art::ServiceHandle<lbne::ChannelMapService>
hlbnesvc
;
53
54
};
55
56
DECLARE_ART_SERVICE_INTERFACE_IMPL
(
Dune35tChannelMappingService
,
ChannelMappingService
, LEGACY)
57
58
#endif
Dune35tChannelMappingService
Definition:
Dune35tChannelMappingService.h:27
art::ServiceHandle< lbne::ChannelMapService >
string
std::string string
Definition:
nybbler.cc:12
CLHEP
Definition:
RandomNumberGenerator.h:144
ServiceHandle.h
BuildSSPChannelMap.offline
offline
Definition:
BuildSSPChannelMap.py:34
ChannelMappingService::Channel
unsigned int Channel
Definition:
ChannelMappingService.h:19
ChannelMappingService
Definition:
ChannelMappingService.h:15
ChannelMappingService.h
Dune35tChannelMappingService::ChannelMap
std::vector< Channel > ChannelMap
Definition:
Dune35tChannelMappingService.h:29
art::ActivityRegistry
Definition:
ActivityRegistry.h:52
Dune35tChannelMappingService::hlbnesvc
art::ServiceHandle< lbne::ChannelMapService > hlbnesvc
Definition:
Dune35tChannelMappingService.h:52
BuildSSPChannelMap.online
online
Definition:
BuildSSPChannelMap.py:35
Dune35tChannelMappingService::m_LogLevel
int m_LogLevel
Definition:
Dune35tChannelMappingService.h:50
DECLARE_ART_SERVICE_INTERFACE_IMPL
#define DECLARE_ART_SERVICE_INTERFACE_IMPL(svc, iface, scope)
Definition:
ServiceMacros.h:108
fhicl::ParameterSet
Definition:
ParameterSet.h:34
Generated by
1.8.11