All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
icaruscode/icaruscode/CRT/CRTGeometryHelper_service.cc
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 /// \file CRTGeometryHelper_service.cc
3 ///
4 /// Originally ported from LArIATAuxDetGeometryHelper.h (Author: brebel@fnal.gov)
5 /// and modified for SBND (Author: mastbaum@uchicago.edu)
6 ///
7 /// \version $Id: 0.0 $
8 /// \author chilge@rams.colostate.edu
9 ///////////////////////////////////////////////////////////////////////////////
10 
14 #include "art/Framework/Services/Registry/ServiceDefinitionMacros.h"
15 #include "fhiclcpp/ParameterSet.h"
18 #include <memory>
19 
20 namespace icarus {
21 namespace crt{
22 
23  //------------------------------------------------------------------------
25  fhicl::ParameterSet const& pset)
26  : fPset(pset) {}
27 
28  //------------------------------------------------------------------------
31  fhicl::ParameterSet const& sortingParameters) const {
32 
33  return std::make_unique<geo::CRTChannelMapAlg>(sortingParameters);
34 
35  }
36 
37 } // namespace crt
38 } // namespace icarus
39 
40 DEFINE_ART_SERVICE_INTERFACE_IMPL(icarus::crt::CRTGeometryHelper, geo::AuxDetExptGeoHelperInterface)
std::unique_ptr< AuxDetChannelMapAlg > AuxDetChannelMapAlgPtr_t
Access the description of auxiliary detector geometry.
Encapsulate the geometry of an auxiliary detector.
process_name crt
Interface to a service with detector-specific geometry knowledge.
AuxDetChannelMapAlgPtr_t doConfigureAuxDetChannelMapAlg(fhicl::ParameterSet const &sortingParameters) const override
Implementation of ConfigureChannelMapAlg (pure virtual)