8 #ifndef GEO_AUXDETGEOMETRYCORE_H 9 #define GEO_AUXDETGEOMETRYCORE_H 30 class AuxDetSensitiveGeo;
115 std::string
const&
ROOTFile()
const {
return fROOTfile; }
124 std::string
const&
GDMLFile()
const {
return fGDMLfile; }
147 unsigned int NAuxDets()
const {
return AuxDets().size(); }
155 unsigned int NAuxDetSensitive(
size_t const& aid)
const;
162 std::vector<AuxDetGeo>
const&
AuxDetGeoVec()
const {
return AuxDets(); }
172 AuxDetGeo const& AuxDet(
unsigned int const ad = 0)
const;
181 unsigned int FindAuxDetAtPosition(
Point_t const& worldLoc,
double tolerance = 0)
const;
190 void FindAuxDetSensitiveAtPosition(
Point_t const& worldLoc,
193 double tolerance = 0)
const;
206 double tolerance = 0)
const;
221 double tolerance = 0)
const;
223 uint32_t PositionToAuxDetChannel(
Point_t const& worldLoc,
size_t& ad,
size_t& sv)
const;
225 Point_t AuxDetChannelToPosition(std::string
const& auxDetName, uint32_t channel)
const;
228 std::string
const& auxDetName,
229 uint32_t channel)
const;
233 std::string
const& auxDetName,
234 uint32_t channel)
const;
261 void LoadGeometryFile(std::string gdmlfile, std::string rootfile);
284 void ApplyChannelMap(std::unique_ptr<geo::AuxDetChannelMapAlg> pChannelMap);
299 void ClearGeometry();
307 std::unique_ptr<AuxDetChannelMapAlg const>
313 #endif // GEO_AUXDETGEOMETRYCORE_H
AuxDetGeometryData_t fGeoData
The detector description data.
std::vector< AuxDetGeo > AuxDetList_t
Type of list of auxiliary detectors.
std::string fDetectorName
Name of the detector.
std::string const & DetectorName() const
Returns a string with the name of the detector, as configured.
std::string const & GDMLFile() const
Returns the full directory path to the GDML file source.
Description of geometry of one set of auxiliary detectors.
bool hasAuxDetChannelMap() const
Returns whether we have a channel map.
unsigned int NAuxDets() const
Returns the number of auxiliary detectors.
Definitions of geometry vector data types.
std::string const & ROOTFile() const
Returns the full directory path to the geometry file source.
geo::AuxDetChannelMapAlg const * AuxDetChannelMap() const
Returns the object handling the channel map.
fhicl::ParameterSet fBuilderParameters
Configuration of geometry builder.
Encapsulate the geometry of an auxiliary detector.
AuxDetList_t auxDets
The auxiliary detectors.
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
std::string fROOTfile
path to geometry file for geometry in GeometryCore
std::vector< AuxDetGeo > const & AuxDetGeoVec() const
Returns the full list of pointer to the auxiliary detectors.
std::string fGDMLfile
path to geometry file used for Geant4 simulation
Namespace collecting geometry-related classes utilities.
AuxDetGeometryData_t::AuxDetList_t AuxDetList_t
Type of list of auxiliary detectors.
AuxDetList_t const & AuxDets() const
Return the internal auxiliary detectors list.
std::unique_ptr< AuxDetChannelMapAlg const > fChannelMapAlg
Object containing the channel to wire mapping.