Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
sbncode
sbncode
OpDet
PDMapAlgSimple_tool.cc
Go to the documentation of this file.
1
///////////////////////////////////////////////////////////////////////
2
///
3
/// \file PDMapAlg.h
4
///
5
/// \brief This is the interface class for a tool to handle PD mapping
6
/// in SBN detectors, used for flash matching.
7
///
8
/// \author Laura Paulucci, Franciole Marinho, Iker de Icaza, and W. Ketchum
9
///
10
////////////////////////////////////////////////////////////////////////
11
12
#include "
PDMapAlg.h
"
13
#include "art/Utilities/ToolMacros.h"
14
#include "art/Utilities/make_tool.h"
15
16
#include <string>
17
18
namespace
opdet {
19
20
//a default dummy one
21
class
PDMapAlgSimple
:
PDMapAlg
22
{
23
public
:
24
explicit
PDMapAlgSimple
(
const
fhicl::ParameterSet& pset)
25
{
fType
= pset.get<std::string>(
"Type"
,
"pmt"
); }
26
27
~PDMapAlgSimple
(){}
28
29
std::string
pdType
(
size_t
ch)
const override
{
return
fType
; }
30
31
private
:
32
std::string
fType
;
33
34
};
35
36
37
DEFINE_ART_CLASS_TOOL(
PDMapAlgSimple
)
38
}
// namespace
39
opdet::PDMapAlgSimple
Definition:
PDMapAlgSimple_tool.cc:21
opdet::PDMapAlgSimple::fType
std::string fType
Definition:
PDMapAlgSimple_tool.cc:32
opdet::PDMapAlg
Definition:
PDMapAlg.h:23
PDMapAlg.h
This is the interface class for a tool to handle PD mapping in SBN detectors, used for flash matching...
opdet::PDMapAlgSimple::pdType
std::string pdType(size_t ch) const override
Definition:
PDMapAlgSimple_tool.cc:29
opdet::PDMapAlgSimple::~PDMapAlgSimple
~PDMapAlgSimple()
Definition:
PDMapAlgSimple_tool.cc:27
opdet::PDMapAlgSimple::PDMapAlgSimple
PDMapAlgSimple(const fhicl::ParameterSet &pset)
Definition:
PDMapAlgSimple_tool.cc:24
Generated by
1.8.5