All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sbndcode/sbndcode/CRT/CRTGeometryHelper_service.cc
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 /// \file CRTGeometryHelper_service.cc
3 ///
4 /// Ported from LArIATAuxDetGeometryHelper_service.cc (Author: rs@fnal.gov)
5 ///
6 /// \version $Id
7 /// \author mastbaum@uchicago.edu
8 ///////////////////////////////////////////////////////////////////////////////
9 
12 #include "art/Framework/Services/Registry/ServiceDefinitionMacros.h"
13 
14 #include <memory>
15 
16 namespace sbnd {
17 
18  //------------------------------------------------------------------------
19  CRTGeometryHelper::CRTGeometryHelper(fhicl::ParameterSet const& pset)
20  : fPset(pset) {}
21 
22  //------------------------------------------------------------------------
25  fhicl::ParameterSet const& sortingParameters) const
26  {
27  return std::make_unique<geo::CRTChannelMapAlg>(sortingParameters);
28  }
29 
30 } // namespace sbnd
31 
32 DEFINE_ART_SERVICE_INTERFACE_IMPL(sbnd::CRTGeometryHelper,
std::unique_ptr< AuxDetChannelMapAlg > AuxDetChannelMapAlgPtr_t
AuxDetChannelMapAlgPtr_t doConfigureAuxDetChannelMapAlg(fhicl::ParameterSet const &sortingParameters) const override
Implementation of ConfigureChannelMapAlg (pure virtual)
stream1 can override from command line with o or output services user sbnd
Interface to a service with detector-specific geometry knowledge.