8 #ifndef GEO_AUXDETGEOMETRYCORE_H
9 #define GEO_AUXDETGEOMETRYCORE_H
16 #include "fhiclcpp/ParameterSet.h"
32 class AuxDetSensitiveGeo;
234 std::string
const& auxDetName)
const;
238 uint32_t
const& channel)
const;
242 uint32_t
const& channel)
const;
294 void ApplyChannelMap(std::unique_ptr<geo::AuxDetChannelMapAlg> pChannelMap);
328 #endif // GEO_AUXDETGEOMETRYCORE_H
void LoadGeometryFile(std::string gdmlfile, std::string rootfile)
Loads the geometry information from the specified files.
void ApplyChannelMap(std::unique_ptr< geo::AuxDetChannelMapAlg > pChannelMap)
Initializes the geometry to work with this channel map.
AuxDetGeo const & AuxDet(unsigned int const ad=0) const
Returns the specified auxiliary detector.
AuxDetGeometryData_t fGeoData
The detector description data.
std::vector< AuxDetGeo > AuxDetList_t
Type of list of auxiliary detectors.
const AuxDetSensitiveGeo & PositionToAuxDetSensitive(double const worldLoc[3], size_t &ad, size_t &sv, double tolerance=0) const
Returns the auxiliary detector at specified location.
std::string fDetectorName
Name of the detector.
uint32_t PositionToAuxDetChannel(double const worldLoc[3], size_t &ad, size_t &sv) const
const AuxDetGeo & ChannelToAuxDet(std::string const &auxDetName, uint32_t const &channel) const
unsigned int NAuxDetSensitive(size_t const &aid) const
Returns the number of sensitive components of auxiliary detector.
std::string GDMLFile() const
Returns the full directory path to the GDML file source.
std::unique_ptr< const geo::AuxDetChannelMapAlg > fChannelMapAlg
Object containing the channel to wire mapping.
Description of geometry of one set of auxiliary detectors.
bool hasAuxDetChannelMap() const
Returns whether we have a channel map.
std::string ROOTFile() const
Returns the full directory path to the geometry file source.
unsigned int NAuxDets() const
Returns the number of auxiliary detectors.
const AuxDetSensitiveGeo & ChannelToAuxDetSensitive(std::string const &auxDetName, uint32_t const &channel) const
AuxDetList_t & AuxDets()
Return the internal auxiliary detectors list.
unsigned int FindAuxDetAtPosition(double const worldLoc[3], double tolerance=0) const
Returns the index of the auxiliary detector at specified location.
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.
std::string fROOTfile
path to geometry file for geometry in GeometryCore
AuxDetGeometryCore(fhicl::ParameterSet const &pset)
Initialize geometry from a given configuration.
std::vector< AuxDetGeo > const & AuxDetGeoVec() const
Returns the full list of pointer to the auxiliary detectors.
void ClearGeometry()
Deletes the detector geometry structures.
std::string DetectorName() const
Returns a string with the name of the detector, as configured.
void FindAuxDetSensitiveAtPosition(double const worldLoc[3], size_t &adg, size_t &sv, double tolerance=0) const
Fills the indices of the sensitive auxiliary detector at location.
std::string fGDMLfile
path to geometry file used for Geant4 simulation
AuxDetGeometryCore & operator=(AuxDetGeometryCore const &)=delete
AuxDetGeo const & PositionToAuxDet(double const worldLoc[3], unsigned int &ad, double tolerance=0) const
Returns the auxiliary detector at specified location.
TVector3 AuxDetChannelToPosition(uint32_t const &channel, std::string const &auxDetName) const
AuxDetGeometryData_t::AuxDetList_t AuxDetList_t
Type of list of auxiliary detectors.
AuxDetList_t const & AuxDets() const