All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
22  {
23  public:
24  explicit PDMapAlgSimple(const fhicl::ParameterSet& pset)
25  { fType = pset.get<std::string>("Type","pmt"); }
26 
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 
This is the interface class for a tool to handle PD mapping in SBN detectors, used for flash matching...
std::string pdType(size_t ch) const override
PDMapAlgSimple(const fhicl::ParameterSet &pset)