1 #ifndef GEO_AUXDETCHANNELMAPALG_H 9 #define GEO_AUXDETCHANNELMAPALG_H 14 #include "cetlib_except/exception.h" 28 struct AuxDetGeometryData_t;
46 std::vector<geo::AuxDetGeo*>
const& auxDets)
const;
48 std::vector<geo::AuxDetGeo*>
const& auxDets,
50 virtual size_t ChannelToAuxDet (std::vector<geo::AuxDetGeo*>
const& auxDets,
51 std::string
const& detName,
52 uint32_t
const& channel)
const;
54 std::string
const& detName,
55 uint32_t
const& channel)
const;
61 std::vector<geo::AuxDetGeo*>
const& auxDets,
63 size_t & sv)
const = 0;
66 std::string
const& auxDetName,
67 std::vector<geo::AuxDetGeo*>
const& auxDets)
const = 0;
79 #endif // GEO_AUXDETCHANNELMAPALG_H std::map< std::string, size_t > fNameToADGeo
map the names to the AuxDetGeo index
std::map< size_t, std::vector< chanAndSV > > fADGeoToChannelAndSV
virtual ~AuxDetChannelMapAlg()=default
virtual void Initialize(AuxDetGeometryData_t &geodata)=0
virtual const TVector3 AuxDetChannelToPosition(uint32_t const &channel, std::string const &auxDetName, std::vector< geo::AuxDetGeo * > const &auxDets) const =0
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
std::pair< uint32_t, size_t > chanAndSV
std::map< size_t, std::string > fADGeoToName
map the AuxDetGeo index to the name
Namespace collecting geometry-related classes utilities.
virtual uint32_t PositionToAuxDetChannel(double const worldLoc[3], std::vector< geo::AuxDetGeo * > const &auxDets, size_t &ad, size_t &sv) const =0
virtual size_t NearestSensitiveAuxDet(const double *point, std::vector< geo::AuxDetGeo * > const &auxDets, size_t &ad) const
virtual std::pair< size_t, size_t > ChannelToSensitiveAuxDet(std::vector< geo::AuxDetGeo * > const &auxDets, std::string const &detName, uint32_t const &channel) const