All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
icarus::IcarusGeometryHelper Class Reference

Implementation of geo::ExptGeoHelperInterface for ICARUS. More...

#include <IcarusGeometryHelper.h>

Inheritance diagram for icarus::IcarusGeometryHelper:
geo::ExptGeoHelperInterface

Public Member Functions

 IcarusGeometryHelper (fhicl::ParameterSet const &pset)
 Constructor: records the configuration. More...
 
- Public Member Functions inherited from geo::ExptGeoHelperInterface
virtual ~ExptGeoHelperInterface ()=default
 Virtual destructor; does nothing. More...
 
ChannelMapAlgPtr_t ConfigureChannelMapAlg (fhicl::ParameterSet const &sortingParameters, std::string const &detectorName) const
 Configure and initialize the channel map. More...
 

Private Member Functions

virtual ChannelMapAlgPtr_t doConfigureChannelMapAlg (fhicl::ParameterSet const &, std::string const &detectorName) const override
 
std::unique_ptr
< geo::ChannelMapAlg
makeChannelMapping (fhicl::ParameterSet const &parameters) const
 Creates and returns the channel mapping instance via a art tool. More...
 

Private Attributes

fhicl::ParameterSet fPset
 Copy of configuration parameter set. More...
 

Additional Inherited Members

- Public Types inherited from geo::ExptGeoHelperInterface
using ChannelMapAlgPtr_t = std::unique_ptr< ChannelMapAlg >
 

Detailed Description

Implementation of geo::ExptGeoHelperInterface for ICARUS.

This service utilizes a art tool to create the proper channel mapper algorithm instance.

Configuration

Definition at line 50 of file IcarusGeometryHelper.h.

Constructor & Destructor Documentation

icarus::IcarusGeometryHelper::IcarusGeometryHelper ( fhicl::ParameterSet const &  pset)
inline

Constructor: records the configuration.

Definition at line 55 of file IcarusGeometryHelper.h.

55 : fPset(pset) {}
fhicl::ParameterSet fPset
Copy of configuration parameter set.

Member Function Documentation

auto icarus::IcarusGeometryHelper::doConfigureChannelMapAlg ( fhicl::ParameterSet const &  ,
std::string const &  detectorName 
) const
overrideprivatevirtual

Implements geo::ExptGeoHelperInterface.

Definition at line 35 of file IcarusGeometryHelper_service.cc.

39 {
40  //
41  // detector type check
42  //
43  if (detectorName.find("icarus") == std::string::npos) {
44  MF_LOG_WARNING("IcarusGeometryHelper")
45  << "Using a ICARUS channel mapping with an unsupported (non-ICARUS?)"
46  " detector geometry";
47  } // if not ICARUS detector
48 
49  //
50  // channel mapping creation and setup
51  //
52  return makeChannelMapping(fPset);
53 
54 } // icarus::IcarusGeometryHelper::doConfigureChannelMapAlg()
std::unique_ptr< geo::ChannelMapAlg > makeChannelMapping(fhicl::ParameterSet const &parameters) const
Creates and returns the channel mapping instance via a art tool.
fhicl::ParameterSet fPset
Copy of configuration parameter set.
MF_LOG_WARNING("SimWire")<< "SimWire is an example module that works for the "<< "MicroBooNE detector. Each experiment should implement "<< "its own version of this module to simulate electronics "<< "response."
std::unique_ptr< geo::ChannelMapAlg > icarus::IcarusGeometryHelper::makeChannelMapping ( fhicl::ParameterSet const &  parameters) const
private

Creates and returns the channel mapping instance via a art tool.

Definition at line 60 of file IcarusGeometryHelper_service.cc.

61 {
62  fhicl::ParameterSet mapperDefaultSet;
63  mapperDefaultSet.put("tool_type", DefaultChannelMapSetupTool);
64  auto channelMapSetupTool = art::make_tool<geo::ChannelMapSetupTool>
65  (parameters.get<fhicl::ParameterSet>("Mapper", mapperDefaultSet));
66 
67  return channelMapSetupTool->setupChannelMap();
68 } // icarus::IcarusGeometryHelper::makeChannelMapping()

Member Data Documentation

fhicl::ParameterSet icarus::IcarusGeometryHelper::fPset
private

Copy of configuration parameter set.

Definition at line 59 of file IcarusGeometryHelper.h.


The documentation for this class was generated from the following files: