LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
The geometry of one entire detector, as served by art. More...
#include "Geometry.h"
Public Types | |
using | provider_type = GeometryCore |
type of service provider More... | |
using | Segment_t = Segment< Point_t > |
using | CryostatList_t = GeometryData_t::CryostatList_t |
Type of list of cryostats. More... | |
using | AuxDetList_t = GeometryData_t::AuxDetList_t |
Type of list of auxiliary detectors. More... | |
Public Member Functions | |
Geometry (fhicl::ParameterSet const &pset, art::ActivityRegistry ®) | |
provider_type const * | provider () const |
Returns a pointer to the geometry service provider. More... | |
sumdata::GeometryConfigurationInfo const & | configurationInfo () const |
Returns the current geometry configuration information. More... | |
double | DefaultWiggle () const |
Returns the tolerance used in looking for positions. More... | |
std::string const & | ROOTFile () const |
Returns the full directory path to the geometry file source. More... | |
std::string const & | GDMLFile () const |
Returns the full directory path to the GDML file source. More... | |
std::vector< TGeoNode const * > | FindAllVolumes (std::set< std::string > const &vol_names) const |
Returns all the nodes with volumes with any of the specified names. More... | |
std::vector< std::vector< TGeoNode const * > > | FindAllVolumePaths (std::set< std::string > const &vol_names) const |
Returns paths of all nodes with volumes with the specified names. More... | |
TGeoMaterial const * | Material (Point_t const &point) const |
Returns the material at the specified position. More... | |
template<typename Stream > | |
void | Print (Stream &&out, std::string indent=" ") const |
Prints geometry information with maximum verbosity. More... | |
std::string | Info (std::string indent=" ") const |
Returns a string with complete geometry information. More... | |
template<typename GeoID > | |
GeoID | GetBeginID () const |
Returns the ID of the first element of the detector. More... | |
template<typename GeoID , typename ContextID > | |
GeoID | GetBeginID (ContextID const &id) const |
Returns the ID of the first subelement of the specified element. More... | |
void | GetBeginID (TPCID &id) const |
Initializes the specified ID with the ID of the first TPC. More... | |
void | GetBeginID (PlaneID &id) const |
Initializes the specified ID with the ID of the first plane. More... | |
void | GetBeginID (WireID &id) const |
Initializes the specified ID with the ID of the first wire. More... | |
void | GetBeginID (readout::TPCsetID &id) const |
Initializes the specified ID with the ID of the first TPC set. More... | |
void | GetBeginID (readout::ROPID &id) const |
Initializes the specified ID with the ID of the first readout plane. More... | |
template<> | |
TPCID | GetBeginID (CryostatID const &id) const |
template<> | |
PlaneID | GetBeginID (CryostatID const &id) const |
template<> | |
PlaneID | GetBeginID (TPCID const &id) const |
template<> | |
WireID | GetBeginID (CryostatID const &id) const |
template<> | |
WireID | GetBeginID (TPCID const &id) const |
template<> | |
WireID | GetBeginID (PlaneID const &id) const |
template<typename GeoID > | |
GeoID | GetNextID (GeoID const &id) const |
Returns the ID next to the specified one. More... | |
template<typename GeoID > | |
GeoID | GetEndID () const |
Returns the (possibly invalid) ID after the last subelement of the detector. More... | |
template<typename GeoID , typename ContextID > | |
GeoID | GetEndID (ContextID const &id) const |
Returns the (possibly invalid) ID after the last subelement of the specified element. More... | |
void | GetEndID (TPCID &id) const |
Initializes the specified ID with the invalid ID after the last TPC. More... | |
void | GetEndID (PlaneID &id) const |
Initializes the specified ID with the invalid ID after the last plane. More... | |
void | GetEndID (WireID &id) const |
Initializes the specified ID with the invalid ID after the last wire. More... | |
void | GetEndID (readout::TPCsetID &id) const |
Initializes the specified ID with the invalid ID after the last TPC set. More... | |
void | GetEndID (readout::ROPID &id) const |
Initializes the specified ID with the invalid ID after the last ROP. More... | |
template<> | |
TPCID | GetEndID (CryostatID const &id) const |
template<> | |
PlaneID | GetEndID (CryostatID const &id) const |
template<> | |
PlaneID | GetEndID (TPCID const &id) const |
template<> | |
WireID | GetEndID (CryostatID const &id) const |
template<> | |
WireID | GetEndID (TPCID const &id) const |
template<> | |
WireID | GetEndID (PlaneID const &id) const |
bool | HasElement (TPCID const &tpcid) const |
Returns whether we have the specified TPC. More... | |
bool | HasElement (readout::TPCsetID const &tpcsetid) const |
Returns whether we have the specified TPC set. More... | |
bool | HasElement (readout::ROPID const &ropid) const |
CryostatGeo const * | PositionToCryostatPtr (Point_t const &point) const |
Returns the cryostat at specified location. More... | |
CryostatID | PositionToCryostatID (Point_t const &point) const |
Returns the ID of the cryostat at specified location. More... | |
bool | IncrementID (TPCID &id) const |
bool | IncrementID (PlaneID &id) const |
bool | IncrementID (WireID &id) const |
bool | IncrementID (readout::TPCsetID &id) const |
bool | IncrementID (readout::ROPID &id) const |
bool | HasTPC (TPCID const &tpcid) const |
Returns whether we have the specified TPC. More... | |
TPCGeo const * | PositionToTPCptr (Point_t const &point) const |
Returns the TPC at specified location. More... | |
TPCID | PositionToTPCID (Point_t const &point) const |
Returns the ID of the TPC at specified location. More... | |
TPCID | GetBeginTPCID (CryostatID const &id) const |
Returns the ID of the first TPC in the specified cryostat. More... | |
TPCID | GetEndTPCID (CryostatID const &id) const |
unsigned int | Nviews () const |
Returns the number of views (different wire orientations) More... | |
PlaneID | GetBeginPlaneID (CryostatID const &id) const |
Returns the ID of the first plane of the specified cryostat. More... | |
PlaneID | GetBeginPlaneID (TPCID const &id) const |
Returns the ID of the first plane of the specified TPC. More... | |
PlaneID | GetEndPlaneID (CryostatID const &id) const |
PlaneID | GetEndPlaneID (TPCID const &id) const |
View_t | View (PlaneID const &pid) const |
Returns the view (wire orientation) on the channels of specified TPC plane. More... | |
View_t | View (raw::ChannelID_t const channel) const |
Returns the view (wire orientation) on the specified TPC channel. More... | |
View_t | View (readout::ROPID const &ropid) const |
Returns the view of the channels in the specified readout plane. More... | |
SigType_t | SignalType (PlaneID const &pid) const |
Returns the type of signal on the channels of specified TPC plane. More... | |
SigType_t | SignalType (raw::ChannelID_t const channel) const |
Returns the type of signal on the specified TPC channel. More... | |
SigType_t | SignalType (readout::ROPID const &ropid) const |
Returns the type of signal of channels in specified readout plane. More... | |
WireID | GetBeginWireID (CryostatID const &id) const |
Returns the ID of the first wire in the specified cryostat. More... | |
WireID | GetBeginWireID (TPCID const &id) const |
Returns the ID of the first wire of the specified TPC. More... | |
WireID | GetBeginWireID (PlaneID const &id) const |
Returns the ID of the first wire of the specified wire plane. More... | |
WireID | GetEndWireID (CryostatID const &id) const |
WireID | GetEndWireID (TPCID const &id) const |
WireID | GetEndWireID (PlaneID const &id) const |
Length_t | WirePitch (View_t view) const |
Returns the distance between two wires in the specified view. More... | |
WireID | NearestWireID (Point_t const &point, PlaneID const &planeid) const |
Returns the ID of wire closest to position in the specified TPC. More... | |
bool | IntersectionPoint (WireID const &wid1, WireID const &wid2, double &y, double &z) const |
Returns the intersection point of two wires. More... | |
PlaneID | ThirdPlane (PlaneID const &pid1, PlaneID const &pid2) const |
Returns the plane that is not in the specified arguments. More... | |
double | ThirdPlaneSlope (PlaneID const &pid1, double slope1, PlaneID const &pid2, double slope2, PlaneID const &output_plane) const |
Returns the slope on the third plane, given it in the other two. More... | |
double | ThirdPlaneSlope (PlaneID const &pid1, double slope1, PlaneID const &pid2, double slope2) const |
Returns the slope on the third plane, given it in the other two. More... | |
double | ThirdPlane_dTdW (PlaneID const &pid1, double slope1, PlaneID const &pid2, double slope2, PlaneID const &output_plane) const |
Returns dT/dW on the third plane, given it in the other two. More... | |
double | ThirdPlane_dTdW (PlaneID const &pid1, double slope1, PlaneID const &pid2, double slope2) const |
Returns dT/dW on the third plane, given it in the other two. More... | |
std::string | OpDetGeoName (CryostatID const &cid=cryostat_zero) const |
Returns gdml string which gives sensitive opdet name. More... | |
std::vector< WireID > | ChannelToWire (raw::ChannelID_t const channel) const |
Returns a list of wires connected to the specified TPC channel. More... | |
readout::ROPID | ChannelToROP (raw::ChannelID_t channel) const |
raw::ChannelID_t | NearestChannel (Point_t const &worldLoc, PlaneID const &planeid) const |
Returns the ID of the channel nearest to the specified position. More... | |
bool | ChannelsIntersect (raw::ChannelID_t c1, raw::ChannelID_t c2, double &y, double &z) const |
Returns an intersection point of two channels. More... | |
unsigned int | MaxTPCsets () const |
Returns the largest number of TPC sets any cryostat in the detector has. More... | |
template<typename T > | |
readout::TPCsetDataContainer< T > | makeTPCsetData () const |
Returns a container with one entry per TPC set. More... | |
template<typename T > | |
readout::TPCsetDataContainer< T > | makeTPCsetData (T const &defValue) const |
Returns a container with one entry per TPC set. More... | |
bool | HasTPCset (readout::TPCsetID const &tpcsetid) const |
readout::TPCsetID | FindTPCsetAtPosition (Point_t const &worldLoc) const |
Returns the ID of the TPC set at specified location. More... | |
readout::TPCsetID | TPCtoTPCset (TPCID const &tpcid) const |
Returns the ID of the TPC set tpcid belongs to. More... | |
std::vector< TPCID > | TPCsetToTPCs (readout::TPCsetID const &tpcsetid) const |
Returns a list of ID of TPCs belonging to the specified TPC set. More... | |
readout::TPCsetID | GetBeginTPCsetID (CryostatID const &id) const |
Returns the ID of the first TPC set in the specified cryostat. More... | |
readout::TPCsetID | GetEndTPCsetID (CryostatID const &id) const |
unsigned int | MaxROPs () const |
Returns the largest number of ROPs a TPC set in the detector has. More... | |
template<typename T > | |
readout::ROPDataContainer< T > | makeROPdata () const |
Returns a container with one entry per readout plane. More... | |
template<typename T > | |
readout::ROPDataContainer< T > | makeROPdata (T const &defValue) const |
Returns a container with one entry per readout plane. More... | |
bool | HasROP (readout::ROPID const &ropid) const |
readout::ROPID | WirePlaneToROP (PlaneID const &planeid) const |
Returns the ID of the ROP planeid belongs to. More... | |
std::vector< PlaneID > | ROPtoWirePlanes (readout::ROPID const &ropid) const |
Returns a list of ID of planes belonging to the specified ROP. More... | |
std::vector< TPCID > | ROPtoTPCs (readout::ROPID const &ropid) const |
Returns a list of ID of TPCs the specified ROP spans. More... | |
raw::ChannelID_t | FirstChannelInROP (readout::ROPID const &ropid) const |
Returns the ID of the first channel in the specified readout plane. More... | |
readout::ROPID | GetBeginROPID (CryostatID const &id) const |
Returns the ID of the first readout plane of the specified cryostat. More... | |
readout::ROPID | GetBeginROPID (readout::TPCsetID const &id) const |
Returns the ID of the first readout plane of the specified TPC set. More... | |
readout::ROPID | GetEndROPID (CryostatID const &id) const |
readout::ROPID | GetEndROPID (readout::TPCsetID const &id) const |
Detector information | |
std::string const & | DetectorName () const |
Returns a string with the name of the detector, as configured. More... | |
TGeoVolume const * | WorldVolume () const |
Returns a pointer to the world volume. More... | |
void | WorldBox (double *xlo, double *xhi, double *ylo, double *yhi, double *zlo, double *zhi) const |
Fills the arguments with the boundaries of the world. More... | |
BoxBoundedGeo | WorldBox () const |
Length_t | SurfaceY () const |
The position of the detector respect to earth surface. More... | |
TGeoManager * | ROOTGeoManager () const |
Access to the ROOT geometry description manager. More... | |
const std::string | GetWorldVolumeName () const |
Return the name of the world volume (needed by Geant4 simulation) More... | |
BoxBoundedGeo | DetectorEnclosureBox (std::string const &name="volDetEnclosure") const |
std::string | VolumeName (Point_t const &point) const |
Returns the name of the deepest volume containing specified point. More... | |
std::string | MaterialName (Point_t const &point) const |
Name of the deepest material containing the point xyz. More... | |
double | TotalMass () const |
Returns the total mass [kg] of the specified volume (default: world). More... | |
double | TotalMass (std::string vol) const |
Returns the total mass [kg] of the specified volume (default: world). More... | |
double | MassBetweenPoints (Point_t const &p1, Point_t const &p2) const |
Returns the column density between two points. More... | |
void | GetBeginID (CryostatID &id) const |
Initializes the specified ID with the ID of the first cryostat. More... | |
void | GetEndID (CryostatID &id) const |
Initializes the specified ID with the invalid ID after the last cryostat. More... | |
CryostatGeo const & | PositionToCryostat (Point_t const &point) const |
Returns the cryostat at specified location. More... | |
bool | IncrementID (CryostatID &id) const |
template<typename T > | |
details::begin_type< T > | begin () const |
Initializes the specified ID with the ID of the first cryostat. More... | |
template<typename T , typename BaseID > | |
details::begin_type< T > | begin (BaseID const &id) const |
Initializes the specified ID with the ID of the first cryostat. More... | |
template<typename T > | |
details::end_type< T > | end () const |
Initializes the specified ID with the ID of the first cryostat. More... | |
template<typename T , typename BaseID > | |
details::end_type< T > | end (BaseID const &id) const |
Initializes the specified ID with the ID of the first cryostat. More... | |
template<typename T > | |
details::range_type< T > | Iterate () const |
Initializes the specified ID with the ID of the first cryostat. More... | |
template<typename T , typename ID > | |
details::range_type< T > | Iterate (ID const &id) const |
Initializes the specified ID with the ID of the first cryostat. More... | |
Length_t | CryostatHalfWidth (CryostatID const &cid=cryostat_zero) const |
Returns the half width of the cryostat (x direction) More... | |
Cryostat access and information | |
unsigned int | Ncryostats () const |
Returns the number of cryostats in the detector. More... | |
unsigned int | NElements () const |
Returns the number of cryostats in the detector. More... | |
unsigned int | NSiblingElements (CryostatID const &) const |
Returns the number of cryostats in the detector. More... | |
TPC access and information | |
unsigned int | NElements (CryostatID const &cryoid) const |
Returns the largest number of TPCs a cryostat in the detector has. More... | |
unsigned int | NSiblingElements (TPCID const &tpcid) const |
Returns the largest number of TPCs a cryostat in the detector has. More... | |
unsigned int | MaxTPCs () const |
Returns the largest number of TPCs a cryostat in the detector has. More... | |
unsigned int | TotalNTPC () const |
Returns the total number of TPCs in the detector. More... | |
template<typename T > | |
TPCDataContainer< T > | makeTPCData () const |
Returns a container with one entry per TPC. More... | |
template<typename T > | |
TPCDataContainer< T > | makeTPCData (T const &defValue) const |
Returns a container with one entry per TPC. More... | |
unsigned int | NTPC (CryostatID const &cryoid=cryostat_zero) const |
Returns the total number of TPCs in the specified cryostat. More... | |
Plane access and information | |
unsigned int | NElements (TPCID const &tpcid) const |
Returns the largest number of planes among all TPCs in this detector. More... | |
unsigned int | NSiblingElements (PlaneID const &planeid) const |
Returns the largest number of planes among all TPCs in this detector. More... | |
unsigned int | MaxPlanes () const |
Returns the largest number of planes among all TPCs in this detector. More... | |
template<typename T > | |
PlaneDataContainer< T > | makePlaneData () const |
Returns a container with one entry per wire plane. More... | |
template<typename T > | |
PlaneDataContainer< T > | makePlaneData (T const &defValue) const |
Returns a container with one entry per wire plane. More... | |
unsigned int | Nplanes (TPCID const &tpcid=tpc_zero) const |
Returns the total number of planes in the specified TPC. More... | |
Wire access and information | |
unsigned int | NElements (PlaneID const &planeid) const |
Returns the total number of wires in the specified plane. More... | |
unsigned int | NSiblingElements (WireID const &wireid) const |
Returns the total number of wires in the specified plane. More... | |
unsigned int | Nwires (PlaneID const &planeid) const |
Returns the total number of wires in the specified plane. More... | |
unsigned int | MaxWires () const |
Returns the largest number of wires among all planes in this detector. More... | |
TPC set information | |
unsigned int | NSiblingElements (readout::TPCsetID const &tpcsetid) const |
Returns the total number of TPC sets in the specified cryostat. More... | |
unsigned int | NTPCsets (geo::CryostatID const &cryoid) const |
Returns the total number of TPC sets in the specified cryostat. More... | |
Readout plane information | |
unsigned int | NSiblingElements (readout::ROPID const &ropid) const |
Returns the total number of ROP in the specified TPC set. More... | |
unsigned int | NROPs (readout::TPCsetID const &tpcsetid) const |
Returns the total number of ROP in the specified TPC set. More... | |
bool | HasCryostat (CryostatID const &cryoid) const |
Returns whether we have the specified cryostat. More... | |
bool | HasElement (CryostatID const &cryoid) const |
Returns whether we have the specified cryostat. More... | |
bool | HasElement (PlaneID const &planeid) const |
Returns whether we have the specified plane. More... | |
bool | HasPlane (PlaneID const &planeid) const |
Returns whether we have the specified plane. More... | |
bool | HasElement (WireID const &wireid) const |
Returns whether we have the specified wire. More... | |
bool | HasWire (WireID const &wireid) const |
Returns whether we have the specified wire. More... | |
PlaneGeo const & | GetElement (PlaneID const &planeid) const |
Returns the specified wire. More... | |
PlaneGeo const & | Plane (PlaneID const &planeid) const |
Returns the specified wire. More... | |
WireGeo const & | GetElement (WireID const &wireid) const |
Returns the specified wire. More... | |
WireGeo const & | Wire (WireID const &wireid) const |
Returns the specified wire. More... | |
WireGeo const & | WireIDToWireGeo (WireID const &wireid) const |
Returns the specified wire. More... | |
CryostatGeo const * | CryostatPtr (CryostatID const &cryoid) const |
Returns the specified cryostat. More... | |
CryostatGeo const * | GetElementPtr (CryostatID const &cryoid) const |
Returns the specified cryostat. More... | |
TPCGeo const * | GetElementPtr (TPCID const &tpcid) const |
Returns the specified TPC. More... | |
TPCGeo const * | TPCPtr (TPCID const &tpcid) const |
Returns the specified TPC. More... | |
PlaneGeo const * | GetElementPtr (PlaneID const &planeid) const |
Returns the specified plane. More... | |
PlaneGeo const * | PlanePtr (PlaneID const &planeid) const |
Returns the specified plane. More... | |
WireGeo const * | GetElementPtr (WireID const &wireid) const |
Returns the specified wire. More... | |
WireGeo const * | WirePtr (WireID const &wireid) const |
Returns the specified wire. More... | |
Length_t | CryostatHalfHeight (CryostatID const &cid=cryostat_zero) const |
Returns the height of the cryostat (y direction) More... | |
Length_t | CryostatLength (CryostatID const &cid=cryostat_zero) const |
Returns the length of the cryostat (z direction) More... | |
std::string | GetCryostatVolumeName (CryostatID const &cid) const |
Return the name of LAr TPC volume. More... | |
TPCID | FindTPCAtPosition (Point_t const &point) const |
Returns the ID of the TPC at specified location. More... | |
TPCGeo const & | PositionToTPC (Point_t const &point) const |
Returns the TPC at specified location. More... | |
Length_t | DetHalfWidth (TPCID const &tpcid=tpc_zero) const |
Returns the half width of the active volume of the specified TPC. More... | |
Length_t | DetHalfHeight (TPCID const &tpcid=tpc_zero) const |
Returns the half height of the active volume of the specified TPC. More... | |
Length_t | DetLength (TPCID const &tpcid=tpc_zero) const |
Returns the length of the active volume of the specified TPC. More... | |
Point_t | GetTPCFrontFaceCenter (TPCID const &tpcid) const |
Returns the center of side of the detector facing the beam. More... | |
std::string | GetLArTPCVolumeName (TPCID const &tpcid=tpc_zero) const |
Return the name of specified LAr TPC volume. More... | |
Length_t | PlanePitch (TPCID const &tpcid, PlaneID::PlaneID_t p1=0, PlaneID::PlaneID_t p2=1) const |
Returns the distance between two planes. More... | |
Length_t | PlanePitch (PlaneID const &pid1, PlaneID const &pid2) const |
Returns the distance between two planes. More... | |
double | WireAngleToVertical (View_t view, TPCID const &tpcid) const |
Returns the angle of the wires in the specified view from vertical. More... | |
Wire geometry queries | |
Please note the differences between functions: ChannelsIntersect(), WireIDsIntersect() and IntersectionPoint() all calculate wires intersection using the same equation. ChannelsIntersect() and WireIdsIntersect() will return true if the two wires cross, return false if they don't. IntersectionPoint() does not check if the two wires cross. | |
void | WireEndPoints (WireID const &wireid, double *xyzStart, double *xyzEnd) const |
Fills two arrays with the coordinates of the wire end points. More... | |
Segment< Point_t > | WireEndPoints (WireID const &wireID) const |
Returns a segment whose ends are the wire end points. More... | |
Length_t | WireCoordinate (Point_t const &pos, PlaneID const &planeid) const |
Returns the index of the nearest wire to the specified position. More... | |
bool | WireIDsIntersect (WireID const &wid1, WireID const &wid2, Point_t &intersection) const |
Computes the intersection between two wires. More... | |
bool | WireIDsIntersect (WireID const &wid1, WireID const &wid2, WireIDIntersection &widIntersect) const |
Computes the intersection between two wires. More... | |
double | ThirdPlaneSlope (PlaneID::PlaneID_t plane1, double slope1, PlaneID::PlaneID_t plane2, double slope2, TPCID const &tpcid) const |
Returns the slope on the third plane, given it in the other two. More... | |
Optical detector geometry access and information | |
There are a number of ways to identify an optical detector or channel:
And they all should be better documented! | |
unsigned int | NOpDets () const |
Number of OpDets in the whole detector. More... | |
OpDetGeo const & | OpDetGeoFromOpChannel (unsigned int OpChannel) const |
Returns the geo::OpDetGeo object for the given channel number. More... | |
OpDetGeo const & | OpDetGeoFromOpDet (unsigned int OpDet) const |
Returns the geo::OpDetGeo object for the given detector number. More... | |
unsigned int | GetClosestOpDet (Point_t const &point) const |
Find the nearest OpChannel to some point. More... | |
Auxiliary detectors access and information | |
unsigned int | NAuxDets () const |
Returns the number of auxiliary detectors. More... | |
unsigned int | NAuxDetSensitive (size_t const &aid) const |
Returns the number of sensitive components of auxiliary detector. More... | |
AuxDetGeo const & | AuxDet (unsigned int const ad=0) const |
Returns the specified auxiliary detector. More... | |
unsigned int | FindAuxDetAtPosition (Point_t const &point, double tolerance=0) const |
Returns the index of the auxiliary detector at specified location. More... | |
void | FindAuxDetSensitiveAtPosition (Point_t const &point, std::size_t &adg, std::size_t &sv, double tolerance=0) const |
Fills the indices of the sensitive auxiliary detector at location. More... | |
AuxDetGeo const & | PositionToAuxDet (Point_t const &point, unsigned int &ad, double tolerance=0) const |
Returns the auxiliary detector at specified location. More... | |
const AuxDetSensitiveGeo & | PositionToAuxDetSensitive (Point_t const &point, size_t &ad, size_t &sv, double tolerance=0) const |
Returns the auxiliary detector at specified location. More... | |
const AuxDetGeo & | ChannelToAuxDet (std::string const &auxDetName, uint32_t const &channel) const |
Returns the number of auxiliary detectors. More... | |
const AuxDetSensitiveGeo & | ChannelToAuxDetSensitive (std::string const &auxDetName, uint32_t const &channel) const |
Returns the number of auxiliary detectors. More... | |
TPC readout channels and views | |
unsigned int | Nchannels () const |
Returns the number of TPC readout channels in the detector. More... | |
unsigned int | Nchannels (readout::ROPID const &ropid) const |
Returns the number of channels in the specified ROP. More... | |
std::vector< raw::ChannelID_t > | ChannelsInTPCs () const |
Returns an std::vector<ChannelID_t> in all TPCs in a TPCSet. More... | |
std::set< View_t > const & | Views () const |
Returns a list of possible views in the detector. More... | |
bool | HasChannel (raw::ChannelID_t channel) const |
Returns whether the specified channel exists and is valid. More... | |
raw::ChannelID_t | PlaneWireToChannel (WireID const &wireid) const |
Returns the ID of the TPC channel connected to the specified wire. More... | |
Optical readout channels | |
unsigned int | NOpChannels () const |
Number of electronics channels for all the optical detectors. More... | |
unsigned int | MaxOpChannel () const |
Largest optical channel number. More... | |
unsigned int | NOpHardwareChannels (int opDet) const |
Number of electronics channels for all the optical detectors. More... | |
bool | IsValidOpChannel (int opChannel) const |
Is this a valid OpChannel number? More... | |
unsigned int | OpChannel (int detNum, int hardwareChannel) const |
Convert detector number and hardware channel to unique channel. More... | |
unsigned int | OpDetFromOpChannel (int opChannel) const |
Convert unique channel to detector number. More... | |
unsigned int | HardwareChannelFromOpChannel (int opChannel) const |
Convert unique channel to hardware channel. More... | |
unsigned int | OpDetFromCryo (unsigned int o, unsigned int c) const |
Get unique opdet number from cryo and internal count. More... | |
Geometry initialization | |
void | LoadGeometryFile (std::string gdmlfile, std::string rootfile, GeometryBuilder &builder, bool bForceReload=false) |
Loads the geometry information from the specified files. More... | |
void | LoadGeometryFile (std::string gdmlfile, std::string rootfile, bool bForceReload=false) |
Loads the geometry information from the specified files. More... | |
void | ApplyChannelMap (std::unique_ptr< ChannelMapAlg > pChannelMap) |
Initializes the geometry to work with this channel map. More... | |
Static Public Member Functions | |
static double | ComputeThirdPlaneSlope (double angle1, double slope1, double angle2, double slope2, double angle_target) |
Returns the slope on the third plane, given it in the other two. More... | |
static double | ComputeThirdPlane_dTdW (double angle1, double pitch1, double dTdW1, double angle2, double pitch2, double dTdW2, double angle_target, double pitch_target) |
Returns the slope on the third plane, given it in the other two. More... | |
Static Public Attributes | |
static constexpr std::size_t | MaxWireDepthInGDML = 20U |
Private Member Functions | |
void | preBeginRun (art::Run const &run) |
Updates the geometry if needed at the beginning of each new run. More... | |
void | LoadNewGeometry (std::string gdmlfile, std::string rootfile, bool bForceReload=false) |
Expands the provided paths and loads the geometry description(s) More... | |
void | InitializeChannelMap () |
Private Attributes | |
std::string | fRelPath |
bool | fDisableWiresInG4 |
bool | fNonFatalConfCheck |
fhicl::ParameterSet | fSortingParameters |
Parameter set to define the channel map sorting. More... | |
fhicl::ParameterSet | fBuilderParameters |
Parameter set for geometry builder. More... | |
sumdata::GeometryConfigurationInfo | fConfInfo |
Summary of service configuration. More... | |
Configuration information checks | |
void | FillGeometryConfigurationInfo (fhicl::ParameterSet const &config) |
Fills the service configuration information into fConfInfo . More... | |
bool | CheckConfigurationInfo (sumdata::GeometryConfigurationInfo const &other) const |
Returns if the other configuration is compatible with our current. More... | |
static sumdata::GeometryConfigurationInfo const & | ReadConfigurationInfo (art::Run const &run) |
Reads and returns the geometry configuration information from the run. More... | |
static bool | CompareConfigurationInfo (sumdata::GeometryConfigurationInfo const &A, sumdata::GeometryConfigurationInfo const &B) |
Returns if A and B are compatible geometry service configurations. More... | |
CryostatGeo const & | Cryostat (CryostatID const &cryoid=cryostat_zero) const |
Returns the specified cryostat. More... | |
CryostatGeo const & | GetElement (CryostatID const &cryoid) const |
Returns the specified cryostat. More... | |
static constexpr CryostatID | cryostat_zero {0} |
Returns the specified cryostat. More... | |
TPCGeo const & | GetElement (TPCID const &tpcid) const |
Returns the specified TPC. More... | |
TPCGeo const & | TPC (TPCID const &tpcid=tpc_zero) const |
Returns the specified TPC. More... | |
static constexpr TPCID | tpc_zero {cryostat_zero, 0} |
Returns the specified TPC. More... | |
Length_t | WirePitch (PlaneID const &planeid=plane_zero) const |
Returns the distance between two consecutive wires. More... | |
static constexpr PlaneID | plane_zero {tpc_zero, 0} |
Returns the distance between two consecutive wires. More... | |
The geometry of one entire detector, as served by art.
This class extends the interface of the geometry service provider, GeometryCore, to the one of an art service. It handles the correct initialization of the provider using information
It relies on geo::ExptGeoHelperInterface service to obtain the channel mapping algorithm proper for the selected geometry.
The geometry initialization happens immediately on construction. Optionally, the geometry is automatically reinitialized on each run based on the information contained in the art::Run object.
In addition to the parameters documented in geo::GeometryCore, the following parameters are supported:
RelativePath
path and the base name specified in GDML
parameter; this path is searched for in the directories configured in the FW_SEARCH_PATH
environment variable;GDML
parameter, whose value is used instead; this path is assembled in the same way as the one for GDML
parameter, except that no alternative (wireless) geometry is used even if DisableWiresInG4
is specified (see below); this file is used to load the geometry used in the internal simulation and reconstruction, basically everywhere except for the Geant4 simulationfalse
): if set to true
, failure of configuration consistency check described below is not fatal and it will just produce a warning on each failure;geo::ChannelMapAlg
geo::GeometryBuilderStandard
) with standard configuration will be used; if specified, currently the standard builder is nevertheless used; this interface can be "toolized", in which case this parameter set will select and configure the chosen tool.GDML
parameter is also served to ROOT for the internal geometry representation.The Geometry
service checks that the input files were processed with a configuration of Geometry
service compatible with the current one.
Two checks may be performed: the standard check, and a legacy check.
The Geometry
service checks at the beginning of each run that the current configuration is compatible with the geometry configuration declared in the input file. The Geometry
service requires that an additional service, GeometryConfigurationWriter
, is run: this service is charged with writing the configuration information into the output files, for the checks in the future job.
The compatibility check is currently very silly, but it can improved in future versions. This check is the same as the legacy check, that verifies that the configured detector name (geo::GeometryCore::DetectorName()
) has not changed.
To allow this check to operate correctly, the only requirement is that the service GeometryConfigurationWriter
be included in the job:
This must happen on the first job in the processing chain that configures Geometry
service. It is irrelevant, but not harmful, in the jobs that follow.
This section describes the full design of the check from a technical point of view. Users do not need to understand the mechanisms of this check in order to configure their jobs to successfully pass it.
The check happens based on the data contained in the sumdata::GeometryConfigurationInfo
data product. Starting from after the construction is complete, geo::Geometry
is able to provide at any time an instance of sumdata::GeometryConfigurationInfo
describing the geometry configuration for this job, whether the geometry is already configured or not.
The Geometry
service loads the geometry at the beginning of the job. At the start of each run from the input file, the Geometry
service reads a configuration information sumdata::GeometryConfigurationInfo
from the art::Run
record and verifies that it is compatible with the current configuration. It is a fatal error for this information not to be available in art::Run
, and it is a fatal check failure if the available information is not compatible with the current configuration.
The sumdata::GeometryConfigurationInfo
information is put into art::Run
record by the geo::GeometryConfigurationWriter
producing service. This service verifies whether there is already such information in the run. If no information is available yet in art::Run
, the service obtains the current configuration information from the Geometry
service, and then puts it into the art::Run
record. The art framework guarantees that this happens before the Geometry
service itself is notified by art of the start of the new run. If some geo::GeometryConfigurationWriter
information is already in the run record, geo::GeometryConfigurationWriter
replicates it again. As legacy check, if there is no information in the sumdata::GeometryConfigurationInfo
form but there is a sumdata::RunData
data product, the latter is used as a base for the check.
Design notes:
art::Run
is driven by the fact that the run is the highest available container; job-level data products (art::Results
) behave very differently from the others and are not currently interfaced with a producing service;sumdata::GeometryConfigurationInfo
should be compact enough not to bloat the data files with very few events per run, as it may be for the selection of rare processes or signatures. Definition at line 181 of file Geometry.h.
|
inherited |
Type of list of auxiliary detectors.
Definition at line 141 of file GeometryCore.h.
|
inherited |
Type of list of cryostats.
Definition at line 139 of file GeometryCore.h.
type of service provider
Definition at line 183 of file Geometry.h.
|
inherited |
Definition at line 136 of file GeometryCore.h.
geo::Geometry::Geometry | ( | fhicl::ParameterSet const & | pset, |
art::ActivityRegistry & | reg | ||
) |
Definition at line 42 of file Geometry.cc.
References art::errors::Configuration, FillGeometryConfigurationInfo(), fRelPath, fhicl::ParameterSet::get(), fhicl::ParameterSet::has_key(), LoadNewGeometry(), preBeginRun(), and art::ActivityRegistry::sPreBeginRun.
|
inherited |
Initializes the geometry to work with this channel map.
pChannelMap | a pointer to the channel mapping algorithm to be used |
The specified channel mapping is used with this geometry. These modifications typically involve some resorting of the objects.
This method needs to be called after LoadGeometryFile() to complete the geometry initialization.
Definition at line 84 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg, geo::GeometryCore::fGeoData, geo::GeometryCore::SortGeometry(), and geo::GeometryCore::UpdateAfterSorting().
Referenced by geo::GeometryCore::GetEndROPID(), and InitializeChannelMap().
|
inherited |
Returns the specified auxiliary detector.
ad | the auxiliary detector index |
what happens if it does not exist?
remove the default parameter?
Definition at line 318 of file GeometryCore.cxx.
References geo::GeometryCore::AuxDets(), and geo::GeometryCore::NAuxDets().
Referenced by geo::GeometryCore::ChannelToAuxDet(), geo::GeometryCore::ChannelToAuxDetSensitive(), geo::GeometryCore::NAuxDets(), geo::GeometryCore::PositionToAuxDet(), geo::GeometryCore::PositionToAuxDetSensitive(), geo::GeometryCore::Print(), and larg4::LArG4::produce().
|
inlineinherited |
Initializes the specified ID with the ID of the first cryostat.
Definition at line 529 of file GeometryCore.h.
References geo::details::IteratorMaker< T, typename >::create_begin().
Referenced by geo::GeometryCore::TotalNTPC().
|
inlineinherited |
Initializes the specified ID with the ID of the first cryostat.
Definition at line 547 of file GeometryCore.h.
References geo::details::IteratorMaker< T, typename >::create_begin().
|
inherited |
Returns an intersection point of two channels.
c1 | one channel ID |
c2 | the other channel ID |
y | (output) y coordinate of the intersection |
z | (output) z coordinate of the intersection |
what happens for channels from different TPCs?
what happens for channels with multiple intersection points?
Definition at line 1157 of file GeometryCore.cxx.
References util::abs(), geo::GeometryCore::ChannelToWire(), geo::vect::cross(), geo::GeometryCore::Segment< Point >::end(), geo::WireGeo::HalfL(), geo::IntersectLines(), geo::TPCID::InvalidID, geo::IntersectionPointAndOffsets< Point >::offset1, geo::IntersectionPointAndOffsets< Point >::offset2, geo::IntersectionPointAndOffsets< Point >::point, lar::util::PointWithinSegments(), geo::GeometryCore::Segment< Point >::start(), geo::TPCID::TPC, geo::WireIDIntersection::TPC, geo::GeometryCore::Wire(), geo::GeometryCore::WireEndPoints(), geo::GeometryCore::WireIDIntersectionCheck(), geo::GeometryCore::WireIDsIntersect(), geo::WiresIntersectionAndOffsets(), geo::WireIDIntersection::y, and geo::WireIDIntersection::z.
Referenced by vertex::FeatureVertexFinder::Find3dVtxFrom2dClusterVtxCand(), evd::TWQMultiTPCProjectionView::FindEndPoint(), evd::TWQMultiTPCProjectionView::FindLineLength(), vertex::FeatureVertexFinder::Get3dVertexCandidates(), util::GeometryUtilities::GetProjectedPoint(), util::GeometryUtilities::GetYZ(), vertex::VertexFinder2D::produce(), and geo::GeometryCore::Views().
|
inherited |
Returns an std::vector<ChannelID_t> in all TPCs in a TPCSet.
Definition at line 210 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by geo::GeometryCore::NAuxDets().
|
inherited |
Returns the number of auxiliary detectors.
This method returns the total number of scintillator paddles (Auxiliary Detectors aka AuxDet) outside of the cryostat
Definition at line 447 of file GeometryCore.cxx.
References geo::GeometryCore::AuxDet(), geo::GeometryCore::AuxDets(), and geo::GeometryCore::fChannelMapAlg.
Referenced by geo::GeometryCore::NAuxDets().
|
inherited |
Returns the number of auxiliary detectors.
This method returns the total number of scintillator paddles (Auxiliary Detectors aka AuxDet) outside of the cryostat
Definition at line 455 of file GeometryCore.cxx.
References geo::GeometryCore::AuxDet(), geo::GeometryCore::AuxDets(), geo::GeometryCore::fChannelMapAlg, and geo::AuxDetGeo::SensitiveVolume().
Referenced by geo::GeometryCore::NAuxDets().
|
inherited |
Returns the ID of the ROP the channel belongs to
cet::exception | (category: "Geometry") if non-existent channel |
Definition at line 1087 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by reco3d::TripletFinder::FillBadMap(), reco3d::TripletFinder::FillHitMap(), geo::GeometryCore::View(), and geo::GeometryCore::Views().
|
inherited |
Returns a list of wires connected to the specified TPC channel.
channel | TPC channel ID |
cet::exception | (category: "Geometry") if non-existent channel |
Definition at line 1081 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by hit::MCHitAnaExample::analyze(), MCBTDemo::analyze(), detsim::WienerFilterAna::analyze(), apa::APAGeometryAlg::APAChannelsIntersect(), lar_cluster3d::StandardHit3DBuilder::BuildChannelStatusVec(), lar_cluster3d::SnippetHit3DBuilder::BuildChannelStatusVec(), geo::GeometryCore::ChannelsIntersect(), apa::APAGeometryAlg::ChanSegsPerSide(), lar_cluster3d::StandardHit3DBuilder::CollectArtHits(), lar_cluster3d::SnippetHit3DBuilder::CollectArtHits(), apa::DisambigAlg::CompareViews(), lar_cluster3d::MinSpanTreeAlg::configure(), reco3d::TripletFinder::FillHitMap(), evd::RawDataDrawer::FillQHisto(), evd::RecoBaseDrawer::FillQHisto(), lar_pandora::PFParticleHitDumper::FillRecoWires(), evd::RecoBaseDrawer::FillTQHisto(), evd::RecoBaseDrawer::FillTQHistoDP(), reco_tool::CandHitStandard::findHitCandidates(), reco_tool::CandHitDerivative::findHitCandidates(), reco_tool::CandHitMorphological::findHitCandidates(), hit::HitCheater::FindHitsOnChannel(), evd::RecoBaseDrawer::GetHits(), lcvn::WireHelper::GetID(), lcvn::SimChannelHelper::GetID(), cluster::SmallClusterFinderAlg::GetPlaneAndTPC(), corner::CornerFinderAlg::GrabWires(), evd::RecoBaseDrawer::Hit2D(), lar_cluster3d::SpacePointHit3DBuilder::Hit3DBuilder(), apa::APAGeometryAlg::Init(), hit::DisambigCheater::InitHitToWids(), reco3d::IntersectionCache::ISect(), apa::APAGeometryAlg::LineSegChanIntersect(), apa::DisambigAlg::MakeCloseHits(), sim::MCRecoEdep::MakeMCEdep(), apa::APAGeometryAlg::NearestWireIDOnChan(), btutil::MCBTAlg::ProcessSimChannel(), hit::TTHitFinder::produce(), hit::RawHitFinder::produce(), hit::FFTHitFinder::produce(), hit::GausHitFinder::produce(), hit::DPRawHitFinder::produce(), evd::RawDataDrawer::RawDigit2D(), hit::RFFHitFinderAlg::Run(), hit::CCHitFinderAlg::RunCCHitFinder(), evd::RawDataDrawer::RunOperation(), dnn::SavePiMu::saveImage(), img::DataProviderAlg::setWireDriftData(), apa::APAGeometryAlg::ThreeChanPos(), apa::DisambigAlg::TrivialDisambig(), geo::GeometryCore::Views(), and evd::RecoBaseDrawer::Wire2D().
|
private |
Returns if the other
configuration is compatible with our current.
Definition at line 183 of file Geometry.cc.
References CompareConfigurationInfo(), fConfInfo, MF_LOG_DEBUG, and fhicl::other.
Referenced by preBeginRun().
|
staticprivate |
Returns if A
and B
are compatible geometry service configurations.
Definition at line 210 of file Geometry.cc.
References sumdata::GeometryConfigurationInfo::dataVersion, sumdata::GeometryConfigurationInfo::detectorName, and sumdata::GeometryConfigurationInfo::isDataValid().
Referenced by CheckConfigurationInfo().
|
staticinherited |
Returns the slope on the third plane, given it in the other two.
angle1 | angle or the wires on the first plane |
pitch1 | wire pitch on the first plane |
dTdW1 | slope in dt/dw units as observed on the first plane |
angle2 | angle or the wires on the second plane |
pitch2 | wire pitch on the second plane |
dTdW2 | slope in dt/dw units as observed on the second plane |
angle_target | angle or the wires on the target plane |
pitch_target | wire pitch on the target plane |
The input slope must be specified in dt/dw non-homogeneous coordinates.
This function will return a small slope if both input slopes are small.
Definition at line 1424 of file GeometryCore.cxx.
References geo::GeometryCore::ComputeThirdPlaneSlope().
Referenced by geo::GeometryCore::ThirdPlane_dTdW(), and geo::GeometryCore::ThirdPlaneSlope().
|
staticinherited |
Returns the slope on the third plane, given it in the other two.
angle1 | angle or the wires on the first plane |
slope1 | slope as observed on the first plane |
angle2 | angle or the wires on the second plane |
slope2 | slope as observed on the second plane |
angle_target | angle or the wires on the target plane |
This function will return a small slope if both input slopes are small.
Definition at line 1396 of file GeometryCore.cxx.
References util::abs().
Referenced by geo::GeometryCore::ComputeThirdPlane_dTdW(), and geo::GeometryCore::ThirdPlaneSlope().
|
inline |
Returns the current geometry configuration information.
Definition at line 191 of file Geometry.h.
References fhicl::other.
|
inherited |
Returns the specified cryostat.
cstat | number of cryostat |
cryoid | cryostat ID |
cet::exception | (GeometryCore category) if cryostat not present |
The GetElement() method is overloaded and its return depends on the type of ID.
Definition at line 303 of file GeometryCore.cxx.
References geo::CryostatID::Cryostat, and geo::GeometryCore::CryostatPtr().
Referenced by phot::PDFastSimANN::beginJob(), opdet::SimPhotonCounter::beginJob(), evgen::PhotonGen::beginRun(), larg4::LArVoxelReadoutGeometry::Construct(), ems::MultiEMShowers::convCluster(), geo::GeometryCore::CryostatHalfHeight(), geo::GeometryCore::CryostatHalfWidth(), geo::GeometryCore::CryostatLength(), detinfo::DetectorPropertiesStandard::DataFor(), cosmic::BeamFlashTrackMatchTaggerAlg::FillFlashProperties(), opdet::FlashHypothesisAnaAlg::FillOpDetPositions(), geo::GeometryCore::GetCryostatVolumeName(), geo::GeometryCore::GetElement(), ems::EMShower3D::LinkCandidates(), trkf::SpacePointAlg::makeSpacePoints(), geo::GeometryCore::NOpDets(), geo::GeometryCore::OpDetFromCryo(), geo::GeometryCore::OpDetGeoFromOpDet(), geo::GeometryCore::OpDetGeoName(), larg4::LArG4::produce(), phot::PhotonVisibilityService::reconfigure(), and geo::GeometryCore::TPC().
|
inherited |
Returns the height of the cryostat (y direction)
Definition at line 706 of file GeometryCore.cxx.
References geo::GeometryCore::Cryostat(), and geo::CryostatGeo::HalfHeight().
Referenced by simfilter::FilterNoDirtNeutrinos::filter(), geo::GeometryCore::Iterate(), and evgen::FileMuons::ReadEvents().
|
inherited |
Returns the half width of the cryostat (x direction)
Definition at line 700 of file GeometryCore.cxx.
References geo::GeometryCore::Cryostat(), and geo::CryostatGeo::HalfWidth().
Referenced by simfilter::FilterNoDirtNeutrinos::filter(), geo::GeometryCore::Iterate(), and evgen::FileMuons::ReadEvents().
|
inherited |
Returns the length of the cryostat (z direction)
Definition at line 712 of file GeometryCore.cxx.
References geo::GeometryCore::Cryostat(), and geo::CryostatGeo::Length().
Referenced by geo::GeometryCore::Iterate(), and evgen::FileMuons::ReadEvents().
|
inlineinherited |
Returns the specified cryostat.
cryoid | cryostat ID |
The GetElementPtr() method is overloaded and its return depends on the type of ID.
Definition at line 477 of file GeometryCore.h.
References geo::CryostatID::Cryostat, geo::GeometryCore::Cryostats(), and geo::GeometryCore::HasCryostat().
Referenced by geo::GeometryCore::Cryostat(), geo::GeometryCore::GetElementPtr(), geo::GeometryCore::GetEndPlaneID(), geo::GeometryCore::GetEndTPCID(), geo::GeometryCore::GetEndWireID(), geo::GeometryCore::HasTPC(), and geo::GeometryCore::TPCPtr().
|
inlineinherited |
Returns the tolerance used in looking for positions.
This parameter is used as tolerance ("wiggle") for methods that require it (e.g. geo::CryostatGeo::FindTPCAtPosition()
). Typically, it's a additional fraction of tolerance: 0 means no tolerance, 0.1 means 10% tolerance.
Definition at line 175 of file GeometryCore.h.
References geo::GeometryCore::fPositionWiggle.
|
inherited |
Returns the absolute coordinates of the detector enclosure volume [cm].
name | name of the volume to be sought (default: volDetEnclosure ) |
cet::exception | if the specified volume is not found |
Definition at line 509 of file GeometryCore.cxx.
References geo::GeometryCore::FindDetectorEnclosure(), and geo::LocalTransformation< StoredMatrix >::LocalToWorld().
Referenced by geo::GeometryCore::Print(), and geo::GeometryCore::SurfaceY().
|
inlineinherited |
Returns a string with the name of the detector, as configured.
Definition at line 203 of file GeometryCore.h.
References geo::GeometryCore::fDetectorName, geo::GeometryCore::WorldBox(), and geo::GeometryCore::WorldVolume().
Referenced by evgen::SNNueAr40CCGen::beginRun(), evgen::CosmicsGen::beginRun(), evgen::FileMuons::beginRun(), evgen::PhotonGen::beginRun(), evgen::NDKGen::beginRun(), evgen::NucleonDecay::beginRun(), evgen::GaisserParam::beginRun(), evgen::MarleyGen::beginRun(), evgen::NeutronOsc::beginRun(), evgen::TextFileGen::beginRun(), evgen::GENIEGen::beginRun(), evgen::LightSource::beginRun(), evgen::MUSUN::beginRun(), evgen::RadioGen::beginRun(), evgen::MarleyTimeGen::beginRun(), evgen::CORSIKAGen::beginRun(), evgen::SingleGen::beginRun(), geo::DumpGeometry::dump(), FillGeometryConfigurationInfo(), InitializeChannelMap(), geo::GeometryCore::Print(), wc::CellTree::processSpacePoint(), wc::CellTree::processSpacePointTruthDepo(), and geo::DumpGeometry::shouldDumpGeometry().
Returns the half height of the active volume of the specified TPC.
tpcid | ID of the TPC |
tpc | TPC number within the cryostat |
cstat | number of cryostat |
cet::exception | (GeometryCore category) if cryostat not present |
cet::exception | (TPCOutOfRange category) if no such TPC |
See geo::TPCGeo::ActiveHalfHeight()
for more details.
deprecate this function
rename the function
Definition at line 688 of file GeometryCore.cxx.
References geo::TPCGeo::ActiveHalfHeight(), and geo::GeometryCore::TPC().
Referenced by lar::example::AnalysisExample::analyze(), evgen::NDKGen::beginJob(), evgen::GENIEGen::beginJob(), trkf::SpacePointAna::bookHistograms(), LArStackingAction::ClassifyNewTrack(), cosmic::CosmicPCAxisTagger::CosmicPCAxisTagger(), evd_tool::MicroBooNEDrawer::DetOutline3D(), evd::Display3DPad::Draw(), lar_pandora::PFParticleCosmicAna::FillRecoTree(), simfilter::FilterNoDirtNeutrinos::filter(), util::GeometryUtilities::Get2DangleFrom3D(), geo::GeometryCore::GetBeginTPCID(), trk::TrackContainmentAlg::GetCosmicTagID(), cosmic::BeamFlashTrackMatchTaggerAlg::InDetector(), trk::TrackContainmentAlg::IsContained(), trkf::SeedAna::MCHists::MCHists(), trkf::TrackAna::MCHists::MCHists(), trk::TrackContainmentAlg::ProcessTracks(), trkf::SpacePts::produce(), trkf::Track3Dreco::produce(), vertex::VertexFinder2D::produce(), trkf::Track3DKalmanSPS::produce(), trkf::SeedAna::RecoHists::RecoHists(), and trkf::TrackAna::RecoHists::RecoHists().
Returns the half width of the active volume of the specified TPC.
tpcid | ID of the TPC |
tpc | TPC number within the cryostat |
cstat | number of cryostat |
cet::exception | (GeometryCore category) if cryostat not present |
cet::exception | (TPCOutOfRange category) if no such TPC |
deprecate this function
rename the function
Definition at line 682 of file GeometryCore.cxx.
References geo::TPCGeo::ActiveHalfWidth(), and geo::GeometryCore::TPC().
Referenced by lar::example::AnalysisExample::analyze(), evgen::NDKGen::beginJob(), evgen::GENIEGen::beginJob(), trkf::SpacePointAna::bookHistograms(), LArStackingAction::ClassifyNewTrack(), cosmic::CosmicPCAxisTagger::CosmicPCAxisTagger(), evd_tool::MicroBooNEDrawer::DetOutline3D(), evd::Display3DPad::Draw(), lar_pandora::PFParticleCosmicAna::FillRecoTree(), simfilter::FilterNoDirtNeutrinos::filter(), util::GeometryUtilities::Get2DangleFrom3D(), geo::GeometryCore::GetBeginTPCID(), trk::TrackContainmentAlg::GetCosmicTagID(), cosmic::BeamFlashTrackMatchTaggerAlg::InDetector(), cosmic::BeamFlashTrackMatchTaggerAlg::InDriftWindow(), trk::TrackContainmentAlg::IsContained(), trkf::SeedAna::MCHists::MCHists(), trkf::TrackAna::MCHists::MCHists(), trkf::CCTrackMaker::PlnMatch(), trk::TrackContainmentAlg::ProcessTracks(), trkf::Track3DKalmanSPS::produce(), trkf::SeedAna::RecoHists::RecoHists(), and trkf::TrackAna::RecoHists::RecoHists().
Returns the length of the active volume of the specified TPC.
tpcid | ID of the TPC |
tpc | TPC number within the cryostat |
cstat | number of cryostat |
cet::exception | (GeometryCore category) if cryostat not present |
cet::exception | (TPCOutOfRange category) if no such TPC |
See geo::TPCGeo::ActiveLength()
for more details.
deprecate this function
rename the function
Definition at line 694 of file GeometryCore.cxx.
References geo::TPCGeo::ActiveLength(), and geo::GeometryCore::TPC().
Referenced by lar::example::AnalysisExample::analyze(), evgen::NDKGen::beginJob(), evgen::GENIEGen::beginJob(), trkf::SpacePointAna::bookHistograms(), LArStackingAction::ClassifyNewTrack(), cosmic::CosmicPCAxisTagger::CosmicPCAxisTagger(), evd_tool::MicroBooNEDrawer::DetOutline3D(), evd::Display3DPad::Draw(), lar_pandora::PFParticleCosmicAna::FillRecoTree(), simfilter::FilterNoDirtNeutrinos::filter(), util::GeometryUtilities::Get2DangleFrom3D(), geo::GeometryCore::GetBeginTPCID(), trk::TrackContainmentAlg::GetCosmicTagID(), cosmic::BeamFlashTrackMatchTaggerAlg::InDetector(), trk::TrackContainmentAlg::IsContained(), trkf::SeedAna::MCHists::MCHists(), trkf::TrackAna::MCHists::MCHists(), lar_cluster3d::StandardHit3DBuilder::NearestWireID(), lar_cluster3d::SnippetHit3DBuilder::NearestWireID(), trkf::CCTrackMaker::PlnMatch(), trk::TrackContainmentAlg::ProcessTracks(), evgen::CosmicsGen::produce(), trkf::Track3DKalmanSPS::produce(), trkf::SeedAna::RecoHists::RecoHists(), and trkf::TrackAna::RecoHists::RecoHists().
|
inlineinherited |
Initializes the specified ID with the ID of the first cryostat.
Definition at line 535 of file GeometryCore.h.
References geo::details::IteratorMaker< T, typename >::create_end().
Referenced by geo::GeometryCore::TotalNTPC().
|
inlineinherited |
Initializes the specified ID with the ID of the first cryostat.
Definition at line 553 of file GeometryCore.h.
References geo::details::IteratorMaker< T, typename >::create_end().
|
private |
Fills the service configuration information into fConfInfo
.
Definition at line 165 of file Geometry.cc.
References sumdata::GeometryConfigurationInfo::dataVersion, sumdata::GeometryConfigurationInfo::detectorName, geo::GeometryCore::DetectorName(), fConfInfo, sumdata::GeometryConfigurationInfo::geometryServiceConfiguration, MF_LOG_TRACE, and fhicl::ParameterSet::to_indented_string().
Referenced by Geometry().
|
inherited |
Returns paths of all nodes with volumes with the specified names.
vol_names | list of names of volumes |
All the nodes in the geometry are checked, and the path of all the ones that contain a volume with a name among the ones specified in vol_names is saved in the collection and returned. A node path is a ordered list of all nodes leading to the final one, starting from thetop level (root) down. The node at the back()
of the path is the one with name in vol_names. No empty paths are returned.
Definition at line 654 of file GeometryCore.cxx.
References geo::CollectPathsByName::paths, and geo::GeometryCore::ROOTGeoManager().
Referenced by geo::GeometryCore::SurfaceY().
|
inherited |
Returns all the nodes with volumes with any of the specified names.
vol_names | list of names of volumes |
All the nodes in the geometry are checked, and all the ones that contain a volume with a name among the ones specified in vol_names are saved in the collection and returned.
Definition at line 637 of file GeometryCore.cxx.
References geo::CollectNodesByName::nodes, and geo::GeometryCore::ROOTGeoManager().
Referenced by geo::GeometryCore::SurfaceY().
|
inherited |
Returns the index of the auxiliary detector at specified location.
point | location to be tested |
tolerance | tolerance (cm) for matches. Default 0 |
std::numeric_limits<unsigned int>::max()
if no detector is thereDefinition at line 410 of file GeometryCore.cxx.
References geo::GeometryCore::AuxDets(), and geo::GeometryCore::fChannelMapAlg.
Referenced by geo::GeometryCore::FindAuxDetSensitiveAtPosition(), geo::GeometryCore::NAuxDets(), and geo::GeometryCore::PositionToAuxDet().
|
inherited |
Fills the indices of the sensitive auxiliary detector at location.
point | location to be tested |
adg | _(output)_ auxiliary detector index |
sv | _(output)_ sensitive volume index |
tolerance | tolerance (cm) for matches. Default 0. |
Definition at line 426 of file GeometryCore.cxx.
References geo::GeometryCore::AuxDets(), geo::GeometryCore::fChannelMapAlg, and geo::GeometryCore::FindAuxDetAtPosition().
Referenced by larg4::AuxDetReadoutGeometry::FindAndMakeAuxDetSensitive(), sim::GenericCRTUtility::GetAuxDetSimChannelByNumber(), geo::GeometryCore::NAuxDets(), and geo::GeometryCore::PositionToAuxDetSensitive().
Returns the ID of the TPC at specified location.
worldLoc | 3D point (world reference frame, centimeters) |
Definition at line 326 of file GeometryCore.cxx.
References geo::CryostatID::Cryostat, geo::GeometryCore::fPositionWiggle, geo::CryostatGeo::ID(), geo::CryostatID::markInvalid(), geo::GeometryCore::PositionToCryostatPtr(), and geo::CryostatGeo::PositionToTPCID().
Referenced by trkf::TrajectoryMCSFitter::breakTrajInSegments(), pma::ProjectionMatchingAlg::buildShowerSeg(), ShowerRecoTools::ShowerUnidirectiondEdx::CalculateElement(), ShowerRecoTools::ShowerTrajPointdEdx::CalculateElement(), ems::MultiEMShowers::convCluster(), evd::RecoBaseDrawer::DrawTrack2D(), hit::HitCheater::FindHitsOnChannel(), shower::EMShowerAlg::FindInitialTrackHits(), geo::GeometryCore::FindTPCsetAtPosition(), geo::GeometryCore::GetElementPtr(), opdet::GetHitGeometryInfo(), nnet::TrainingDataAlg::getProjection(), lar_pandora::LArPandoraInput::GetTrueStartAndEndPoints(), hit::DisambigCheater::InitHitToWids(), trkf::TrajectoryMCSFitter::linearRegression(), evd::SimulationDrawer::MCTruthOrtho(), shower::EMShowerAlg::OrderShowerHits_(), calo::Calorimetry::produce(), shower::EMShowerAlg::Project3DPointOntoPlane_(), filt::LArG4ParticleFilter::StartInTPCCheck(), filt::LArG4ParticleFilter::StopInTPCCheck(), filt::LArG4ParticleFilter::TPCTrajLengthCheck(), DUNE::NeutrinoTrackingEff::truthLength(), and DUNE::MuonTrackingEff::truthLength().
|
inherited |
Returns the ID of the TPC set at specified location.
worldLoc | 3D coordinates of the point (world reference frame) |
Definition at line 1485 of file GeometryCore.cxx.
References geo::GeometryCore::FindTPCAtPosition(), and geo::GeometryCore::TPCtoTPCset().
Referenced by geo::GeometryCore::HasElement().
|
inherited |
Returns the ID of the first channel in the specified readout plane.
ropid | ID of the readout plane |
Note that this check is performed on the validity of the readout plane ID, that does not necessarily imply that the readout plane specified by the ID actually exists. Check if the ROP exists with HasROP(). The behaviour for non-existing readout planes is undefined.
Definition at line 1542 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by geo::GeometryCore::HasElement().
|
inlineinherited |
Returns the full directory path to the GDML file source.
This is the full path of the source of the detector geometry handed to the detector simulation (GEANT).
Definition at line 193 of file GeometryCore.h.
References geo::GeometryCore::fGDMLfile.
Referenced by larg4::LArG4::beginJob().
|
inlineinherited |
Returns the ID of the first element of the detector.
GeoID | type of the ID to be returned |
Definition at line 357 of file GeometryCore.h.
Referenced by geo::GeometryCore::GetBeginID(), and geo::GeometryCore::GetEndID().
|
inherited |
Returns the ID of the first subelement of the specified element.
GeoID | type of the ID to be returned |
ContextID | type of the ID of the containing element |
id | ID of the containing element |
|
inlineinherited |
Initializes the specified ID with the ID of the first cryostat.
Definition at line 518 of file GeometryCore.h.
References geo::GeometryCore::HasCryostat().
|
inlineinherited |
Initializes the specified ID with the ID of the first TPC.
iterators
Definition at line 782 of file GeometryCore.h.
References geo::GeometryCore::GetBeginID(), geo::GeometryCore::GetEndID(), and geo::GeometryCore::IncrementID().
|
inlineinherited |
Initializes the specified ID with the ID of the first plane.
Definition at line 1060 of file GeometryCore.h.
References geo::GeometryCore::GetBeginID(), geo::GeometryCore::GetEndID(), and geo::GeometryCore::IncrementID().
|
inlineinherited |
Initializes the specified ID with the ID of the first wire.
Definition at line 1220 of file GeometryCore.h.
References geo::GeometryCore::GetBeginID(), geo::GeometryCore::GetEndID(), and geo::GeometryCore::IncrementID().
|
inlineinherited |
Initializes the specified ID with the ID of the first TPC set.
iterators
Definition at line 2091 of file GeometryCore.h.
References geo::GeometryCore::GetBeginID().
|
inlineinherited |
Initializes the specified ID with the ID of the first readout plane.
iterators
Definition at line 2256 of file GeometryCore.h.
References geo::GeometryCore::GetBeginID().
|
inlineinherited |
Definition at line 2549 of file GeometryCore.h.
References geo::GeometryCore::GetBeginTPCID().
|
inlineinherited |
Definition at line 2562 of file GeometryCore.h.
References geo::GeometryCore::GetBeginPlaneID().
Definition at line 2568 of file GeometryCore.h.
References geo::GeometryCore::GetBeginPlaneID().
|
inlineinherited |
Definition at line 2587 of file GeometryCore.h.
References geo::GeometryCore::GetBeginWireID().
Definition at line 2593 of file GeometryCore.h.
References geo::GeometryCore::GetBeginWireID().
Definition at line 2599 of file GeometryCore.h.
References geo::GeometryCore::GetBeginWireID().
|
inlineinherited |
Returns the ID of the first plane of the specified cryostat.
Definition at line 1074 of file GeometryCore.h.
References geo::GeometryCore::GetBeginTPCID(), and geo::GeometryCore::GetEndPlaneID().
Referenced by geo::GeometryCore::GetBeginID(), geo::GeometryCore::GetBeginWireID(), and geo::GeometryCore::GetEndPlaneID().
Returns the ID of the first plane of the specified TPC.
Definition at line 1081 of file GeometryCore.h.
References geo::GeometryCore::GetEndPlaneID(), geo::GeometryCore::PlanePitch(), geo::GeometryCore::SignalType(), and geo::GeometryCore::View().
|
inlineinherited |
Returns the ID of the first readout plane of the specified cryostat.
Definition at line 2274 of file GeometryCore.h.
References geo::GeometryCore::GetBeginTPCsetID().
Referenced by geo::GeometryCore::GetBeginID< readout::ROPID, CryostatID >(), and geo::GeometryCore::GetBeginID< readout::ROPID, readout::TPCsetID >().
|
inlineinherited |
Returns the ID of the first readout plane of the specified TPC set.
Definition at line 2281 of file GeometryCore.h.
|
inlineinherited |
Returns the ID of the first TPC in the specified cryostat.
Definition at line 796 of file GeometryCore.h.
References geo::GeometryCore::DetHalfHeight(), geo::GeometryCore::DetHalfWidth(), geo::GeometryCore::DetLength(), geo::GeometryCore::GetEndTPCID(), and geo::GeometryCore::tpc_zero.
Referenced by geo::GeometryCore::GetBeginID(), geo::GeometryCore::GetBeginPlaneID(), and geo::GeometryCore::GetEndTPCID().
|
inlineinherited |
Returns the ID of the first TPC set in the specified cryostat.
Definition at line 2109 of file GeometryCore.h.
Referenced by geo::GeometryCore::GetBeginID< readout::TPCsetID, CryostatID >(), and geo::GeometryCore::GetBeginROPID().
|
inlineinherited |
Returns the ID of the first wire in the specified cryostat.
Definition at line 1234 of file GeometryCore.h.
References geo::GeometryCore::GetBeginPlaneID(), and geo::GeometryCore::GetEndWireID().
Referenced by geo::GeometryCore::GetBeginID(), and geo::GeometryCore::GetEndWireID().
Returns the ID of the first wire of the specified TPC.
Definition at line 1241 of file GeometryCore.h.
References geo::GeometryCore::GetEndWireID().
Returns the ID of the first wire of the specified wire plane.
Definition at line 1248 of file GeometryCore.h.
References geo::GeometryCore::GetEndWireID().
|
inherited |
Find the nearest OpChannel to some point.
xyz | point to be queried, in world coordinates |
std::numeric_limits<unsigned int>::max()
if invalid pointgeo::CryostatGeo::GetClosestOpDet()
instead (find the cryostat with PositionToCryostatPtr()
).Definition at line 1635 of file GeometryCore.cxx.
References geo::CryostatID::Cryostat, geo::CryostatGeo::GetClosestOpDet(), geo::CryostatGeo::ID(), geo::GeometryCore::OpDetFromCryo(), and geo::GeometryCore::PositionToCryostatPtr().
Referenced by geo::GeometryCore::ThirdPlaneSlope().
|
inherited |
Return the name of LAr TPC volume.
cstat | index of the cryostat |
This information is used in the event display.
Use a cryostat ID instead
What if it does not exist?
Definition at line 676 of file GeometryCore.cxx.
References geo::GeometryCore::Cryostat(), and geo::CryostatGeo::Volume().
Referenced by geo::GeometryCore::Iterate().
|
inlineinherited |
Returns the specified cryostat.
cstat | number of cryostat |
cryoid | cryostat ID |
cet::exception | (GeometryCore category) if cryostat not present |
The GetElement() method is overloaded and its return depends on the type of ID.
Definition at line 465 of file GeometryCore.h.
References geo::GeometryCore::Cryostat().
Referenced by sce::SCECorrection::applyT0Shift(), and evd::SimulationDrawer::MCTruthOrtho().
Returns the specified TPC.
tpcid | ID of the tpc |
tpc | tpc number within the cryostat |
cstat | number of cryostat |
cet::exception | (GeometryCore category) if cryostat not present |
cet::exception | (TPCOutOfRange category) if no such TPC |
The GetElement() method is overloaded and its return depends on the type of ID.
Definition at line 723 of file GeometryCore.h.
References geo::GeometryCore::TPC().
Returns the specified wire.
planeid | ID of the plane |
p | plane number within the TPC |
tpc | TPC number within the cryostat |
cstat | number of cryostat |
cet::exception | (GeometryCore category) if cryostat not present |
cet::exception | (TPCOutOfRange category) if no such TPC |
cet::exception | (PlaneOutOfRange category) if no such plane |
The GetElement() method is overloaded and its return depends on the type of ID.
Definition at line 1035 of file GeometryCore.h.
References geo::GeometryCore::Plane().
Returns the specified wire.
wireid | ID of the wire |
cet::exception | if not found |
The GetElement() method is overloaded and its return depends on the type of ID.
Definition at line 1212 of file GeometryCore.h.
References geo::GeometryCore::Wire().
|
inlineinherited |
Returns the specified cryostat.
cryoid | cryostat ID |
The GetElementPtr() method is overloaded and its return depends on the type of ID.
Definition at line 481 of file GeometryCore.h.
References geo::GeometryCore::CryostatPtr(), geo::GeometryCore::PositionToCryostat(), geo::GeometryCore::PositionToCryostatID(), and geo::GeometryCore::PositionToCryostatPtr().
Referenced by geo::details::getElementPtr(), geo::GeometryCore::Nplanes(), geo::GeometryCore::NTPC(), and geo::GeometryCore::Nwires().
Returns the specified TPC.
tpcid | TPC ID |
The GetElementPtr() method is overloaded and its return depends on the type of ID.
Definition at line 740 of file GeometryCore.h.
References geo::GeometryCore::FindTPCAtPosition(), geo::GeometryCore::PositionToTPC(), geo::GeometryCore::PositionToTPCID(), geo::GeometryCore::PositionToTPCptr(), and geo::GeometryCore::TPCPtr().
Returns the specified plane.
planeid | plane ID |
The GetElementPtr() method is overloaded and its return depends on the type of ID.
Definition at line 1052 of file GeometryCore.h.
References geo::GeometryCore::PlanePtr().
Returns the specified wire.
wireid | wire ID |
The GetElementPtr() method is overloaded and its return depends on the type of ID.
Definition at line 1197 of file GeometryCore.h.
References geo::GeometryCore::WirePtr().
|
inlineinherited |
Returns the (possibly invalid) ID after the last subelement of the detector.
GeoID | type of the ID to be returned |
Definition at line 385 of file GeometryCore.h.
References geo::GeometryCore::GetBeginID().
Referenced by geo::GeometryCore::GetBeginID(), and geo::GeometryCore::GetEndID().
|
inherited |
Returns the (possibly invalid) ID after the last subelement of the specified element.
GeoID | type of the ID to be returned |
ContextID | type of the ID of the containing element |
id | ID of the containing element |
|
inlineinherited |
Initializes the specified ID with the invalid ID after the last cryostat.
Definition at line 521 of file GeometryCore.h.
References geo::GeometryCore::IncrementID(), and geo::GeometryCore::Ncryostats().
|
inherited |
Initializes the specified ID with the invalid ID after the last TPC.
Definition at line 380 of file GeometryCore.cxx.
References geo::GeometryCore::GetBeginID(), geo::GeometryCore::GetEndID(), and geo::GeometryCore::MaxTPCs().
|
inherited |
Initializes the specified ID with the invalid ID after the last plane.
Definition at line 718 of file GeometryCore.cxx.
References geo::GeometryCore::GetBeginID(), geo::GeometryCore::GetEndID(), and geo::GeometryCore::MaxPlanes().
|
inherited |
Initializes the specified ID with the invalid ID after the last wire.
Definition at line 840 of file GeometryCore.cxx.
References geo::GeometryCore::GetBeginID(), geo::GeometryCore::GetEndID(), and geo::GeometryCore::MaxWires().
|
inlineinherited |
Initializes the specified ID with the invalid ID after the last TPC set.
Definition at line 2098 of file GeometryCore.h.
References geo::GeometryCore::GetEndID(), and geo::GeometryCore::IncrementID().
|
inlineinherited |
Initializes the specified ID with the invalid ID after the last ROP.
Definition at line 2263 of file GeometryCore.h.
References geo::GeometryCore::GetEndID(), and geo::GeometryCore::IncrementID().
|
inlineinherited |
Definition at line 2555 of file GeometryCore.h.
References geo::GeometryCore::GetEndTPCID().
|
inlineinherited |
Definition at line 2574 of file GeometryCore.h.
References geo::GeometryCore::GetEndPlaneID().
Definition at line 2580 of file GeometryCore.h.
References geo::GeometryCore::GetEndPlaneID().
|
inlineinherited |
Definition at line 2605 of file GeometryCore.h.
References geo::GeometryCore::GetEndWireID().
Definition at line 2611 of file GeometryCore.h.
References geo::GeometryCore::GetEndWireID().
Definition at line 2617 of file GeometryCore.h.
References geo::GeometryCore::GetEndWireID().
|
inherited |
Returns the (possibly invalid) ID after the last plane of the specified cryostat.
Definition at line 731 of file GeometryCore.cxx.
References geo::GeometryCore::CryostatPtr(), geo::GeometryCore::GetBeginPlaneID(), geo::GeometryCore::GetEndTPCID(), and geo::CryostatGeo::MaxPlanes().
Referenced by geo::GeometryCore::GetBeginPlaneID(), geo::GeometryCore::GetEndID(), and geo::GeometryCore::GetEndWireID().
Returns the (possibly invalid) ID after the last plane of the specified TPC.
Definition at line 738 of file GeometryCore.cxx.
References geo::GeometryCore::GetBeginPlaneID(), geo::GeometryCore::GetNextID(), geo::CryostatID::markInvalid(), geo::TPCGeo::Nplanes(), geo::GeometryCore::TPC(), and geo::GeometryCore::TPCPtr().
|
inlineinherited |
Returns the (possibly invalid) ID after the last readout plane of the specified cryostat.
Definition at line 2278 of file GeometryCore.h.
References geo::GeometryCore::GetEndTPCsetID().
Referenced by geo::GeometryCore::GetEndID< readout::ROPID, CryostatID >(), and geo::GeometryCore::GetEndID< readout::ROPID, readout::TPCsetID >().
|
inlineinherited |
Returns the (possibly invalid) ID after the last readout plane of the specified TPC set.
Definition at line 2285 of file GeometryCore.h.
References geo::GeometryCore::ApplyChannelMap(), geo::GeometryCore::GetNextID(), geo::GeometryCore::HardwareChannelFromOpChannel(), geo::GeometryCore::IsValidOpChannel(), geo::GeometryCore::LoadGeometryFile(), geo::GeometryCore::MaxOpChannel(), geo::GeometryCore::NOpChannels(), geo::GeometryCore::NOpHardwareChannels(), geo::GeometryCore::OpChannel(), geo::GeometryCore::OpDetFromCryo(), geo::GeometryCore::OpDetFromOpChannel(), geo::GeometryCore::SignalType(), and geo::GeometryCore::View().
|
inherited |
Returns the (possibly invalid) ID after the last TPC of the specified cryostat.
Definition at line 393 of file GeometryCore.cxx.
References geo::CryostatID::Cryostat, geo::GeometryCore::CryostatPtr(), geo::GeometryCore::GetBeginTPCID(), geo::CryostatID::markInvalid(), and geo::CryostatGeo::NTPC().
Referenced by geo::GeometryCore::GetBeginTPCID(), geo::GeometryCore::GetEndID(), and geo::GeometryCore::GetEndPlaneID().
|
inlineinherited |
Returns the (possibly invalid) ID after the last TPC set of the specified cryostat.
Definition at line 2113 of file GeometryCore.h.
References geo::CryostatID::Cryostat, and geo::GeometryCore::NROPs().
Referenced by geo::GeometryCore::GetEndID< readout::TPCsetID, CryostatID >(), and geo::GeometryCore::GetEndROPID().
|
inherited |
Returns the (possibly invalid) ID after the last wire in the specified cryostat.
Definition at line 853 of file GeometryCore.cxx.
References geo::GeometryCore::CryostatPtr(), geo::GeometryCore::GetBeginWireID(), geo::GeometryCore::GetEndPlaneID(), geo::CryostatID::markInvalid(), and geo::CryostatGeo::MaxWires().
Referenced by geo::GeometryCore::GetBeginWireID(), and geo::GeometryCore::GetEndID().
Returns the (possibly invalid) ID after the last wire of the specified TPC.
Definition at line 863 of file GeometryCore.cxx.
References geo::GeometryCore::GetBeginWireID(), geo::GeometryCore::GetEndPlaneID(), geo::CryostatID::markInvalid(), geo::TPCGeo::MaxWires(), geo::GeometryCore::TPC(), and geo::GeometryCore::TPCPtr().
Returns the (possibly invalid) ID after the last wire of the specified wire plane.
Definition at line 873 of file GeometryCore.cxx.
References geo::GeometryCore::GetBeginWireID(), geo::GeometryCore::GetNextID(), geo::CryostatID::markInvalid(), geo::PlaneGeo::Nwires(), and geo::GeometryCore::PlanePtr().
|
inherited |
Return the name of specified LAr TPC volume.
tpcid | ID of the TPC |
tpc | index of TPC in the cryostat |
cstat | index of the cryostat |
This information is used by Geant4 simulation
Definition at line 670 of file GeometryCore.cxx.
References geo::TPCGeo::ActiveVolume(), and geo::GeometryCore::TPC().
Referenced by LArStackingAction::ClassifyNewTrack(), geo::GeometryCore::GetTPCFrontFaceCenter(), trkf::SpacePts::produce(), trkf::Track3Dreco::produce(), trkf::Track3DKalman::produce(), vertex::VertexFinder2D::produce(), and trkf::Track3DKalmanSPS::produce().
|
inlineinherited |
Returns the ID next to the specified one.
GeoID | type of the ID to be returned |
id | the element ID to be incremented |
id
Definition at line 371 of file GeometryCore.h.
References geo::GeometryCore::IncrementID().
Referenced by geo::GeometryCore::GetEndPlaneID(), geo::GeometryCore::GetEndROPID(), and geo::GeometryCore::GetEndWireID().
Returns the center of side of the detector facing the beam.
tpcid | ID of the TPC |
Effectively, this is the center of the side of TPC active volume which faces the negative z direction, the first that a beam following the positive z direction crosses.
Definition at line 872 of file GeometryCore.h.
References geo::TPCGeo::GetFrontFaceCenter(), geo::GeometryCore::GetLArTPCVolumeName(), geo::GeometryCore::MaxPlanes(), geo::GeometryCore::TPC(), and geo::GeometryCore::tpc_zero.
|
inherited |
Return the name of the world volume (needed by Geant4 simulation)
Definition at line 501 of file GeometryCore.cxx.
Referenced by geo::GeometryCore::SurfaceY(), geo::GeometryCore::WorldBox(), and geo::GeometryCore::WorldVolume().
|
inherited |
Convert unique channel to hardware channel.
Definition at line 268 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by geo::GeometryCore::GetEndROPID().
|
inherited |
Returns whether the specified channel exists and is valid.
channel | the ID of the channel |
A channel is defined as existing and valid if its ID is not invalid and if the channel is physical.
Definition at line 495 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by geo::GeometryCore::Views().
|
inlineinherited |
Returns whether we have the specified cryostat.
The HasElement() method is overloaded and its meaning depends on the type of ID.
Definition at line 446 of file GeometryCore.h.
References geo::CryostatID::Cryostat, and geo::GeometryCore::Ncryostats().
Referenced by geo::GeometryCore::CryostatPtr(), geo::GeometryCore::GetBeginID(), geo::GeometryCore::HasElement(), and geo::GeometryCore::IncrementID().
|
inlineinherited |
Returns whether we have the specified cryostat.
The HasElement() method is overloaded and its meaning depends on the type of ID.
Definition at line 447 of file GeometryCore.h.
References geo::GeometryCore::HasCryostat().
|
inlineinherited |
Returns whether we have the specified TPC.
Definition at line 706 of file GeometryCore.h.
References geo::GeometryCore::HasTPC().
|
inlineinherited |
Returns whether we have the specified plane.
The HasElement() method is overloaded and its meaning depends on the type of ID.
Definition at line 1016 of file GeometryCore.h.
References geo::GeometryCore::HasPlane().
|
inlineinherited |
Returns whether we have the specified wire.
The HasElement() method is overloaded and its meaning depends on the type of ID.
Definition at line 1180 of file GeometryCore.h.
References geo::GeometryCore::HasWire().
|
inlineinherited |
Returns whether we have the specified TPC set.
Definition at line 2059 of file GeometryCore.h.
References geo::GeometryCore::FindTPCsetAtPosition(), geo::GeometryCore::HasTPCset(), geo::GeometryCore::TPCsetToTPCs(), and geo::GeometryCore::TPCtoTPCset().
|
inlineinherited |
Returns whether we have the specified readout plane
Definition at line 2198 of file GeometryCore.h.
References geo::GeometryCore::FirstChannelInROP(), geo::GeometryCore::HasROP(), geo::GeometryCore::ROPtoTPCs(), geo::GeometryCore::ROPtoWirePlanes(), and geo::GeometryCore::WirePlaneToROP().
|
inlineinherited |
Returns whether we have the specified plane.
The HasElement() method is overloaded and its meaning depends on the type of ID.
Definition at line 1011 of file GeometryCore.h.
References geo::TPCGeo::HasPlane(), and geo::GeometryCore::TPCPtr().
Referenced by geo::GeometryCore::HasElement().
|
inherited |
Returns whether we have the specified readout plane
Definition at line 1518 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by geo::GeometryCore::HasElement(), and geo::GeometryCore::makeROPdata().
|
inlineinherited |
Returns whether we have the specified TPC.
Definition at line 699 of file GeometryCore.h.
References geo::GeometryCore::CryostatPtr(), and geo::CryostatGeo::HasTPC().
Referenced by pma::ProjectionMatchingAlg::buildShowerSeg(), ems::MultiEMShowers::convCluster(), geo::GeometryCore::HasElement(), and evd::TWQProjectionView::SelectTPC().
|
inherited |
Returns whether we have the specified TPC set
Definition at line 1479 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by geo::GeometryCore::HasElement(), and geo::GeometryCore::makeTPCsetData().
|
inlineinherited |
Returns whether we have the specified wire.
The HasElement() method is overloaded and its meaning depends on the type of ID.
Definition at line 1175 of file GeometryCore.h.
References geo::PlaneGeo::HasWire(), and geo::GeometryCore::PlanePtr().
Referenced by tca::FillmAllTraj(), geo::GeometryCore::HasElement(), pma::ProjectionMatchingAlg::validate(), pma::ProjectionMatchingAlg::validate_on_adc(), pma::ProjectionMatchingAlg::validate_on_adc_test(), and geo::GeometryCore::WireIDIntersectionCheck().
|
inlineinherited |
Sets the ID to the ID after the specified one.
Definition at line 2481 of file GeometryCore.h.
References geo::GeometryCore::HasCryostat().
Referenced by geo::GeometryCore::GetBeginID(), geo::GeometryCore::GetEndID(), geo::GeometryCore::GetNextID(), and geo::GeometryCore::IncrementID().
|
inlineinherited |
Sets the ID to the ID after the specified one.
Definition at line 2488 of file GeometryCore.h.
References geo::GeometryCore::IncrementID(), geo::GeometryCore::NTPC(), and geo::GeometryCore::TPC().
|
inlineinherited |
Sets the ID to the ID after the specified one.
Definition at line 2497 of file GeometryCore.h.
References geo::GeometryCore::IncrementID(), geo::GeometryCore::Nplanes(), and geo::GeometryCore::Plane().
|
inlineinherited |
Sets the ID to the ID after the specified one.
Definition at line 2508 of file GeometryCore.h.
References geo::GeometryCore::IncrementID(), geo::GeometryCore::Nwires(), and geo::GeometryCore::Wire().
|
inlineinherited |
Sets the ID to the ID after the specified one.
Definition at line 2519 of file GeometryCore.h.
References geo::GeometryCore::IncrementID(), and geo::GeometryCore::NTPCsets().
|
inlineinherited |
Sets the ID to the ID after the specified one.
Definition at line 2528 of file GeometryCore.h.
References geo::GeometryCore::IncrementID(), and geo::GeometryCore::NROPs().
|
inherited |
Returns a string with complete geometry information.
Print()
Definition at line 1073 of file GeometryCore.cxx.
References geo::GeometryCore::Print().
Referenced by geo::GeometryCore::SurfaceY().
|
private |
Definition at line 102 of file Geometry.cc.
References geo::GeometryCore::ApplyChannelMap(), geo::GeometryCore::DetectorName(), and fSortingParameters.
Referenced by LoadNewGeometry().
|
inherited |
Returns the intersection point of two wires.
wid1 | ID of the first wire |
wid2 | ID of the other wire |
y | (output) y coordinate of the intersection point |
z | (output) z coordinate of the intersection point |
The behaviour of this method reflects the one of WireIDsIntersect()
, which supersedes this one.
To test if the result is infinity, use e.g. std::isfinite(y)
.
WireIDsIntersect()
returning a vector, instead. Definition at line 1451 of file GeometryCore.cxx.
References geo::GeometryCore::WireIDsIntersect(), geo::WireIDIntersection::y, and geo::WireIDIntersection::z.
Referenced by pma::ProjectionMatchingAlg::addEndpointRef_(), sppt::SpacePointAlg_TimeSort::fillCoordinatesArrays(), trkf::CCTrackMaker::FillEndMatch(), tca::FillWireIntersections(), filter::MuonFilter::filter(), tca::Find3DVertices(), vertex::FeatureVertexFinder::Get3dVertexCandidates(), pma::Track3D::InitFromHits(), tca::Match2Planes(), cluster::ClusterMatchAlg::Match_RoughZ(), trkf::CCTrackMaker::PlnMatch(), and trkf::TrackTrajectoryAlg::ShortTrackTrajectory().
|
inherited |
Is this a valid OpChannel number?
Definition at line 274 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg, and geo::GeometryCore::NOpDets().
Referenced by cosmic::BeamFlashTrackMatchTaggerAlg::CheckCompatibility(), geo::GeometryCore::GetEndROPID(), cosmic::BeamFlashTrackMatchTaggerAlg::PrintHypothesisFlashComparison(), lariov::SIOVPmtGainProvider::Reconfigure(), and opdet::RunHitFinder().
|
inlineinherited |
Initializes the specified ID with the ID of the first cryostat.
Definition at line 541 of file GeometryCore.h.
References geo::details::IteratorMaker< T, typename >::create_range().
Referenced by vertex::FeatureVertexFinderAna::analyze(), pfpf::PFPAna::analyze(), cluster::ClusterAna::analyze(), cluster::DBclusterAna::analyze(), evgen::GaisserParam::beginJob(), trkf::SpacePointAna::bookHistograms(), pma::PMAlgTracker::build(), ShowerRecoTools::ShowerTrajPointdEdx::CalculateElement(), corner::CornerFinderAlg::create_smaller_histos(), lar_pandora::LArPandoraInput::CreatePandoraReadoutGaps(), sim::details::createPlaneIndexMap(), evd_tool::ICARUSDrawer::DetOutline3D(), trkf::TrackKalmanFitter::doFitWork(), larg4::ISTPC::extractActiveLArVolume(), larg4::OpFastScintillation::extractActiveVolumes(), cluster::HoughBaseAlg::FastTransform(), trkf::CCTrackMaker::FillChgNear(), tca::FillWireHitRange(), vertex::FeatureVertexFinder::Find2dClusterVertexCandidates(), vertex::FeatureVertexFinder::Find3dVtxFrom2dClusterVtxCand(), trkf::CCTrackMaker::FindMaybeVertices(), ems::MCinfo::Findtpcborders(), vertex::FeatureVertexFinder::Get3dVertexCandidates(), corner::CornerFinderAlg::get_feature_points(), corner::CornerFinderAlg::get_feature_points_fast(), corner::CornerFinderAlg::get_feature_points_LineIntegralScore(), mvapid::MVAAlg::GetDetectorEdges(), lar_pandora::LArPandoraInput::GetTrueStartAndEndPoints(), mvapid::MVAAlg::GetWireNormals(), corner::CornerFinderAlg::GrabWires(), cluster::HoughBaseAlg::HoughBaseAlg(), cluster::DBScan3DAlg::init(), corner::CornerFinderAlg::InitializeGeometry(), cluster::DBScanAlg::InitScan(), tca::InsideTPC(), lar_pandora::LArPandoraGeometry::LoadGeometry(), sim::MCRecoEdep::MakeMCEdep(), shower::TCShowerAlg::makeShowers(), trkf::SpacePointAlg::makeSpacePoints(), sim::MCRecoPart::MCRecoPart(), evd::RecoBaseDrawer::OpFlashOrtho(), evd::Ortho3DPad::Ortho3DPad(), evgen::CORSIKAGen::populateNShowers(), trkf::CCTrackMaker::PrintClusters(), tss::TrackShowerHits::produce(), evgen::CosmicsGen::produce(), evgen::NDKGen::produce(), trkf::CCTrackMaker::produce(), evgen::NucleonDecay::produce(), vertex::FeatureVertexFinder::produce(), evgen::NeutronOsc::produce(), evgen::CORSIKAGen::produce(), evd::RecoBaseDrawer::RecoBaseDrawer(), phot::PhotonVisibilityService::reconfigure(), lariov::SIOVElectronicsCalibProvider::Reconfigure(), lariov::DetPedestalRetrievalAlg::Reconfigure(), evgen::ActiveVolumeVertexSampler::reconfigure(), evgen::ActiveVolumeVertexSampler::sample_vertex_pos(), evd::SimulationDrawer::SimulationDrawer(), trkf::CCTrackMaker::StoreTrack(), evd::TWQProjectionView::TWQProjectionView(), and trkf::SpacePointAlg::update().
|
inlineinherited |
Initializes the specified ID with the ID of the first cryostat.
Definition at line 559 of file GeometryCore.h.
References geo::details::IteratorMaker< T, typename >::create_range(), geo::GeometryCore::cryostat_zero, geo::GeometryCore::CryostatHalfHeight(), geo::GeometryCore::CryostatHalfWidth(), geo::GeometryCore::CryostatLength(), geo::GeometryCore::GetCryostatVolumeName(), geo::GeometryCore::MaxTPCs(), and geo::GeometryCore::TotalNTPC().
|
inherited |
Loads the geometry information from the specified files.
gdmlfile | path to file to be used for Geant4 simulation |
rootfile | path to file for internal geometry representation |
builder | algorithm to be used for the interpretation of geometry |
bForceReload | reload even if there is already a valid geometry |
Both paths must directly resolve to an available file, as no search is performed for them.
The gdmlfile parameter does not have to necessarily be in GDML format, as long as it's something supported by Geant4. This file is not used by the geometry, but its path is provided on request by the simulation modules (see LArSoft LArG4
module). The rootfile also does not need to be a ROOT file, but just anything that TGeoManager::Import() supports. This file is parsed immediately and the internal geometry representation is built out of it.
Definition at line 93 of file GeometryCore.cxx.
References geo::GeometryCore::BuildGeometry(), geo::GeometryCore::ClearGeometry(), geo::GeometryCore::fGDMLfile, and geo::GeometryCore::fROOTfile.
Referenced by geo::GeometryCore::GetEndROPID(), geo::GeometryCore::LoadGeometryFile(), and LoadNewGeometry().
|
inherited |
Loads the geometry information from the specified files.
gdmlfile | path to file to be used for Geant4 simulation |
rootfile | path to file for internal geometry representation |
bForceReload | reload even if there is already a valid geometry |
This legacy version of LoadGeometryFile()
uses a standard geo::GeometryBuilder
implementation. Do not rely on it if you can avoid it.
Definition at line 143 of file GeometryCore.cxx.
References geo::GeometryCore::fBuilderParameters, and geo::GeometryCore::LoadGeometryFile().
|
private |
Expands the provided paths and loads the geometry description(s)
Definition at line 115 of file Geometry.cc.
References fBuilderParameters, fDisableWiresInG4, fRelPath, InitializeChannelMap(), and geo::GeometryCore::LoadGeometryFile().
Referenced by Geometry().
|
inlineinherited |
Returns a container with one entry per wire plane.
T | type of data in the container |
T
per plane geo::PlaneDataContainer
The working assumption is that all cryostats have the same number of TPCs, and all TPCs have the same number of planes. It is always guaranteed that all existing planes have an entry in the container, although if the previous working assumption is not satisfied there will be entries in the containers which are not associated to a valid plane.
The interface of the container is detailed in the documentation of the container itself, geo::PlaneDataContainer
. Example of usage:
where the container will be filled with pointers to all hits on the given wire plane (wire IDs are implicitly converted into plane IDs in the index operator[]
call).
Definition at line 937 of file GeometryCore.h.
References geo::GeometryCore::MaxPlanes(), geo::GeometryCore::MaxTPCs(), and geo::GeometryCore::Ncryostats().
|
inlineinherited |
Returns a container with one entry per wire plane.
T | type of data in the container |
defValue | the initial value of all elements in the container |
T
per plane geo::PlaneDataContainer
This function operates as makePlaneData() const
, except that copies the specified value into all the entries of the container. Example:
Definition at line 961 of file GeometryCore.h.
References geo::GeometryCore::MaxPlanes(), geo::GeometryCore::MaxTPCs(), and geo::GeometryCore::Ncryostats().
|
inlineinherited |
Returns a container with one entry per readout plane.
T | type of data in the container |
T
per readout plane readout::ROPDataContainer
The working assumption is that all cryostats have the same number of TPC sets, and all TPC sets have the same number of readout planes. It is always guaranteed that all existing readout planes have an entry in the container, although if the previous working assumption is not satisfied there will be entries in the container which are not associated to a valid readout plane.
The interface of the container is detailed in the documentation of the container itself, readout::ROPDataContainer
. Example of usage:
Definition at line 2164 of file GeometryCore.h.
References geo::GeometryCore::MaxROPs(), geo::GeometryCore::MaxTPCsets(), and geo::GeometryCore::Ncryostats().
|
inlineinherited |
Returns a container with one entry per readout plane.
T | type of data in the container |
defValue | the initial value of all elements in the container |
T
per readout plane readout::ROPDataContainer
This function operates as makeROPdata() const
, except that copies the specified value into all the entries of the container. Example:
Definition at line 2184 of file GeometryCore.h.
References geo::GeometryCore::HasROP(), geo::GeometryCore::MaxROPs(), geo::GeometryCore::MaxTPCsets(), and geo::GeometryCore::Ncryostats().
|
inlineinherited |
Returns a container with one entry per TPC.
T | type of data in the container |
T
per TPC geo::TPCDataContainer
The working assumption is that all cryostats have the same number of TPCs. It is always guaranteed that all existing TPCs have an entry in the container, although if the previous working assumption is not satisfied there will be entries in the containers which are not associated to a valid TPC.
The interface of the container is detailed in the documentation of the container itself, geo::TPCDataContainer
. Example of usage:
where the container will be filled with pointers to all tracks starting from a given TPC (tracks reconstructed as starting outside the TPCs will be not saved in the container).
Definition at line 645 of file GeometryCore.h.
References geo::GeometryCore::MaxTPCs(), and geo::GeometryCore::Ncryostats().
|
inlineinherited |
Returns a container with one entry per TPC.
T | type of data in the container |
defValue | the initial value of all elements in the container |
defValue
per each TPC geo::TPCDataContainer
This function operates as makeTPCData() const
, except that copies the specified value into all the entries of the container. Example:
Definition at line 670 of file GeometryCore.h.
References geo::GeometryCore::MaxTPCs(), and geo::GeometryCore::Ncryostats().
|
inlineinherited |
Returns a container with one entry per TPC set.
T | type of data in the container |
T
per TPC set readout::TPCsetDataContainer
The working assumption is that all cryostats have the same number of TPC sets. It is always guaranteed that all existing TPC sets have an entry in the container, although if the previous working assumption is not satisfied there will be entries in the containers which are not associated to a valid TPC set.
The interface of the container is detailed in the documentation of the container itself, readout::TPCsetDataContainer
. Example of usage:
Definition at line 2026 of file GeometryCore.h.
References geo::GeometryCore::MaxTPCsets(), and geo::GeometryCore::Ncryostats().
|
inlineinherited |
Returns a container with one entry per TPC set.
T | type of data in the container |
defValue | the initial value of all elements in the container |
defValue
per each TPC set readout::TPCsetDataContainer
This function operates as makeTPCsetData() const
, except that it copies the specified value into all the entries of the container. Example:
Definition at line 2046 of file GeometryCore.h.
References geo::GeometryCore::HasTPCset(), geo::GeometryCore::MaxTPCsets(), and geo::GeometryCore::Ncryostats().
|
inherited |
Returns the column density between two points.
p1 | the first point |
p2 | the second point |
The column density is defined as where is the density at point , which the integral leads from p1
to p2
in a straight line.
Both points are specified in world coordinates.
Definition at line 1033 of file GeometryCore.cxx.
References dir, and geo::vect::makePointFromCoords().
Referenced by geo::GeometryCore::SurfaceY().
|
inherited |
Returns the material at the specified position.
Definition at line 949 of file GeometryCore.cxx.
Referenced by geo::GeometryCore::MaterialName(), and geo::GeometryCore::SurfaceY().
|
inherited |
Name of the deepest material containing the point xyz.
Definition at line 958 of file GeometryCore.cxx.
References geo::BoxBoundedGeo::ContainsPosition(), geo::GeometryCore::Material(), geo::BoxBoundedGeo::Max(), geo::BoxBoundedGeo::Min(), and geo::GeometryCore::WorldBox().
Referenced by larg4::LArG4Ana::analyze(), and geo::GeometryCore::SurfaceY().
|
inherited |
Largest optical channel number.
Definition at line 244 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg, and geo::GeometryCore::NOpDets().
Referenced by cosmic::BeamFlashTrackMatchTaggerAlg::CheckCompatibility(), opdet::ConstructFlash(), geo::GeometryCore::GetEndROPID(), and cosmic::BeamFlashTrackMatchTaggerAlg::PrintHypothesisFlashComparison().
|
inherited |
Returns the largest number of planes among all TPCs in this detector.
Definition at line 818 of file GeometryCore.cxx.
References geo::GeometryCore::Cryostats().
Referenced by pma::PMAlgTracker::build(), ShowerRecoTools::ShowerTrajPointdEdx::CalculateElement(), shower::EMShowerAlg::CheckIsolatedHits_(), img::DataProviderAlg::DataProviderAlg(), trkf::TrackKalmanFitter::doFitWork(), lar_pandora::detector_functions::GetDetectorType(), geo::GeometryCore::GetEndID(), geo::GeometryCore::GetTPCFrontFaceCenter(), geo::GeometryCore::makePlaneData(), shower::EMShowerAlg::MakeShower(), shower::EMShowerAlg::MakeSpacePoints(), geo::GeometryCore::Nviews(), shower::EMShowerAlg::OrderShowerHits(), pma::PMAlgTracker::PMAlgTracker(), trkf::PMAlgTrackMaker::PMAlgTrackMaker(), nnet::PointIdTrainingData::PointIdTrainingData(), shower::EMShowerAlg::RelativeWireWidth_(), lar_pandora::LArPandoraGeometry::ShouldSwitchUV(), trkf::TrackKalmanFitter::sortOutput(), and shower::EMShowerAlg::WorstPlane_().
|
inherited |
Returns the largest number of ROPs a TPC set in the detector has.
Definition at line 1512 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by geo::GeometryCore::makeROPdata(), and geo::GeometryCore::NSiblingElements().
|
inherited |
Returns the largest number of TPCs a cryostat in the detector has.
Definition at line 796 of file GeometryCore.cxx.
References geo::GeometryCore::Cryostats().
Referenced by geo::GeometryCore::GetEndID(), geo::GeometryCore::Iterate(), geo::GeometryCore::makePlaneData(), geo::GeometryCore::makeTPCData(), and evd::TWQProjectionView::SetUpTPCselection().
|
inherited |
Returns the largest number of TPC sets any cryostat in the detector has.
Definition at line 1473 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by geo::GeometryCore::makeROPdata(), geo::GeometryCore::makeTPCsetData(), and geo::GeometryCore::NSiblingElements().
|
inherited |
Returns the largest number of wires among all planes in this detector.
Definition at line 829 of file GeometryCore.cxx.
References geo::GeometryCore::Cryostats().
Referenced by cluster::BlurredClusteringAlg::ConvertRecobHitsToVector(), geo::GeometryCore::GetEndID(), and geo::GeometryCore::NSiblingElements().
|
inlineinherited |
Returns the number of auxiliary detectors.
This method returns the total number of scintillator paddles (Auxiliary Detectors aka AuxDet) outside of the cryostat
Definition at line 1775 of file GeometryCore.h.
References geo::GeometryCore::AuxDet(), geo::GeometryCore::AuxDets(), geo::GeometryCore::ChannelsInTPCs(), geo::GeometryCore::ChannelToAuxDet(), geo::GeometryCore::ChannelToAuxDetSensitive(), geo::GeometryCore::FindAuxDetAtPosition(), geo::GeometryCore::FindAuxDetSensitiveAtPosition(), geo::GeometryCore::NAuxDetSensitive(), geo::GeometryCore::Nchannels(), geo::GeometryCore::PositionToAuxDet(), and geo::GeometryCore::PositionToAuxDetSensitive().
Referenced by geo::GeometryCore::AuxDet(), geo::GeometryCore::NAuxDetSensitive(), geo::GeometryCore::Print(), and larg4::LArG4::produce().
|
inherited |
Returns the number of sensitive components of auxiliary detector.
aid | ID of the auxiliary detector |
Definition at line 280 of file GeometryCore.cxx.
References geo::GeometryCore::AuxDets(), and geo::GeometryCore::NAuxDets().
Referenced by geo::GeometryCore::NAuxDets().
|
inherited |
Returns the number of TPC readout channels in the detector.
Definition at line 198 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by larg4::LArG4Ana::beginJob(), lar_cluster3d::StandardHit3DBuilder::BuildChannelStatusVec(), lar_cluster3d::SnippetHit3DBuilder::BuildChannelStatusVec(), trkf::SeedFinderAlgorithm::CalculateGeometricalElements(), apa::APAGeometryAlg::Init(), cluster::DBScanAlg::InitScan(), geo::GeometryCore::NAuxDets(), hit::MCHitFinder::produce(), and detsim::SimWire::produce().
|
inherited |
Returns the number of channels in the specified ROP.
Definition at line 204 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
|
inlineinherited |
Returns the number of cryostats in the detector.
The NElements() and NSiblingElements() methods are overloaded and their return depends on the type of ID.
Definition at line 430 of file GeometryCore.h.
References geo::GeometryCore::Cryostats().
Referenced by detsim::WienerFilterAna::beginJob(), detsim::DriftElectronstoPlane::beginJob(), detsim::SimDriftElectrons::beginJob(), lar_cluster3d::StandardHit3DBuilder::BuildHitPairMap(), lar_cluster3d::SnippetHit3DBuilder::BuildHitPairMap(), larg4::LArVoxelReadout::ClearSimChannels(), lar_cluster3d::StandardHit3DBuilder::CollectArtHits(), lar_cluster3d::SnippetHit3DBuilder::CollectArtHits(), larg4::LArVoxelReadoutGeometry::Construct(), detinfo::DetectorPropertiesStandard::DataFor(), hit::DisambigCheater::DisambigCheater(), detsim::WienerFilterAna::endJob(), larg4::ISTPC::extractActiveLArVolume(), larg4::OpFastScintillation::extractActiveVolumes(), geo::GeometryCore::GetEndID(), geo::GeometryCore::HasCryostat(), lar_cluster3d::SpacePointHit3DBuilder::Hit3DBuilder(), geo::GeometryCore::makePlaneData(), geo::GeometryCore::makeROPdata(), trkf::SpacePointAlg::makeSpacePoints(), geo::GeometryCore::makeTPCData(), geo::GeometryCore::makeTPCsetData(), geo::GeometryCore::NElements(), geo::GeometryCore::NOpDets(), geo::GeometryCore::NSiblingElements(), geo::GeometryCore::OpDetFromCryo(), geo::GeometryCore::OpDetGeoFromOpDet(), larg4::OpFastScintillation::OpFastScintillation(), phot::PDFastSimPAR::PDFastSimPAR(), geo::GeometryCore::Print(), larg4::LArG4::produce(), evd::TWQProjectionView::SelectTPC(), evd::TWQProjectionView::SetUpTPCselection(), cheat::BackTracker::SpacePointHitsToWeightedXYZ(), and geo::GeometryCore::UpdateAfterSorting().
|
inherited |
Returns the ID of the channel nearest to the specified position.
worldLoc | 3D coordinates of the point (world reference frame) |
planeid | ID of the wire plane the channel must belong to |
raw::InvalidChannelID
if invalid wire geo::InvalidWireError
exception is thrownDefinition at line 1105 of file GeometryCore.cxx.
References raw::InvalidChannelID, geo::GeometryCore::NearestWireID(), and geo::GeometryCore::PlaneWireToChannel().
Referenced by larg4::LArVoxelReadout::DriftIonizationElectrons(), sim::MCRecoEdep::MakeMCEdep(), vertex::FeatureVertexFinder::produce(), detsim::SimDriftElectrons::produce(), apa::DisambigAlg::TrivialDisambig(), and geo::GeometryCore::Views().
|
inherited |
Returns the ID of wire closest to position in the specified TPC.
point | the point to be tested [cm] |
planeid | ID of the plane |
geo::PlaneGeo::ClosestWireID()
If the nearest wire is not closer than half a wire pitch, the result is marked invalid. The returned (invalid) ID will contain the non-existing wire that would be the nearest, if it existed.
If the wire ID is invalid and the existing closest wire is desired, a possible solution is (when the BUG will be solved):
Note however that this will execute plane lookup twice, and a more efficient approach would be to ask the plane everything directly:
Until the BUG is fixed, the actual working code is:
Definition at line 1099 of file GeometryCore.cxx.
References geo::PlaneGeo::NearestWireID(), and geo::GeometryCore::Plane().
Referenced by vertex::FeatureVertexFinderAna::analyze(), trkf::TrackAna::analyze(), evd::RecoBaseDrawer::DrawTrack2D(), evd::TWQMultiTPCProjectionView::FindEndPoint(), evd::TWQProjectionView::FindEndPoint(), hit::HitCheater::FindHitsOnChannel(), util::GeometryUtilities::Get2DPointProjection(), util::GeometryUtilities::Get2DPointProjectionCM(), opdet::GetHitGeometryInfo(), trkf::FeatureTracker::GetProjectedEnds(), nnet::TrainingDataAlg::getProjection(), hit::DisambigCheater::InitHitToWids(), apa::APAGeometryAlg::LineSegChanIntersect(), geo::GeometryCore::NearestChannel(), apa::APAGeometryAlg::NearestWireIDOnChan(), evd::RecoBaseDrawer::OpFlash2D(), trk::TrackContainmentAlg::ProcessTracks(), cluster::ClusterCheater::produce(), vertex::FeatureVertexFinder::produce(), shower::EMShowerAlg::Project3DPointOntoPlane_(), and evd::RecoBaseDrawer::Seed2D().
|
inlineinherited |
Returns the number of cryostats in the detector.
The NElements() and NSiblingElements() methods are overloaded and their return depends on the type of ID.
Definition at line 431 of file GeometryCore.h.
References geo::GeometryCore::Ncryostats().
|
inlineinherited |
Returns the largest number of TPCs a cryostat in the detector has.
Definition at line 691 of file GeometryCore.h.
References geo::GeometryCore::NTPC().
|
inlineinherited |
Returns the largest number of planes among all TPCs in this detector.
Definition at line 982 of file GeometryCore.h.
References geo::GeometryCore::Nplanes().
|
inlineinherited |
Returns the total number of wires in the specified plane.
planeid | plane ID |
The NElements() and NSiblingElements() methods are overloaded and their return depends on the type of ID.
Definition at line 1156 of file GeometryCore.h.
References geo::GeometryCore::Nwires().
|
inherited |
Number of electronics channels for all the optical detectors.
Definition at line 238 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg, and geo::GeometryCore::NOpDets().
Referenced by opdet::OpHitAna::analyze(), opdet::OpFlashAna::analyze(), opdet::SimPhotonCounter::analyze(), opdet::OpDetResponseInterface::doNOpChannels(), opdet::OpDigiProperties::FillGainArray(), opdet::OpDigiProperties::FillPedMeanArray(), geo::GeometryCore::GetEndROPID(), opdet::OpDigiProperties::OpDigiProperties(), and opdet::OptDetDigitizer::produce().
|
inherited |
Number of OpDets in the whole detector.
Definition at line 229 of file GeometryCore.cxx.
References geo::GeometryCore::Cryostat(), and geo::GeometryCore::Ncryostats().
Referenced by cosmic::BeamFlashTrackMatchTaggerAlg::CheckCompatibility(), phot::CreateHybridLibrary::CreateHybridLibrary(), opdet::FlashHypothesisAnaAlg::FillOpDetPositions(), larg4::OpDetLookup::FindClosestOpDet(), geo::GeometryCore::IsValidOpChannel(), phot::PhotonVisibilityService::LoadLibrary(), phot::PhotonMappingIdentityTransformations::makeLibraryIndicesToOpDetsMap(), phot::PhotonMappingIdentityTransformations::makeOpDetsToLibraryIndicesMap(), geo::GeometryCore::MaxOpChannel(), geo::GeometryCore::NOpChannels(), cosmic::BeamFlashTrackMatchTaggerAlg::NormalizeLightHypothesis(), phot::PropagationTimeModel::opDetCenters(), phot::PropagationTimeModel::opDetOrientations(), phot::PDFastSimPAR::PDFastSimPAR(), phot::PhotonLibraryHybrid::PhotonLibraryHybrid(), cosmic::BeamFlashTrackMatchTaggerAlg::PrintHypothesisFlashComparison(), wc::CellTree::processOpFlash(), sim::PhotonHitConverter::produce(), larg4::LArG4::produce(), lariov::SIOVPmtGainProvider::Reconfigure(), phot::SemiAnalyticalModel::SemiAnalyticalModel(), opdet::FlashHypothesisAnaAlg::SetOutputObjects(), and geo::GeometryCore::ThirdPlaneSlope().
|
inherited |
Number of electronics channels for all the optical detectors.
Definition at line 250 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by geo::GeometryCore::GetEndROPID().
Returns the total number of planes in the specified TPC.
tpcid | TPC ID |
The NElements() and NSiblingElements() methods are overloaded and their return depends on the type of ID.
Definition at line 977 of file GeometryCore.h.
References geo::GeometryCore::GetElementPtr(), and geo::TPCGeo::NElements().
Referenced by hit::MCHitAnaExample::analyze(), hit::MagDriftAna::analyze(), pfpf::PFPAna::analyze(), cluster::ClusterAna::analyze(), trkf::TrackAna::analyze(), tca::AnalyzeHits(), detsim::WienerFilterAna::beginJob(), shwf::ShowerReco::beginJob(), cluster::SmallClusterFinder::beginJob(), lar_cluster3d::StandardHit3DBuilder::BuildChannelStatusVec(), lar_cluster3d::SnippetHit3DBuilder::BuildChannelStatusVec(), btutil::MCMatchAlg::BuildMap(), mvapid::MVAAlg::CalcSegmentdEdxDist(), ShowerRecoTools::ShowerUnidirectiondEdx::CalculateElement(), ShowerRecoTools::ShowerNumElectronsEnergy::CalculateElement(), opdet::ConstructFlash(), tca::TrajClusterAlg::CreateSlice(), evd::AnalysisBaseDrawer::DrawDeDx(), evd::AnalysisBaseDrawer::DrawKineticEnergy(), detsim::WienerFilterAna::endJob(), cluster::HoughBaseAlg::FastTransform(), trkf::CCTrackMaker::FillEndMatch(), hit::GausHitFinder::FillOutHitParameterVector(), hit::DPRawHitFinder::FillOutHitParameterVector(), trkf::CCTrackMaker::FillWireHitRange(), tca::FillWireHitRange(), filter::MuonFilter::filter(), trkf::CCTrackMaker::FitVertices(), util::GeometryUtilities::GeometryUtilities(), opdet::GetHitGeometryInfo(), mvapid::MVAAlg::GetWireNormals(), corner::CornerFinderAlg::GrabWires(), evd::GraphCluster::GraphCluster(), evd::GraphClusterAlg::GraphClusterAlg(), cluster::HoughBaseAlg::HoughBaseAlg(), geo::GeometryCore::IncrementID(), evd::InfoTransfer::InfoTransfer(), corner::CornerFinderAlg::InitializeGeometry(), reco::shower::LArPandoraModularShowerCreation::LArPandoraModularShowerCreation(), trkf::CCTrackMaker::MakeClusterChains(), trkf::CCTrackMaker::MakeFamily(), cluster::ClusterMatchTQ::MatchedClusters(), hit::MCHitAnaExample::MCHitAnaExample(), geo::GeometryCore::NElements(), geo::GeometryCore::NSiblingElements(), trkf::CCTrackMaker::PlnMatch(), cluster::ClusterMatchAlg::PrepareDetParams(), trkf::CCTrackMaker::PrintClusters(), btutil::MCBTAlg::ProcessSimChannel(), trk::TrackContainmentAlg::ProcessTracks(), calo::ShowerCalorimetry::produce(), calo::Calorimetry::produce(), calo::GnocchiCalorimetry::produce(), evd::RawDataDrawer::RawDataDrawer(), evd::InfoTransfer::Rebuild(), evd::InfoTransfer::reconfigure(), hit::RFFHitFinderAlg::SetFitterParamsVectors(), ShowerRecoTools::ShowerLinearEnergy::ShowerLinearEnergy(), showerreco::ShowerRecoManager::ShowerRecoManager(), cluster::SmallClusterFinderAlg::SmallClusterFinderAlg(), trkf::CCTrackMaker::SortMatches(), cheat::BackTracker::SpacePointHitsToWeightedXYZ(), trkf::CCTrackMaker::StoreTrack(), geo::GeometryCore::ThirdPlane(), evd::TQPad::TQPad(), evd::TWireProjPad::TWireProjPad(), evd::TWQMultiTPCProjectionView::TWQMultiTPCProjectionView(), evd::TWQProjectionView::TWQProjectionView(), trkf::CCTrackMaker::VtxMatch(), and nnet::WaveformDenoiseTest::WaveformDenoiseTest().
|
inherited |
Returns the total number of ROP in the specified TPC set.
tpcsetid | TPC set ID |
Note that this methods explicitly check the existence of the TPC set.
The NSiblingElements() method is overloaded and its return depends on the type of ID.
Definition at line 1506 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by geo::GeometryCore::GetEndTPCsetID(), geo::GeometryCore::IncrementID(), and geo::GeometryCore::NSiblingElements().
|
inlineinherited |
Returns the number of cryostats in the detector.
The NElements() and NSiblingElements() methods are overloaded and their return depends on the type of ID.
Definition at line 432 of file GeometryCore.h.
References geo::GeometryCore::Ncryostats().
Referenced by geo::details::NSiblings().
|
inlineinherited |
Returns the largest number of TPCs a cryostat in the detector has.
Definition at line 692 of file GeometryCore.h.
References geo::GeometryCore::NTPC().
|
inlineinherited |
Returns the largest number of planes among all TPCs in this detector.
Definition at line 983 of file GeometryCore.h.
References geo::GeometryCore::Nplanes(), and geo::GeometryCore::Nviews().
|
inlineinherited |
Returns the total number of wires in the specified plane.
planeid | plane ID |
The NElements() and NSiblingElements() methods are overloaded and their return depends on the type of ID.
Definition at line 1157 of file GeometryCore.h.
References geo::GeometryCore::MaxWires(), and geo::GeometryCore::Nwires().
|
inlineinherited |
Returns the total number of TPC sets in the specified cryostat.
cryoid | cryostat ID |
The NSiblingElements() method is overloaded and its return depends on the type of ID.
Definition at line 1996 of file GeometryCore.h.
References geo::GeometryCore::MaxTPCsets(), and geo::GeometryCore::NTPCsets().
|
inlineinherited |
Returns the total number of ROP in the specified TPC set.
tpcsetid | TPC set ID |
Note that this methods explicitly check the existence of the TPC set.
The NSiblingElements() method is overloaded and its return depends on the type of ID.
Definition at line 2136 of file GeometryCore.h.
References geo::GeometryCore::MaxROPs(), and geo::GeometryCore::NROPs().
|
inlineinherited |
Returns the total number of TPCs in the specified cryostat.
cryoid | cryostat number |
The NElements() and NSiblingElements() methods are overloaded and their return depends on the type of ID.
Definition at line 686 of file GeometryCore.h.
References geo::GeometryCore::GetElementPtr(), and geo::CryostatGeo::NElements().
Referenced by detsim::WienerFilterAna::beginJob(), detsim::DriftElectronstoPlane::beginJob(), detsim::SimDriftElectrons::beginJob(), lar_cluster3d::StandardHit3DBuilder::BuildHitPairMap(), lar_cluster3d::SnippetHit3DBuilder::BuildHitPairMap(), mvapid::MVAAlg::CalcSegmentdEdxDist(), larg4::LArVoxelReadout::ClearSimChannels(), lar_cluster3d::StandardHit3DBuilder::CollectArtHits(), lar_cluster3d::SnippetHit3DBuilder::CollectArtHits(), hit::DisambigCheater::DisambigCheater(), detsim::WienerFilterAna::endJob(), mvapid::MVAAlg::GetWireNormals(), lar_cluster3d::SpacePointHit3DBuilder::Hit3DBuilder(), geo::GeometryCore::IncrementID(), apa::APAGeometryAlg::Init(), geo::GeometryCore::NElements(), geo::GeometryCore::NSiblingElements(), phot::PDFastSimPAR::PDFastSimPAR(), nnet::PointIdTrainingData::PointIdTrainingData(), evgen::ActiveVolumeVertexSampler::reconfigure(), evgen::ActiveVolumeVertexSampler::sample_vertex_pos(), evd::TWQProjectionView::SelectTPC(), phot::SemiAnalyticalModel::SemiAnalyticalModel(), tca::TrajClusterAlg::SetSourceHits(), evd::TWQProjectionView::SetUpTPCselection(), cheat::BackTracker::SpacePointHitsToWeightedXYZ(), tca::StitchPFPs(), apa::DisambigAlg::TrivialDisambig(), and evd::TWQMultiTPCProjectionView::TWQMultiTPCProjectionView().
|
inherited |
Returns the total number of TPC sets in the specified cryostat.
cryoid | cryostat ID |
The NSiblingElements() method is overloaded and its return depends on the type of ID.
Definition at line 1467 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by geo::GeometryCore::IncrementID(), geo::GeometryCore::NSiblingElements(), and geo::GeometryCore::Views().
|
inherited |
Returns the number of views (different wire orientations)
Returns the number of different views, or wire orientations, in the detector.
The function assumes that all TPCs in all cryostats of a detector have the same number of planes, which should be a safe assumption.
Definition at line 289 of file GeometryCore.cxx.
References geo::GeometryCore::MaxPlanes().
Referenced by evd_tool::MicroBooNEDrawer::DrawBadChannels(), evd_tool::ICARUSDrawer::DrawBadChannels(), and geo::GeometryCore::NSiblingElements().
|
inlineinherited |
Returns the total number of wires in the specified plane.
planeid | plane ID |
The NElements() and NSiblingElements() methods are overloaded and their return depends on the type of ID.
Definition at line 1151 of file GeometryCore.h.
References geo::GeometryCore::GetElementPtr(), and geo::PlaneGeo::NElements().
Referenced by lar_cluster3d::StandardHit3DBuilder::BuildChannelStatusVec(), lar_cluster3d::SnippetHit3DBuilder::BuildChannelStatusVec(), lar_pandora::LArPandoraInput::CreatePandoraReadoutGaps(), noisefilteralg::WireCellNoiseFilter::DoNoiseFilter(), evd_tool::MicroBooNEDrawer::DrawBadChannels(), evd_tool::ICARUSDrawer::DrawBadChannels(), sppt::SpacePointAlg_TimeSort::fillCoordinatesArrays(), trkf::CCTrackMaker::FillWireHitRange(), tca::FillWireHitRange(), vertex::FeatureVertexFinder::Find2dClusterVertexCandidates(), evd::RawDataDrawer::RoIextractorClass::Finish(), evd::RawDataDrawer::GetRegionOfInterest(), evd::RecoBaseDrawer::GetRegionOfInterest(), util::GeometryUtilities::GetYZ(), cluster::MergeClusterAlg::GlobalWire(), cluster::BlurredClusteringAlg::GlobalWire(), shower::EMShowerAlg::GlobalWire_(), corner::CornerFinderAlg::GrabWires(), geo::GeometryCore::IncrementID(), corner::CornerFinderAlg::InitializeGeometry(), lar_cluster3d::StandardHit3DBuilder::NearestWireID(), lar_cluster3d::SnippetHit3DBuilder::NearestWireID(), geo::GeometryCore::NElements(), geo::GeometryCore::NSiblingElements(), util::GeometryUtilities::SelectPolygonHitList(), evd::TWQProjectionView::SetWire(), img::DataProviderAlg::setWireDriftData(), cluster::HoughBaseAlg::Transform(), evd::TWireProjPad::TWireProjPad(), evd::TWQMultiTPCProjectionView::TWQMultiTPCProjectionView(), evd::TWQProjectionView::TWQProjectionView(), evd::RecoBaseDrawer::Wire2D(), geo::GeometryCore::WireIDIntersectionCheck(), evd::TWQMultiTPCProjectionView::ZoomInterest(), and evd::TWQProjectionView::ZoomInterest().
|
inherited |
Convert detector number and hardware channel to unique channel.
Definition at line 256 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by geo::GeometryCore::GetEndROPID(), and geo::GeometryCore::ThirdPlaneSlope().
|
inherited |
Get unique opdet number from cryo and internal count.
Definition at line 1569 of file GeometryCore.cxx.
References geo::GeometryCore::Cryostat(), geo::GeometryCore::Ncryostats(), and geo::CryostatGeo::NOpDet().
Referenced by geo::GeometryCore::GetClosestOpDet(), and geo::GeometryCore::GetEndROPID().
|
inherited |
Convert unique channel to detector number.
Definition at line 262 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by cheat::PhotonBackTracker::ChannelToTrackSDPs(), cosmic::BeamFlashTrackMatchTaggerAlg::CheckCompatibility(), opdet::OpDetResponseInterface::doReadoutToGeoChannel(), geo::GeometryCore::GetEndROPID(), geo::GeometryCore::OpDetGeoFromOpChannel(), cheat::PhotonBackTracker::OpHitToSDPs(), cheat::PhotonBackTracker::OpHitToSimSDPs_Ps(), cheat::PhotonBackTracker::OpHitToTrackSDPs(), cosmic::BeamFlashTrackMatchTaggerAlg::PrintHypothesisFlashComparison(), and cheat::PhotonBackTracker::TrackIdsToOpHits_Ps().
|
inherited |
Returns the geo::OpDetGeo
object for the given channel number.
OpChannel | optical detector unique channel number |
Definition at line 1597 of file GeometryCore.cxx.
References geo::GeometryCore::OpDetFromOpChannel(), and geo::GeometryCore::OpDetGeoFromOpDet().
Referenced by evdb_tool::OpHit3DDrawer::Draw(), evdb_tool::DrawSimPhoton3D::Draw(), evdb_tool::OpFlash3DDrawer::Draw(), opdet::GetHitGeometryInfo(), and geo::GeometryCore::ThirdPlaneSlope().
|
inherited |
Returns the geo::OpDetGeo
object for the given detector number.
OpDet | optical detector unique number |
Definition at line 1603 of file GeometryCore.cxx.
References geo::GeometryCore::Cryostat(), geo::GeometryCore::Ncryostats(), geo::CryostatGeo::NOpDet(), and geo::CryostatGeo::OpDet().
Referenced by opdet::SimPhotonCounter::beginJob(), phot::CreateHybridLibrary::CreateHybridLibrary(), phot::PhotonVisibilityService::DistanceToOpDetImpl(), larg4::OpDetLookup::FindClosestOpDet(), phot::PhotonLibraryHybrid::GetCount(), phot::PropagationTimeModel::opDetCenters(), phot::PDFastSimPAR::opDetCenters(), geo::GeometryCore::OpDetGeoFromOpChannel(), phot::PropagationTimeModel::opDetOrientations(), larg4::OpFastScintillation::OpFastScintillation(), phot::SemiAnalyticalModel::opticalDetectors(), phot::PhotonVisibilityService::SolidAngleFactorImpl(), and geo::GeometryCore::ThirdPlaneSlope().
|
inherited |
Returns gdml string which gives sensitive opdet name.
c | ID of the cryostat the detector is in |
This name is defined in the geometry (GDML) description.
Definition at line 1562 of file GeometryCore.cxx.
References geo::GeometryCore::Cryostat(), and geo::CryostatGeo::OpDetGeoName().
Referenced by larg4::LArG4::beginJob(), and geo::GeometryCore::ThirdPlaneSlope().
Returns the specified wire.
planeid | ID of the plane |
p | plane number within the TPC |
tpc | TPC number within the cryostat |
cstat | number of cryostat |
cet::exception | (GeometryCore category) if cryostat not present |
cet::exception | (TPCOutOfRange category) if no such TPC |
cet::exception | (PlaneOutOfRange category) if no such plane |
The GetElement() method is overloaded and its return depends on the type of ID.
Definition at line 1034 of file GeometryCore.h.
References geo::TPCGeo::Plane(), and geo::GeometryCore::TPC().
Referenced by hit::MagDriftAna::analyze(), hit::GausHitFinderAna::analyze(), cluster::ClusterMergeHelper::AppendResult(), ShowerRecoTools::ShowerUnidirectiondEdx::CalculateElement(), ShowerRecoTools::ShowerTrajPointdEdx::CalculateElement(), util::GeometryUtilities::CalculatePitch(), util::GeometryUtilities::CalculatePitchPolar(), evd::RecoBaseDrawer::Cluster2D(), pma::CmToWireDrift(), tca::dEdx(), hit::DisambigCheater::DisambigCheater(), trkf::Track3DKalmanSPS::dQdxCalc(), evd::RecoBaseDrawer::DrawTrack2D(), evd::RecoBaseDrawer::DrawTrackVertexAssns2D(), cluster::EndPointAlg::EndPoint(), evd::RecoBaseDrawer::EndPoint2D(), evd::RecoBaseDrawer::Event2D(), cluster::HoughBaseAlg::FastTransform(), filter::MuonFilter::filter(), evd::TWQMultiTPCProjectionView::FindEndPoint(), evd::TWQProjectionView::FindEndPoint(), evd::TWQMultiTPCProjectionView::FindLineLength(), evd::TWQProjectionView::FindLineLength(), util::GeometryUtilities::Get2DangleFrom3D(), util::GeometryUtilities::Get2DPointProjection(), pma::ProjectionMatchingAlg::GetCloseHits_(), geo::GeometryCore::GetElement(), calo::Calorimetry::GetPitch(), util::GeometryUtilities::GetProjectedPoint(), pma::GetProjectionToPlane(), util::GeometryUtilities::GetTimeTicks(), util::GeometryUtilities::GetXYZ(), cluster::HoughBaseAlg::HoughBaseAlg(), geo::GeometryCore::IncrementID(), shower::EMShowerAlg::MakeShower(), trkf::SpacePointAlg::makeSpacePoints(), lar_cluster3d::StandardHit3DBuilder::NearestWireID(), lar_cluster3d::SnippetHit3DBuilder::NearestWireID(), geo::GeometryCore::NearestWireID(), shower::LArPandoraShowerAlg::OrderShowerHits(), util::GeometryUtilities::PitchInView(), cluster::ClusterCheater::produce(), trkf::SpacePts::produce(), trkf::Track3Dreco::produce(), cluster::SmallClusterFinder::produce(), vertex::VertexFinder2D::produce(), evd::GraphCluster::produce(), calo::Calorimetry::produce(), evd::RecoBaseDrawer::Prong2D(), pma::ProjectionMatchingAlg::validate(), pma::ProjectionMatchingAlg::validate_on_adc_test(), geo::GeometryCore::View(), geo::GeometryCore::Wire(), geo::GeometryCore::WireCoordinate(), pma::WireDriftToCm(), and geo::GeometryCore::WirePitch().
|
inherited |
Returns the distance between two planes.
p1 | index of the first plane |
p2 | index of the second plane |
tpc | tpc number within the cryostat |
cstat | cryostat number |
add a version with plane IDs
deprecate this function
add a default version for a given TPCID
add a version with two plane indices for a given TPCID
return the absolute value of the distance (makes the order unimportant)
document what will happen (in the future methods) with planes on different TPCs
Definition at line 749 of file GeometryCore.cxx.
References geo::TPCGeo::PlanePitch(), and geo::GeometryCore::TPC().
Referenced by geo::GeometryCore::GetBeginPlaneID(), geo::GeometryCore::PlanePitch(), trkf::SpacePts::produce(), and trkf::Track3Dreco::produce().
Returns the distance between two planes.
p1 | index of the first plane |
p2 | index of the second plane |
tpc | tpc number within the cryostat |
cstat | cryostat number |
add a version with plane IDs
deprecate this function
add a default version for a given TPCID
add a version with two plane indices for a given TPCID
return the absolute value of the distance (makes the order unimportant)
document what will happen (in the future methods) with planes on different TPCs
Definition at line 756 of file GeometryCore.cxx.
References geo::TPCID::asTPCID(), geo::PlaneID::Plane, and geo::GeometryCore::PlanePitch().
Returns the specified plane.
planeid | plane ID |
The GetElementPtr() method is overloaded and its return depends on the type of ID.
Definition at line 1047 of file GeometryCore.h.
References geo::TPCGeo::PlanePtr(), and geo::GeometryCore::TPCPtr().
Referenced by geo::GeometryCore::GetElementPtr(), geo::GeometryCore::GetEndWireID(), geo::GeometryCore::HasWire(), and geo::GeometryCore::WirePtr().
|
inherited |
Returns the ID of the TPC channel connected to the specified wire.
plane | the number of plane |
wire | the number of wire |
tpc | the number of TPC |
cryostat | the number of cryostat |
wireid | the ID of the wire |
Definition at line 1124 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by hit::MCHitAnaExample::analyze(), cluster::BlurredClusteringAlg::ConvertRecobHitsToVector(), lar_pandora::LArPandoraInput::CreatePandoraReadoutGaps(), evd::TQPad::Draw(), evd_tool::MicroBooNEDrawer::DrawBadChannels(), evd_tool::ICARUSDrawer::DrawBadChannels(), evd::RawDataDrawer::FillTQHisto(), tca::FillWireHitRange(), vertex::FeatureVertexFinder::Find3dVtxFrom2dClusterVtxCand(), evd::TWQMultiTPCProjectionView::FindEndPoint(), evd::TWQMultiTPCProjectionView::FindLineLength(), vertex::FeatureVertexFinder::Get3dVertexCandidates(), tca::GetOrigin(), util::GeometryUtilities::GetProjectedPoint(), util::GeometryUtilities::GetYZ(), cluster::DBScan3DAlg::init(), apa::DisambigAlg::MakeCloseHits(), tca::NearbySrcHit(), geo::GeometryCore::NearestChannel(), vertex::VertexFinder2D::produce(), calo::Calorimetry::produce(), lariov::SIOVElectronicsCalibProvider::Reconfigure(), lariov::DetPedestalRetrievalAlg::Reconfigure(), pma::ProjectionMatchingAlg::validate(), pma::ProjectionMatchingAlg::validate_on_adc(), pma::ProjectionMatchingAlg::validate_on_adc_test(), geo::GeometryCore::Views(), and evd::RecoBaseDrawer::Wire2D().
|
inherited |
Returns the auxiliary detector at specified location.
point | location to be tested |
ad | _(output)_ the auxiliary detector index |
tolerance | tolerance (cm) for matches. Default 0. |
Definition at line 416 of file GeometryCore.cxx.
References geo::GeometryCore::AuxDet(), and geo::GeometryCore::FindAuxDetAtPosition().
Referenced by larg4::AuxDetReadoutGeometry::FindAndMakeAuxDet(), and geo::GeometryCore::NAuxDets().
|
inherited |
Returns the auxiliary detector at specified location.
point | location to be tested |
ad | _(output)_ the auxiliary detector index |
sv | _(output)_ the auxiliary detector sensitive volume index |
tolerance | tolerance (cm) for matches. Default 0. |
Definition at line 436 of file GeometryCore.cxx.
References geo::GeometryCore::AuxDet(), geo::GeometryCore::FindAuxDetSensitiveAtPosition(), and geo::AuxDetGeo::SensitiveVolume().
Referenced by geo::GeometryCore::NAuxDets().
|
inherited |
Returns the cryostat at specified location.
point | the location [cm] |
geo::CryostatGeo
containing point
cet::exception | ("Geometry" category) if no cryostat matches |
The tolerance used here is the one returned by DefaultWiggle().
Definition at line 403 of file GeometryCore.cxx.
References geo::GeometryCore::PositionToCryostatPtr().
Referenced by geo::GeometryCore::GetElementPtr().
|
inherited |
Returns the ID of the cryostat at specified location.
point | the location [cm] |
point
(invalid if none)The tolerance used here is the one returned by DefaultWiggle().
Definition at line 352 of file GeometryCore.cxx.
References geo::CryostatGeo::ID(), and geo::GeometryCore::PositionToCryostatPtr().
Referenced by pma::ProjectionMatchingAlg::buildShowerSeg(), ems::MultiEMShowers::convCluster(), larg4::LArVoxelReadoutGeometry::FindNestedVolume(), geo::GeometryCore::GetElementPtr(), sim::MCRecoEdep::MakeMCEdep(), evd::SimulationDrawer::MCTruthOrtho(), and detsim::SimDriftElectrons::produce().
|
inherited |
Returns the cryostat at specified location.
point | the location [cm] |
geo::CryostatGeo
including point
, or nullptr
The tolerance used here is the one returned by DefaultWiggle().
Definition at line 343 of file GeometryCore.cxx.
References geo::GeometryCore::fPositionWiggle.
Referenced by geo::GeometryCore::FindTPCAtPosition(), geo::GeometryCore::GetClosestOpDet(), geo::GeometryCore::GetElementPtr(), geo::GeometryCore::PositionToCryostat(), geo::GeometryCore::PositionToCryostatID(), and geo::GeometryCore::PositionToTPCptr().
Returns the TPC at specified location.
point | the location [cm] |
geo::TPCGeo
including point
cet::exception | ("Geometry" category) if no TPC matches |
Definition at line 366 of file GeometryCore.cxx.
References geo::GeometryCore::PositionToTPCptr().
Referenced by geo::GeometryCore::GetElementPtr(), and opreco::OpticalRecoAna::update_MC_particle_time().
Returns the ID of the TPC at specified location.
point | the location [cm] |
PositionToTPC()
Definition at line 373 of file GeometryCore.cxx.
References geo::TPCGeo::ID(), and geo::GeometryCore::PositionToTPCptr().
Referenced by larg4::ISCalcCorrelated::AngleToEFieldAtStep(), evdb_tool::DrawLArVoxel3D::Draw(), evdb_tool::DrawSimEnergyDeposit3D::drawAll(), evdb_tool::DrawSimEnergyDeposit3D::drawMCPartAssociated(), larg4::ISCalcCorrelated::EFieldAtStep(), larg4::LArVoxelReadoutGeometry::FindNestedVolume(), geo::GeometryCore::GetElementPtr(), lar_pandora::LArPandoraInput::GetTrueX0(), apa::APAGeometryAlg::LineSegChanIntersect(), sim::MCRecoEdep::MakeMCEdep(), evd::SimulationDrawer::MCTruth3D(), detsim::SimDriftElectrons::produce(), and cheat::BackTracker::SpacePointHitsToWeightedXYZ().
Returns the TPC at specified location.
point | the location [cm] |
geo::TPCGeo
including point
, or nullptr
if none Definition at line 359 of file GeometryCore.cxx.
References geo::GeometryCore::fPositionWiggle, geo::GeometryCore::PositionToCryostatPtr(), and geo::CryostatGeo::PositionToTPCptr().
Referenced by geo::GeometryCore::GetElementPtr(), lar_pandora::PFParticleMonitoring::GetStartAndEndPoints(), geo::GeometryCore::PositionToTPC(), and geo::GeometryCore::PositionToTPCID().
|
private |
Updates the geometry if needed at the beginning of each new run.
Definition at line 79 of file Geometry.cc.
References CheckConfigurationInfo(), fConfInfo, fNonFatalConfCheck, art::Run::id(), and ReadConfigurationInfo().
Referenced by Geometry().
|
inherited |
Prints geometry information with maximum verbosity.
Definition at line 2677 of file GeometryCore.h.
References geo::GeometryCore::AuxDet(), geo::GeometryCore::DetectorEnclosureBox(), geo::GeometryCore::DetectorName(), geo::PlaneGeo::ID(), art::detail::indent(), geo::AuxDetSensitiveGeo::MaxVerbosity, geo::AuxDetGeo::MaxVerbosity, geo::OpDetGeo::MaxVerbosity, geo::WireGeo::MaxVerbosity, geo::TPCGeo::MaxVerbosity, geo::PlaneGeo::MaxVerbosity, geo::GeometryCore::NAuxDets(), geo::GeometryCore::Ncryostats(), geo::TPCGeo::Nplanes(), geo::AuxDetGeo::NSensitiveVolume(), geo::PlaneGeo::Nwires(), geo::TPCGeo::Plane(), geo::AuxDetSensitiveGeo::PrintAuxDetInfo(), geo::AuxDetGeo::PrintAuxDetInfo(), geo::OpDetGeo::PrintOpDetInfo(), geo::PlaneGeo::PrintPlaneInfo(), geo::TPCGeo::PrintTPCInfo(), geo::WireGeo::PrintWireInfo(), geo::AuxDetGeo::SensitiveVolume(), geo::GeometryCore::SignalType(), geo::SignalTypeName(), w, and geo::PlaneGeo::Wire().
Referenced by geo::DumpGeometry::dumpGeometryCore(), geo::GeometryCore::Info(), and geo::GeometryCore::SurfaceY().
|
inline |
Returns a pointer to the geometry service provider.
Definition at line 188 of file Geometry.h.
|
staticprivate |
Reads and returns the geometry configuration information from the run.
Definition at line 193 of file Geometry.cc.
References e, and art::ProductRetriever::getProduct().
Referenced by preBeginRun().
|
inlineinherited |
Returns the full directory path to the geometry file source.
This is the full path of the source of the detector geometry GeometryCore relies on.
Definition at line 184 of file GeometryCore.h.
References geo::GeometryCore::fROOTfile.
Referenced by geo::DumpGeometry::dumpGeometryCore(), and evgen::GENIEGen::GENIEGen().
|
inherited |
Access to the ROOT geometry description manager.
Definition at line 192 of file GeometryCore.cxx.
Referenced by evgen::BaseRadioGen::BaseRadioGen(), evgen::LightSource::checkMaterials(), geo::GeometryCore::FindAllVolumePaths(), geo::GeometryCore::FindAllVolumes(), geo::GeometryCore::FindDetectorEnclosure(), evgen::GENIEGen::GENIEGen(), evgen::RadioGen::SampleOne(), and geo::GeometryCore::SurfaceY().
|
inherited |
Returns a list of ID of TPCs the specified ROP spans.
ropid | ID of the readout plane |
Note that this check is performed on the validity of the readout plane ID, that does not necessarily imply that the readout plane specified by the ID actually exists. Check if the ROP exists with HasROP(). The behaviour on non-existing readout planes is undefined.
Definition at line 1536 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by reco3d::TripletFinder::FillBadMap(), reco3d::TripletFinder::FillHitMap(), and geo::GeometryCore::HasElement().
|
inherited |
Returns a list of ID of planes belonging to the specified ROP.
ropid | ID of the readout plane |
If ropid is an invalid ID, an empty list is returned. If ropid is a valid ID (i.e. an ID whose isValid flag is set) that points to a non-existent readout plane, the result is undefined. Use HasROP() to check if the readout plane actually exists.
Definition at line 1530 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by geo::GeometryCore::HasElement().
Returns the type of signal on the channels of specified TPC plane.
plane | TPC plane ID |
Assumes that all the channels on the plane have the same signal type.
Definition at line 469 of file GeometryCore.cxx.
References geo::GeometryCore::WirePlaneToROP().
Referenced by caldata::CalWireAna::analyze(), lar::example::AnalysisExample::analyze(), evdb_tool::DrawWireHist::BookHistogram(), evdb_tool::DrawRawHist::BookHistogram(), cluster::HoughBaseAlg::FastTransform(), reco3d::TripletFinder::FillHitMap(), hit::HitCheater::FindHitsOnChannel(), geo::GeometryCore::GetBeginPlaneID(), geo::GeometryCore::GetEndROPID(), cluster::MergeClusterAlg::GlobalWire(), cluster::BlurredClusteringAlg::GlobalWire(), shower::EMShowerAlg::GlobalWire_(), cluster::HoughBaseAlg::HoughBaseAlg(), shwf::ShowerReco::LongTransEnergy(), trkf::SpacePointAlg::makeSpacePoints(), geo::GeometryCore::Print(), evd::TWQMultiTPCProjectionView::PrintCharge(), evd::TWQProjectionView::PrintCharge(), hit::TTHitFinder::produce(), hit::RawHitFinder::produce(), hit::FFTHitFinder::produce(), cluster::DBcluster::produce(), caldata::CalWire::produce(), reco3d::SpacePointSolver::produce(), trkf::SpacePts::produce(), detsim::SimWire::produce(), evd::RawDataDrawer::QueueDrawingBoxes(), lariov::DetPedestalRetrievalAlg::Reconfigure(), hit::RFFHitFinderAlg::Run(), evd::TWireProjPad::TWireProjPad(), trkf::SpacePointAlg::update(), geo::GeometryCore::Views(), and evd::RecoBaseDrawer::Wire2D().
|
inherited |
Returns the type of signal on the specified TPC channel.
channel | TPC channel ID |
Definition at line 463 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
|
inherited |
Returns the type of signal of channels in specified readout plane.
ropid | readout plane ID |
Assumes that all the channels on the readout plane have the same signal type. If ropid is an invalid ID, geo::kMysteryType is returned. If ropid is a valid ID (i.e. an ID whose isValid flag is set) that points to a non-existent readout plane, the result is undefined. Use HasROP() to check if the readout plane actually exists.
Definition at line 1554 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
|
inlineinherited |
The position of the detector respect to earth surface.
This is the depth (y) of the surface (where earth meets air) for this detector site. The number is expressed in world coordinates and in centimetres, and it represents the y coordinate of earth surface. A negative value means that the origin of coordinates, typically matching the detector centre, is above surface.
Definition at line 251 of file GeometryCore.h.
References geo::GeometryCore::DetectorEnclosureBox(), geo::GeometryCore::FindAllVolumePaths(), geo::GeometryCore::FindAllVolumes(), geo::GeometryCore::fSurfaceY, geo::GeometryCore::GetWorldVolumeName(), art::detail::indent(), geo::GeometryCore::Info(), geo::GeometryCore::MassBetweenPoints(), geo::GeometryCore::Material(), geo::GeometryCore::MaterialName(), geo::GeometryCore::Print(), geo::GeometryCore::ROOTGeoManager(), geo::GeometryCore::TotalMass(), and geo::GeometryCore::VolumeName().
Referenced by evgen::CosmicsGen::produce().
|
inherited |
Returns the plane that is not in the specified arguments.
pid1 | a plane |
pid2 | another plane |
cet::exception | (category: "GeometryCore") if other than 3 planes |
cet::exception | (category: "GeometryCore") if pid1 and pid2 match |
This function requires a geometry with exactly three planes. If the two input planes are not on the same TPC, the result is undefined.
Definition at line 1292 of file GeometryCore.cxx.
References geo::GeometryCore::Nplanes(), and geo::PlaneID::Plane.
Referenced by geo::GeometryCore::ThirdPlane_dTdW(), and geo::GeometryCore::ThirdPlaneSlope().
|
inherited |
Returns dT/dW on the third plane, given it in the other two.
pid1 | ID of the plane of the first dT/dW |
dTdW1 | dT/dW as seen on the first plane |
pid2 | ID of the plane of the second dT/dW |
dTdW2 | dT/dW as seen on the second plane |
output_plane | ID of the plane on which to calculate the slope |
cet::exception | (category: "GeometryCore") if different TPC |
cet::exception | (category: "GeometryCore") if same plane |
cet::exception | (category: "GeometryCore") if other than 3 planes |
Given a dT/dW as projected in two planes, returns the dT/dW as projected in the third plane. The dT/dW are defined in time ticks/wide number units.
Definition at line 1352 of file GeometryCore.cxx.
References geo::GeometryCore::ComputeThirdPlane_dTdW(), geo::PlaneGeo::PhiZ(), geo::TPCGeo::Plane(), geo::GeometryCore::TPC(), and geo::PlaneGeo::WirePitch().
Referenced by geo::GeometryCore::ThirdPlane_dTdW(), and geo::GeometryCore::ThirdPlaneSlope().
|
inherited |
Returns dT/dW on the third plane, given it in the other two.
pid1 | ID of the plane of the first dT/dW |
dTdW1 | dT/dW as seen on the first plane |
pid2 | ID of the plane of the second dT/dW |
dTdW2 | dT/dW as seen on the second plane |
cet::exception | (category: "GeometryCore") if different TPC |
cet::exception | (category: "GeometryCore") if same plane |
cet::exception | (category: "GeometryCore") if other than 3 planes |
Given a dT/dW as projected in two planes, returns the dT/dW as projected in the third plane. This function is a shortcut assuming exactly three wire planes in the TPC, in which case the output plane is chosen as the one that is neither of the input planes.
Definition at line 1379 of file GeometryCore.cxx.
References geo::GeometryCore::ThirdPlane(), and geo::GeometryCore::ThirdPlane_dTdW().
|
inherited |
Returns the slope on the third plane, given it in the other two.
pid1 | ID of the plane of the first slope |
slope1 | slope as seen on the first plane |
pid2 | ID of the plane of the second slope |
slope2 | slope as seen on the second plane |
output_plane | ID of the plane on which to calculate the slope |
cet::exception | (category: "GeometryCore") if different TPC |
cet::exception | (category: "GeometryCore") if input planes match |
Given a slope as projected in two planes, returns the slope as projected in the specified output plane. The slopes are defined in uniform units; they should be computed as distance ratios (or tangent of a geometrical angle; the formula is still valid using dt/dw directly in case of equal wire pitch in all planes and uniform drift velocity.
Definition at line 1321 of file GeometryCore.cxx.
References geo::GeometryCore::ComputeThirdPlaneSlope(), geo::PlaneGeo::PhiZ(), geo::TPCGeo::Plane(), and geo::GeometryCore::TPC().
Referenced by trkf::CCTrackMaker::FillEndMatch(), trkf::CCTrackMaker::PlnMatch(), and geo::GeometryCore::ThirdPlaneSlope().
|
inherited |
Returns the slope on the third plane, given it in the other two.
pid1 | ID of the plane of the first slope |
slope1 | slope as seen on the first plane |
pid2 | ID of the plane of the second slope |
slope2 | slope as seen on the second plane |
cet::exception | (category: "GeometryCore") if different TPC |
cet::exception | (category: "GeometryCore") if same plane |
cet::exception | (category: "GeometryCore") if other than 3 planes |
Given a slope as projected in two planes, returns the slope as projected in the third plane. This function is a shortcut assuming exactly three wire planes in the TPC, in which case the output plane is chosen as the one that is neither of the input planes.
Definition at line 1342 of file GeometryCore.cxx.
References geo::GeometryCore::ThirdPlane(), and geo::GeometryCore::ThirdPlaneSlope().
|
inlineinherited |
Returns the slope on the third plane, given it in the other two.
plane1 | index of the plane of the first slope |
slope1 | slope as seen on the first plane |
plane2 | index of the plane of the second slope |
slope2 | slope as seen on the second plane |
tpcid | TPC where the two planes belong |
cet::exception | (category: "GeometryCore") if different TPC |
cet::exception | (category: "GeometryCore") if same plane |
cet::exception | (category: "GeometryCore") if other than 3 planes |
Given a slope as projected in two planes, returns the slope as projected in the third plane.
Definition at line 1586 of file GeometryCore.h.
References geo::GeometryCore::ComputeThirdPlane_dTdW(), geo::GeometryCore::ComputeThirdPlaneSlope(), geo::GeometryCore::cryostat_zero, geo::GeometryCore::GetClosestOpDet(), geo::GeometryCore::NOpDets(), geo::GeometryCore::OpChannel(), geo::GeometryCore::OpDetGeoFromOpChannel(), geo::GeometryCore::OpDetGeoFromOpDet(), geo::GeometryCore::OpDetGeoName(), geo::GeometryCore::ThirdPlane_dTdW(), and geo::GeometryCore::ThirdPlaneSlope().
|
inlineinherited |
Returns the total mass [kg] of the specified volume (default: world).
Definition at line 319 of file GeometryCore.h.
Referenced by evgen::GENIEGen::GENIEGen(), and geo::GeometryCore::SurfaceY().
|
inherited |
Returns the total mass [kg] of the specified volume (default: world).
Definition at line 1021 of file GeometryCore.cxx.
|
inherited |
Returns the total number of TPCs in the detector.
Definition at line 807 of file GeometryCore.cxx.
References geo::GeometryCore::begin(), geo::GeometryCore::Cryostats(), geo::GeometryCore::end(), geo::CryostatGeo::NTPC(), and sum.
Referenced by geo::GeometryCore::Iterate().
Returns the specified TPC.
tpcid | ID of the tpc |
tpc | tpc number within the cryostat |
cstat | number of cryostat |
cet::exception | (GeometryCore category) if cryostat not present |
cet::exception | (TPCOutOfRange category) if no such TPC |
The GetElement() method is overloaded and its return depends on the type of ID.
Definition at line 722 of file GeometryCore.h.
References geo::GeometryCore::Cryostat(), and geo::CryostatGeo::TPC().
Referenced by hit::MagDriftAna::analyze(), larg4::ISCalcCorrelated::AngleToEFieldAtStep(), pma::ProjectionMatchingAlg::buildShowerSeg(), phot::PropagationTimeModel::cathodeCentre(), pma::VtxCandidate::ComputeMse2D(), geo::GeometryCore::DetHalfHeight(), geo::GeometryCore::DetHalfWidth(), geo::GeometryCore::DetLength(), hit::DisambigCheater::DisambigCheater(), larg4::LArVoxelReadout::DriftIonizationElectrons(), larg4::ISCalcCorrelated::EFieldAtStep(), larg::LArSimChannelAna::ensureHists(), hit::MagDriftAna::ensureHists(), trkf::SpacePointAlg::fillComplexSpacePoint(), tca::FillWireHitRange(), tca::FindShowers3D(), lar_pandora::detector_functions::GetDetectorType(), geo::GeometryCore::GetElement(), geo::GeometryCore::GetEndPlaneID(), geo::GeometryCore::GetEndWireID(), geo::GeometryCore::GetLArTPCVolumeName(), trkf::FeatureTracker::GetProjectedEnds(), nnet::TrainingDataAlg::getProjection(), geo::GeometryCore::GetTPCFrontFaceCenter(), lar_pandora::LArPandoraInput::GetTrueX0(), pma::ProjectionMatchingAlg::guideEndpoints(), geo::GeometryCore::IncrementID(), pma::Track3D::InitFromMiddle(), trkf::SpacePointAlg::makeSpacePoints(), pma::PMAlgTracker::matchCluster(), larg4::OpFastScintillation::OpFastScintillation(), geo::GeometryCore::Plane(), geo::GeometryCore::PlanePitch(), trkf::PMAlgTrajFitter::produce(), detsim::DriftElectronstoPlane::produce(), detsim::SimDriftElectrons::produce(), trkf::PMAlgTrackMaker::produce(), evgen::ActiveVolumeVertexSampler::sample_vertex_pos(), tca::SaveCRInfo(), phot::SemiAnalyticalModel::SemiAnalyticalModel(), lar_pandora::LArPandoraGeometry::ShouldSwitchUV(), trkf::CCTrackMaker::TagCosmics(), lar_pandora::VintageLArTPCThreeView::TargetViewU(), lar_pandora::VintageLArTPCThreeView::TargetViewV(), geo::GeometryCore::ThirdPlane_dTdW(), geo::GeometryCore::ThirdPlaneSlope(), apa::APAGeometryAlg::ThreeChanPos(), calo::GnocchiCalorimetry::TrajectoryToWirePosition(), apa::DisambigAlg::TrivialDisambig(), DUNE::NeutrinoTrackingEff::truthLength(), trkf::SpacePointAlg::update(), apa::DisambigAlg::UseEndPts(), pma::ProjectionMatchingAlg::validate(), pma::ProjectionMatchingAlg::validate_on_adc_test(), evd::RecoBaseDrawer::Vertex2D(), trkf::VertexFitAlg::VertexFit(), geo::GeometryCore::WireAngleToVertical(), and geo::GeometryCore::WirePitch().
Returns the specified TPC.
tpcid | TPC ID |
The GetElementPtr() method is overloaded and its return depends on the type of ID.
Definition at line 735 of file GeometryCore.h.
References geo::GeometryCore::CryostatPtr(), and geo::CryostatGeo::TPCPtr().
Referenced by geo::GeometryCore::GetElementPtr(), geo::GeometryCore::GetEndPlaneID(), geo::GeometryCore::GetEndWireID(), geo::GeometryCore::HasPlane(), and geo::GeometryCore::PlanePtr().
|
inherited |
Returns a list of ID of TPCs belonging to the specified TPC set.
tpcsetid | ID of the TPC set to convert into TPC IDs |
Note that the check is performed on the validity of the TPC set ID, that does not necessarily imply that the TPC set specified by the ID actually exists. Check the existence of the TPC set first (HasTPCset()). Behaviour on valid, non-existent TPC set IDs is undefined.
Definition at line 1497 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by geo::GeometryCore::HasElement().
|
inherited |
Returns the ID of the TPC set tpcid belongs to.
Definition at line 1491 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by geo::GeometryCore::FindTPCsetAtPosition(), and geo::GeometryCore::HasElement().
Returns the view (wire orientation) on the channels of specified TPC plane.
plane | TPC plane ID |
Definition at line 489 of file GeometryCore.cxx.
References geo::kUnknown, geo::GeometryCore::Plane(), and geo::PlaneGeo::View().
Referenced by nnet::WaveformDenoiseTest::analyze(), nnet::NoiseWaveformDump::analyze(), nnet::RawWaveformDump::analyze(), nnet::RawWaveformClnSigDump::analyze(), calo::TrackCalorimetryAlg::AnalyzeHit(), apa::APAGeometryAlg::APAChannelsIntersect(), apa::APAGeometryAlg::APAView(), tca::FillWireHitRange(), hit::HitCheater::FindHitsOnChannel(), apa::APAGeometryAlg::FirstChannelInView(), corner::CornerFinderAlg::get_feature_points(), corner::CornerFinderAlg::get_feature_points_LineIntegralScore(), geo::GeometryCore::GetBeginPlaneID(), geo::GeometryCore::GetEndROPID(), quad::GetPts2D(), apa::APAGeometryAlg::Init(), apa::DisambigAlg::MakeCloseHits(), apa::APAGeometryAlg::NearestWireIDOnChan(), reco3d::SpacePointSolver::produce(), cluster::TrajCluster::produce(), vertex::FeatureVertexFinder::produce(), shower::TCShowerTemplateMaker::showerProfileTrue(), lar_pandora::DUNEFarDetVDThreeView::TargetViewU(), lar_pandora::ProtoDUNEDualPhase::TargetViewU(), lar_pandora::VintageLArTPCThreeView::TargetViewU(), lar_pandora::DUNEFarDetVDThreeView::TargetViewV(), lar_pandora::ProtoDUNEDualPhase::TargetViewV(), lar_pandora::VintageLArTPCThreeView::TargetViewV(), lar_pandora::DUNEFarDetVDThreeView::TargetViewW(), lar_pandora::ICARUS::TargetViewW(), lar_pandora::VintageLArTPCThreeView::TargetViewW(), cheat::BackTracker::TrackIdToSimIDEs_Ps(), geo::GeometryCore::View(), and geo::GeometryCore::Views().
|
inherited |
Returns the view (wire orientation) on the specified TPC channel.
channel | TPC channel ID |
The view of the readout plane channel
belongs to is returned, as in View(readout::ROPID const&) const
.
Definition at line 483 of file GeometryCore.cxx.
References geo::GeometryCore::ChannelToROP(), raw::InvalidChannelID, geo::kUnknown, and geo::GeometryCore::View().
|
inherited |
Returns the view of the channels in the specified readout plane.
ropid | readout plane ID |
Returns the view (wire orientation) on the channels of specified readout plane. If ropid is an invalid ID, geo::kUnknown is returned. If ropid is a valid ID (i.e. an ID whose isValid flag is set) that points to a non-existent readout plane, the result is undefined. Use HasROP() to check if the readout plane actually exists.
Definition at line 1548 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg, and geo::GeometryCore::View().
|
inlineinherited |
Returns a list of possible views in the detector.
Definition at line 1882 of file GeometryCore.h.
References geo::GeometryCore::allViews, c1, c2, geo::GeometryCore::ChannelsIntersect(), geo::GeometryCore::ChannelToROP(), geo::GeometryCore::ChannelToWire(), geo::GeometryCore::HasChannel(), geo::GeometryCore::NearestChannel(), geo::GeometryCore::NTPCsets(), geo::GeometryCore::PlaneWireToChannel(), geo::GeometryCore::SignalType(), and geo::GeometryCore::View().
Referenced by cluster::HoughLineFinderAna::analyze(), vertex::FeatureVertexFinderAna::analyze(), detinfo::DetectorPropertiesStandard::CheckTimeOffsets(), cluster::EndPointAlg::EndPoint(), cluster::HoughBaseAlg::FastTransform(), pma::PMAlgTracker::PMAlgTracker(), and vertex::VertexFinder2D::produce().
|
inherited |
Returns the name of the deepest volume containing specified point.
point | the location to query, in world coordinates |
what happens if none?
Unify the coordinates type
Definition at line 928 of file GeometryCore.cxx.
References util::abs(), and geo::GeometryCore::WorldVolume().
Referenced by larg4::LArG4Ana::analyze(), LArStackingAction::InsideTPC(), and geo::GeometryCore::SurfaceY().
Returns the specified wire.
wireid | ID of the wire |
cet::exception | if not found |
The GetElement() method is overloaded and its return depends on the type of ID.
Definition at line 1210 of file GeometryCore.h.
References geo::GeometryCore::Plane(), and geo::PlaneGeo::Wire().
Referenced by geo::GeometryCore::ChannelsIntersect(), lar_pandora::LArPandoraInput::CreatePandoraHits2D(), util::GeometryUtilities::GeometryUtilities(), geo::GeometryCore::GetElement(), lar_pandora::PFParticleHitDumper::GetUVW(), geo::GeometryCore::IncrementID(), trkf::Track3DKalmanHitAlg::makeSeed(), geo::GeometryCore::WireEndPoints(), and geo::GeometryCore::WireIDToWireGeo().
Returns the angle of the wires in the specified view from vertical.
view | the view |
TPC | the index of the TPC in the specified cryostat |
Cryo | the cryostat |
tpcid | ID of the TPC |
cet::exception | ("GeometryCore" category) if no such view |
The angle is defined as in WireGeo::ThetaZ().
This method assumes all wires in the view have the same angle (it queries for the first).
Definition at line 781 of file GeometryCore.cxx.
References geo::TPCGeo::Nplanes(), geo::TPCGeo::Plane(), geo::PlaneGeo::ThetaZ(), geo::GeometryCore::TPC(), geo::PlaneGeo::View(), and geo::PlaneGeo::ViewName().
Referenced by ShowerRecoTools::ShowerUnidirectiondEdx::CalculateElement(), util::GeometryUtilities::CalculatePitch(), util::GeometryUtilities::CalculatePitchPolar(), util::GeometryUtilities::Get2DangleFrom3D(), calo::GnocchiCalorimetry::GetPitch(), shower::EMShowerAlg::MakeShower(), util::GeometryUtilities::PitchInView(), calo::ShowerCalorimetry::produce(), calo::Calorimetry::produce(), lar_pandora::detector_functions::WireAngle(), lar_pandora::PFParticleHitDumper::YZtoU(), and lar_pandora::PFParticleHitDumper::YZtoV().
|
inherited |
Returns the index of the nearest wire to the specified position.
pos | world coordinates of the position (it will be projected) |
planeid | ID of the plane |
Respect to NearestWireID(), this method returns a real number, representing a continuous coordinate in the wire axis, with the round values corresponding to the actual wires.
Definition at line 1093 of file GeometryCore.cxx.
References geo::GeometryCore::Plane(), and geo::PlaneGeo::WireCoordinate().
Referenced by tca::ChgFracBetween(), tca::ChgFracNearEnd(), evd::RecoBaseDrawer::DrawProng2D(), evd::RecoBaseDrawer::DrawTrackVertexAssns2D(), trkf::CCTrackMaker::FillEndMatch(), tca::Find3DVertices(), trkf::CCTrackMaker::FindMaybeVertices(), tca::FitTP3Ds(), shower::TCShowerElectronLikelihood::getShowerProfile(), cluster::MergeClusterAlg::GlobalWire(), cluster::BlurredClusteringAlg::GlobalWire(), shower::EMShowerAlg::GlobalWire_(), ems::Hit2D::Hit2D(), lar_cluster3d::PCASeedFinderAlg::LineFit2DHits(), lar_cluster3d::HoughSeedFinderAlg::LineFit2DHits(), tca::MakeBareTP(), shower::TCShowerAlg::makeShowers(), tca::MakeTP3D(), evd::SimulationDrawer::MCTruthVectors2D(), shower::LArPandoraShowerAlg::OrderShowerHits(), shower::EMShowerAlg::OrderShowerHits_(), trkf::CCTrackMaker::PlnMatch(), tca::PosInPlane(), trkf::CCTrackMaker::PrintClusters(), evd::RecoBaseDrawer::Prong2D(), tca::SetSection(), shower::TCShowerTemplateMaker::showerProfile(), shower::TCShowerTemplateMaker::showerProfileTrue(), evd::RecoBaseDrawer::Slice2D(), trkf::TrackLineFitAlg::TrkLineFit(), pma::ProjectionMatchingAlg::validate(), pma::ProjectionMatchingAlg::validate_on_adc(), pma::ProjectionMatchingAlg::validate_on_adc_test(), evd::RecoBaseDrawer::Vertex2D(), and trkf::VertexFitAlg::VertexFit().
|
inherited |
Fills two arrays with the coordinates of the wire end points.
wireid | ID of the wire |
xyzStart | (output) an array with the start coordinate |
xyzEnd | (output) an array with the end coordinate |
cet::exception | wire not present |
The starting point is the wire end with lower z coordinate.
Definition at line 1130 of file GeometryCore.cxx.
References util::abs(), geo::GeometryCore::Segment< Point >::end(), and geo::GeometryCore::Segment< Point >::start().
Referenced by trkf::SeedFinderAlgorithm::CalculateGeometricalElements(), geo::GeometryCore::ChannelsIntersect(), lar_cluster3d::StandardHit3DBuilder::DistanceFromPointToHitWire(), trkf::SeedFinderAlgorithm::GetHitDistAndProj(), quad::GetPts2D(), and apa::DisambigAlg::TrivialDisambig().
|
inlineinherited |
Returns a segment whose ends are the wire end points.
wireid | ID of the wire |
cet::exception | wire not present |
The start and end are assigned as returned from the geo::WireGeo object. The rules for this assignment are documented in that class.
Definition at line 2668 of file GeometryCore.h.
References geo::WireGeo::GetEnd(), geo::WireGeo::GetStart(), and geo::GeometryCore::Wire().
|
inherited |
Computes the intersection between two wires.
wid1 | ID of the first wire | |
wid2 | ID of the other wire | |
[out] | intersection | the intersection point (global coordinates) |
The wires identified by wid1
and wid2
are intersected, and the 3D intersection point is written into the intersection
parameter. The "intersection" point is actually the point belonging to the first wire (wid2
) which is the closest (in Euclidean 3D metric) to the second wire.
The intersection is computed only if the wires belong to different planes of the same TPC. If that is not the case (i.e. they belong to different TPC or cryostat, or if they belong to the same plane), false
is returned and intersection
is set with all components to infinity (std::numeric_limits<>::infinity()
).
When the intersection is computed, it is always stored in the intersection
output parameter. Return value is true
if this intersection lies within the physical boundaries first wire, while it is instead false
if it lies on the extrapolation of the wire direction, but not within the wire physical extension.
To test that the result is not infinity (nor NaN), use geo::vect::isfinite(intersection)
etc.
geo::WireGeo
objects are already available, using instead the free function geo::WiresIntersection()
or the method geo::WireGeo::IntersectionWith()
is faster (and recommended). For purely geometric intersection, geo::LineClosestPoint()
is also available. Referenced by apa::APAGeometryAlg::APAChannelsIntersect(), geo::GeometryCore::ChannelsIntersect(), apa::DisambigAlg::CompareViews(), shower::EMShowerAlg::Construct3DPoint_(), evd::TWQProjectionView::FindEndPoint(), evd::TWQProjectionView::FindLineLength(), geo::GeometryCore::IntersectionPoint(), reco3d::IntersectionCache::ISect(), lar_cluster3d::StandardHit3DBuilder::makeDeadChannelPair(), lar_cluster3d::SnippetHit3DBuilder::makeDeadChannelPair(), lar_cluster3d::StandardHit3DBuilder::makeHitPair(), and apa::APAGeometryAlg::ThreeChanPos().
|
inherited |
Computes the intersection between two wires.
wid1 | ID of the first wire |
wid2 | ID of the other wire |
widIntersect | (output) the coordinate of the intersection point |
The "intersection" refers to the projection of the wires into the same plane. Wires are assumed to have at most one intersection. If wires are parallel, widIntersect
will have the two components set to infinity (std::numeric_limits<>::infinity()
) and the TPC number set to invalid (geo::TPCID::InvalidID
). Also, false
is returned. If the intersection is outside the TPC, false
is also returned, but the widIntersect
will contain the coordinates of that intersection. The TPC number is still set to invalid, although the intersection might belong to a valid TPC somewhere else.
Returns the specified wire.
wireid | ID of the wire |
cet::exception | if not found |
The GetElement() method is overloaded and its return depends on the type of ID.
Definition at line 1211 of file GeometryCore.h.
References geo::GeometryCore::Wire().
Referenced by trkf::SpacePointAlg::compatible(), lar_cluster3d::SnippetHit3DBuilder::DistanceFromPointToHitWire(), trkf::SpacePointAlg::fillComplexSpacePoint(), trkf::SpacePointAlg::fillSpacePoint(), cluster::MergeClusterAlg::GlobalWire(), cluster::BlurredClusteringAlg::GlobalWire(), shower::EMShowerAlg::GlobalWire_(), ems::Hit2D::Hit2D(), trkf::SpacePointAlg::makeSpacePoints(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_2D(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_calc2DDocas(), trkf::SpacePointAlg::separation(), trkf::TrackKalmanFitter::setupInputStates(), trkf::SurfWireLine::SurfWireLine(), trkf::SurfWireX::SurfWireX(), apa::APAGeometryAlg::ThreeChanPos(), and lar_cluster3d::SnippetHit3DBuilder::WireIDsIntersect().
|
inherited |
Returns the distance between two consecutive wires.
p | plane number within the TPC |
tpc | tpc number within the cryostat |
cstat | cryostat number |
add a version with wire IDs
deprecate this function
document what will happen (in the future methods) with wires on different planes
Definition at line 763 of file GeometryCore.cxx.
References geo::GeometryCore::Plane(), and geo::PlaneGeo::WirePitch().
Referenced by vertex::FeatureVertexFinderAna::analyze(), shwf::ShowerReco::beginJob(), mvapid::MVAAlg::CalcSegmentdEdxDist(), ShowerRecoTools::ShowerUnidirectiondEdx::CalculateElement(), ShowerRecoTools::ShowerTrajPointdEdx::CalculateElement(), trkf::SeedFinderAlgorithm::CalculateGeometricalElements(), evd::RecoBaseDrawer::Cluster2D(), lar_cluster3d::DBScanAlg::configure(), lar_pandora::LArPandoraInput::CreatePandoraHits2D(), lar_pandora::LArPandoraInput::CreatePandoraReadoutGaps(), tca::dEdx(), trkf::Track3DKalmanSPS::dQdxCalc(), evd::RecoBaseDrawer::DrawTrack2D(), cluster::EndPointAlg::EndPoint(), trkf::SpacePointAlg::fillComplexSpacePoint(), trkf::SpacePointAlg::fillSpacePoint(), tca::FillWireHitRange(), apa::DisambigAlg::FindChanTimeEndPts(), lar_cluster3d::HoughSeedFinderAlg::findHoughClusters(), cluster::SmallClusterFinderAlg::FindSmallClusters(), util::GeometryUtilities::GeometryUtilities(), lar_pandora::LArPandoraInput::GetMips(), calo::Calorimetry::GetPitch(), calo::GnocchiCalorimetry::GetPitch(), shower::TCShowerElectronLikelihood::getShowerProfile(), shower::TCShowerAlg::goodHit(), evd::RecoBaseDrawer::Hit2D(), shower::LArPandoraShowerAlg::HitCoordinates(), shower::EMShowerAlg::HitPosition_(), apa::APAGeometryAlg::Init(), lar_cluster3d::PCASeedFinderAlg::LineFit2DHits(), lar_cluster3d::HoughSeedFinderAlg::LineFit2DHits(), shower::EMShowerAlg::MakeShower(), trkf::SpacePointAlg::makeSpacePoints(), cluster::ClusterMatchTQ::MatchedClusters(), shower::LArPandoraShowerAlg::OrderShowerHits(), cluster::DBCluster3D::produce(), calo::ShowerCalorimetry::produce(), trkf::SpacePts::produce(), trkf::Track3Dreco::produce(), trkf::CCTrackMaker::produce(), vertex::VertexFinder2D::produce(), calo::Calorimetry::produce(), shower::TCShowerTemplateMaker::showerProfile(), shower::TCShowerTemplateMaker::showerProfileTrue(), trkf::KHitWireLine::subpredict(), trkf::KHitWireX::subpredict(), trkf::TrackLineFitAlg::TrkLineFit(), trkf::VertexFitAlg::VertexFit(), lar_pandora::VintageLArTPCThreeView::WirePitchU(), lar_pandora::VintageLArTPCThreeView::WirePitchV(), and lar_pandora::VintageLArTPCThreeView::WirePitchW().
Returns the distance between two wires in the specified view.
w1 | index of the first wire |
w2 | index of the second wire |
p | plane number within the TPC |
tpc | tpc number within the cryostat |
cstat | cryostat number |
This method assumes that all the wires on all the planes on the specified view of all TPCs have the same pitch.
Definition at line 771 of file GeometryCore.cxx.
References geo::GeometryCore::Plane(), geo::GeometryCore::TPC(), and geo::PlaneGeo::WirePitch().
|
inherited |
Returns the ID of the ROP planeid belongs to.
planeid | ID of the wire plane |
If planeid is an invalid ID, an invalid ROP ID is returned. If planeid is a valid ID (i.e. an ID whose isValid flag is set) that points to a non-existent wire plane, the result is undefined. Use HasPlaneID() to check if the wire plane actually exists.
Definition at line 1524 of file GeometryCore.cxx.
References geo::GeometryCore::fChannelMapAlg.
Referenced by geo::GeometryCore::HasElement(), and geo::GeometryCore::SignalType().
Returns the specified wire.
wireid | wire ID |
The GetElementPtr() method is overloaded and its return depends on the type of ID.
Definition at line 1192 of file GeometryCore.h.
References geo::GeometryCore::PlanePtr(), and geo::PlaneGeo::WirePtr().
Referenced by lar_cluster3d::MinSpanTreeAlg::configure(), evd_tool::MicroBooNEDrawer::DrawBadChannels(), evd_tool::ICARUSDrawer::DrawBadChannels(), and geo::GeometryCore::GetElementPtr().
|
inherited |
Fills the arguments with the boundaries of the world.
xlo | (output) pointer to the lower x coordinate |
xlo | (output) pointer to the upper x coordinate |
ylo | (output) pointer to the lower y coordinate |
ylo | (output) pointer to the upper y coordinate |
zlo | (output) pointer to the lower z coordinate |
zlo | (output) pointer to the upper z coordinate |
cet::exception | ("GeometryCore" category) if no world found |
GetWorldVolumeName()
This method fills the boundaries of the world volume (GetWorldVolumeName()
).
If a pointer is null, its coordinate is skipped.
Definition at line 911 of file GeometryCore.cxx.
References geo::BoxBoundedGeo::MaxX(), geo::BoxBoundedGeo::MaxY(), geo::BoxBoundedGeo::MaxZ(), geo::BoxBoundedGeo::MinX(), geo::BoxBoundedGeo::MinY(), geo::BoxBoundedGeo::MinZ(), and geo::GeometryCore::WorldBox().
Referenced by evd_tool::ICARUSDrawer::DetOutline3D(), and evgen::CORSIKAGen::GetSample().
|
inherited |
Returns a box with the extremes of the world volume (from shape axes).
GetWorldVolumeName()
Definition at line 889 of file GeometryCore.cxx.
References geo::GeometryCore::GetWorldVolumeName(), geo::GeometryCore::WorldVolume(), x1, x2, y1, and y2.
Referenced by geo::GeometryCore::DetectorName(), geo::GeometryCore::MaterialName(), and geo::GeometryCore::WorldBox().
|
inherited |
Returns a pointer to the world volume.
Definition at line 883 of file GeometryCore.cxx.
References geo::GeometryCore::GetWorldVolumeName().
Referenced by geo::GeometryCore::DetectorName(), geo::GeometryCore::VolumeName(), and geo::GeometryCore::WorldBox().
|
staticinherited |
Returns the specified cryostat.
cstat | number of cryostat |
cryoid | cryostat ID |
cet::exception | (GeometryCore category) if cryostat not present |
The GetElement() method is overloaded and its return depends on the type of ID.
Definition at line 463 of file GeometryCore.h.
Referenced by geo::GeometryCore::Iterate(), and geo::GeometryCore::ThirdPlaneSlope().
|
private |
Parameter set for geometry builder.
Definition at line 229 of file Geometry.h.
Referenced by LoadNewGeometry().
|
private |
Summary of service configuration.
Definition at line 231 of file Geometry.h.
Referenced by CheckConfigurationInfo(), FillGeometryConfigurationInfo(), and preBeginRun().
|
private |
If set true, supply G4 with GDMLfileNoWires rather than GDMLfile
Definition at line 224 of file Geometry.h.
Referenced by LoadNewGeometry().
|
private |
Don't stop if configuration check fails. files specified in the fcl file
Definition at line 226 of file Geometry.h.
Referenced by preBeginRun().
|
private |
Relative path added to FW_SEARCH_PATH to search for geometry file
Definition at line 222 of file Geometry.h.
Referenced by Geometry(), and LoadNewGeometry().
|
private |
Parameter set to define the channel map sorting.
Definition at line 228 of file Geometry.h.
Referenced by InitializeChannelMap().
|
staticinherited |
Wires must be found in GDML description within this number of nested volumes.
Definition at line 145 of file GeometryCore.h.
Returns the distance between two consecutive wires.
p | plane number within the TPC |
tpc | tpc number within the cryostat |
cstat | cryostat number |
add a version with wire IDs
deprecate this function
document what will happen (in the future methods) with wires on different planes
Definition at line 1275 of file GeometryCore.h.
|
staticinherited |
Returns the specified TPC.
tpcid | ID of the tpc |
tpc | tpc number within the cryostat |
cstat | number of cryostat |
cet::exception | (GeometryCore category) if cryostat not present |
cet::exception | (TPCOutOfRange category) if no such TPC |
The GetElement() method is overloaded and its return depends on the type of ID.
Definition at line 721 of file GeometryCore.h.
Referenced by geo::GeometryCore::GetBeginTPCID(), and geo::GeometryCore::GetTPCFrontFaceCenter().