All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
icaruscode/icaruscode/CRT/CRTChannelMapAlg.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 /// \file CRTChannelMapAlg.h
3 /// \brief Algorithm class for SBND auxiliary detector channel mapping
4 ///
5 /// Originally ported from AuxDetChannelMapLArIATAlg.cxx (Author: brebel@fnal.gov)
6 /// and modified for SBND (Author: mastbaum@uchicago.edu)
7 /// \version $Id: 0.0 $
8 /// \author chilge@rams.colostate.edu
9 ///////////////////////////////////////////////////////////////////////////////
10 
11 #ifndef ICARUS_CRTChannelMapAlg_h
12 #define ICARUS_CRTChannelMapAlg_h
13 
16 #include "fhiclcpp/ParameterSet.h"
17 #include "TVector3.h"
18 #include <vector>
19 
20 //namespace icarus{
21 //namespace crt {
22 namespace geo{
23 
25  public:
26  CRTChannelMapAlg(fhicl::ParameterSet const& p);
27 
28  void Initialize(AuxDetGeometryData_t& geodata) override;
29 
30  void Uninitialize() override;
31 
32  uint32_t PositionToAuxDetChannel(
33  double const worldLoc[3],
34  std::vector<geo::AuxDetGeo> const& auxDets,
35  size_t& ad,
36  size_t& sv) const override;
37 
38  const TVector3 AuxDetChannelToPosition(
39  uint32_t const& channel,
40  std::string const& auxDetName,
41  std::vector<geo::AuxDetGeo> const& auxDets) const override;
42 
43 
44  private:
45  geo::CRTGeoObjectSorter fSorter; ///< Class to sort geo objects
46  };
47 
48 } // namespace crt
49 //} //namespace icarus
50 
51 #endif // ICARUS_CRTChannelMapAlg_h
void Initialize(AuxDetGeometryData_t &geodata) override
pdgs p
Definition: selectors.fcl:22
uint32_t PositionToAuxDetChannel(double const worldLoc[3], std::vector< geo::AuxDetGeo > const &auxDets, size_t &ad, size_t &sv) const override
geo::CRTGeoObjectSorter fSorter
Class to sort geo objects.
const TVector3 AuxDetChannelToPosition(uint32_t const &channel, std::string const &auxDetName, std::vector< geo::AuxDetGeo > const &auxDets) const override