12 #ifndef GEO_AUXDETCHANNELMAPALG_H 13 #define GEO_AUXDETCHANNELMAPALG_H 15 #include "Geometry/AuxDetGeoObjectSorter.h" 18 #include "cetlib_except/exception.h" 32 struct AuxDetGeometryData_t;
51 std::vector<geo::AuxDetGeo*>
const& auxDets)
const;
53 std::vector<geo::AuxDetGeo*>
const& auxDets,
55 virtual size_t ChannelToAuxDet (std::vector<geo::AuxDetGeo*>
const& auxDets,
66 std::vector<geo::AuxDetGeo*>
const& auxDets,
68 size_t & sv)
const = 0;
72 std::vector<geo::AuxDetGeo*>
const& auxDets)
const = 0;
86 #endif // GEO_AUXDETCHANNELMAPALG_H virtual std::pair< size_t, size_t > ChannelToSensitiveAuxDet(std::vector< geo::AuxDetGeo * > const &auxDets, std::string const &detName, uint32_t const &channel) const
virtual size_t NearestAuxDet(const double *point, std::vector< geo::AuxDetGeo * > const &auxDets) const
virtual size_t ChannelToAuxDet(std::vector< geo::AuxDetGeo * > const &auxDets, std::string const &detName, uint32_t const &channel) const
virtual void Uninitialize()=0
virtual void Initialize(AuxDetGeometryData_t &geodata)=0
std::pair< uint32_t, size_t > chanAndSV
Data in the geometry description.
virtual uint32_t PositionToAuxDetChannel(double const worldLoc[3], std::vector< geo::AuxDetGeo * > const &auxDets, size_t &ad, size_t &sv) const =0
virtual const TVector3 AuxDetChannelToPosition(uint32_t const &channel, std::string const &auxDetName, std::vector< geo::AuxDetGeo * > const &auxDets) const =0
std::map< std::string, size_t > fNameToADGeo
map the names to the AuxDetGeo index
virtual ~AuxDetChannelMapAlg()=default
General GArSoft Utilities.
virtual size_t NearestSensitiveAuxDet(const double *point, std::vector< geo::AuxDetGeo * > const &auxDets, size_t &ad) const
std::map< size_t, std::string > fADGeoToName
map the AuxDetGeo index to the name
std::map< size_t, std::vector< chanAndSV > > fADGeoToChannelAndSV
LArSoft geometry interface.