8 #ifndef GEO_AUXDETGEOMETRYCORE_H 9 #define GEO_AUXDETGEOMETRYCORE_H 39 class AuxDetSensitiveGeo;
40 class AuxDetGeometryCore;
165 unsigned int NAuxDets()
const {
return AuxDets().size(); }
173 unsigned int NAuxDetSensitive(
size_t const& aid)
const;
180 std::vector<AuxDetGeo*>
const&
AuxDetGeoVec()
const {
return AuxDets(); }
190 AuxDetGeo const& AuxDet(
unsigned int const ad = 0)
const;
199 unsigned int FindAuxDetAtPosition(
double const worldLoc[3])
const;
207 void FindAuxDetSensitiveAtPosition(
double const worldLoc[3],
219 AuxDetGeo const& PositionToAuxDet(
double const worldLoc[3],
220 unsigned int &ad)
const;
235 uint32_t PositionToAuxDetChannel(
double const worldLoc[3],
238 TVector3 AuxDetChannelToPosition(uint32_t
const& channel,
239 std::string
const& auxDetName)
const;
242 const AuxDetGeo& ChannelToAuxDet(std::string
const& auxDetName,
243 uint32_t
const& channel)
const;
247 uint32_t
const& channel)
const;
274 void LoadGeometryFile(std::string gdmlfile, std::string rootfile);
299 void ApplyChannelMap(std::shared_ptr<geo::AuxDetChannelMapAlg> pChannelMap);
316 void FindAuxDet(std::vector<const TGeoNode*>& path,
unsigned int depth);
318 void MakeAuxDet(std::vector<const TGeoNode*>& path,
int depth);
321 void ClearGeometry();
336 #endif // GEO_AUXDETGEOMETRYCORE_H
std::vector< AuxDetGeo * > AuxDetList_t
Type of list of auxiliary detectors.
AuxDetGeometryData_t fGeoData
The detector description data.
std::string fDetectorName
Name of the detector.
std::string 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.
std::string ROOTFile() const
Returns the full directory path to the geometry file source.
std::shared_ptr< const geo::AuxDetChannelMapAlg > fChannelMapAlg
Object containing the channel to wire mapping.
unsigned int NAuxDets() const
Returns the number of auxiliary detectors.
geo::AuxDetChannelMapAlg const * AuxDetChannelMap() const
Returns the object handling the channel map.
AuxDetList_t auxDets
The auxiliary detectors.
std::string fROOTfile
path to geometry file for geometry in GeometryCore
std::string DetectorName() const
Returns a string with the name of the detector, as configured.
std::string fGDMLfile
path to geometry file used for Geant4 simulation
std::vector< AuxDetGeo * > const & AuxDetGeoVec() const
Returns the full list of pointer to the auxiliary detectors.
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.