![]() |
LArSoft
v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "AuxDetReadoutGeom.h"
Public Member Functions | |
AuxDetReadoutGeom (AuxDetReadoutInitializers initializers) | |
std::size_t | NearestAuxDet (Point_t const &point, std::vector< AuxDetGeo > const &auxDets, double tolerance=0, bool throwIfAbsent=true) const |
std::size_t | NearestSensitiveAuxDet (Point_t const &point, std::vector< AuxDetGeo > const &auxDets, double tolerance=0, bool throwIfAbsent=true) const |
std::pair< std::size_t, std::size_t > | ChannelToSensitiveAuxDet (std::string const &detName, std::uint32_t channel) const |
Point_t | AuxDetChannelToPosition (std::uint32_t channel, std::string const &auxDetName, std::vector< AuxDetGeo > const &auxDets) const |
Private Member Functions | |
std::size_t | DetNameToAuxDet (std::string const &detName) const |
Private Attributes | |
std::map< std::size_t, std::string > | fADGeoToName |
map the AuxDetGeo index to the name More... | |
std::map< std::string, std::size_t > | fNameToADGeo |
map the names to the AuxDetGeo index More... | |
std::map< std::size_t, std::vector< chanAndSV > > | fADGeoToChannelAndSV |
Definition at line 42 of file AuxDetReadoutGeom.h.
|
explicit |
Definition at line 29 of file AuxDetReadoutGeom.cxx.
References geo::AuxDetReadoutInitializers::ADGeoToName, fADGeoToChannelAndSV, and fNameToADGeo.
geo::Point_t geo::AuxDetReadoutGeom::AuxDetChannelToPosition | ( | std::uint32_t | channel, |
std::string const & | auxDetName, | ||
std::vector< AuxDetGeo > const & | auxDets | ||
) | const |
Definition at line 137 of file AuxDetReadoutGeom.cxx.
References fADGeoToChannelAndSV, and fNameToADGeo.
std::pair< std::size_t, std::size_t > geo::AuxDetReadoutGeom::ChannelToSensitiveAuxDet | ( | std::string const & | detName, |
std::uint32_t | channel | ||
) | const |
Definition at line 114 of file AuxDetReadoutGeom.cxx.
References DetNameToAuxDet(), and fADGeoToChannelAndSV.
|
private |
Definition at line 167 of file AuxDetReadoutGeom.cxx.
References fADGeoToName.
Referenced by ChannelToSensitiveAuxDet().
std::size_t geo::AuxDetReadoutGeom::NearestAuxDet | ( | Point_t const & | point, |
std::vector< AuxDetGeo > const & | auxDets, | ||
double | tolerance = 0 , |
||
bool | throwIfAbsent = true |
||
) | const |
Definition at line 36 of file AuxDetReadoutGeom.cxx.
References tca::Length().
Referenced by NearestSensitiveAuxDet().
std::size_t geo::AuxDetReadoutGeom::NearestSensitiveAuxDet | ( | Point_t const & | point, |
std::vector< AuxDetGeo > const & | auxDets, | ||
double | tolerance = 0 , |
||
bool | throwIfAbsent = true |
||
) | const |
Definition at line 71 of file AuxDetReadoutGeom.cxx.
References geo::AuxDetSensitiveGeo::HalfHeight(), geo::AuxDetSensitiveGeo::HalfWidth1(), geo::AuxDetSensitiveGeo::HalfWidth2(), geo::AuxDetSensitiveGeo::Length(), NearestAuxDet(), geo::AuxDetGeo::NSensitiveVolume(), geo::AuxDetGeo::SensitiveVolume(), and geo::AuxDetSensitiveGeo::toLocalCoords().
|
private |
map the AuxDetGeo index to a vector of pairs corresponding to the channel and AuxDetSensitiveGeo index
Definition at line 69 of file AuxDetReadoutGeom.h.
Referenced by AuxDetChannelToPosition(), AuxDetReadoutGeom(), and ChannelToSensitiveAuxDet().
|
private |
map the AuxDetGeo index to the name
Definition at line 66 of file AuxDetReadoutGeom.h.
Referenced by DetNameToAuxDet().
|
private |
map the names to the AuxDetGeo index
Definition at line 67 of file AuxDetReadoutGeom.h.
Referenced by AuxDetChannelToPosition(), and AuxDetReadoutGeom().