All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sbndcode/sbndcode/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 /// Ported from AuxDetChannelMapLArIATAlg.h (Author: brebel@fnal.gov)
6 ///
7 /// \version $Id: $
8 /// \author mastbaum@uchicago.edu
9 ///////////////////////////////////////////////////////////////////////////////
10 
11 #ifndef SBND_CRTChannelMapAlg_h
12 #define SBND_CRTChannelMapAlg_h
13 
16 #include "fhiclcpp/ParameterSet.h"
17 #include "TVector3.h"
18 #include <vector>
19 
20 namespace geo {
21 
22  class CRTChannelMapAlg : public AuxDetChannelMapAlg {
23  public:
24  CRTChannelMapAlg(fhicl::ParameterSet const& p);
25 
26  void Initialize(AuxDetGeometryData_t& geodata) override;
27 
28  void Uninitialize() override;
29 
30  uint32_t PositionToAuxDetChannel(
31  double const worldLoc[3],
32  std::vector<geo::AuxDetGeo> const& auxDets,
33  size_t& ad,
34  size_t& sv) const override;
35 
36  const TVector3 AuxDetChannelToPosition(
37  uint32_t const& channel,
38  std::string const& auxDetName,
39  std::vector<geo::AuxDetGeo> const& auxDets) const override;
40 
41  private:
42  geo::CRTGeoObjectSorter fSorter; ///< Class to sort geo objects
43  };
44 
45 } // namespace geo
46 
47 #endif // SBND_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