1 #ifndef GEO_AUXDETCHANNELMAPALG_H 9 #define GEO_AUXDETCHANNELMAPALG_H 23 struct AuxDetGeometryData_t;
40 std::vector<AuxDetGeo>
const& auxDets,
41 double tolerance = 0)
const;
43 std::vector<AuxDetGeo>
const& auxDets,
45 double tolerance = 0)
const;
47 std::string
const& detName,
48 uint32_t channel)
const;
50 std::vector<AuxDetGeo>
const& auxDets,
51 std::string
const& detName,
52 uint32_t channel)
const;
58 std::vector<AuxDetGeo>
const& auxDets,
60 size_t& sv)
const = 0;
63 std::string
const& auxDetName,
64 std::vector<AuxDetGeo>
const& auxDets)
const = 0;
69 std::map<size_t, std::vector<chanAndSV>>
75 #endif // GEO_AUXDETCHANNELMAPALG_H std::map< std::string, size_t > fNameToADGeo
map the names to the AuxDetGeo index
virtual uint32_t PositionToAuxDetChannel(Point_t const &worldLoc, std::vector< AuxDetGeo > const &auxDets, size_t &ad, size_t &sv) const =0
std::map< size_t, std::vector< chanAndSV > > fADGeoToChannelAndSV
std::pair< uint32_t, size_t > chanAndSV
virtual ~AuxDetChannelMapAlg()=default
virtual void Initialize(AuxDetGeometryData_t &geodata)=0
virtual Point_t AuxDetChannelToPosition(uint32_t channel, std::string const &auxDetName, std::vector< AuxDetGeo > const &auxDets) const =0
virtual std::pair< size_t, size_t > ChannelToSensitiveAuxDet(std::vector< AuxDetGeo > const &auxDets, std::string const &detName, uint32_t channel) const
Definitions of geometry vector data types.
virtual size_t NearestAuxDet(Point_t const &point, std::vector< AuxDetGeo > const &auxDets, double tolerance=0) const
virtual size_t ChannelToAuxDet(std::vector< AuxDetGeo > const &auxDets, std::string const &detName, uint32_t channel) const
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
virtual void Uninitialize()=0
virtual size_t NearestSensitiveAuxDet(Point_t const &point, std::vector< AuxDetGeo > const &auxDets, size_t &ad, double tolerance=0) const
std::map< size_t, std::string > fADGeoToName
map the AuxDetGeo index to the name
Namespace collecting geometry-related classes utilities.