Performs tests on the geometry as seen by Geometry service. More...
#include <GeometryTestAlg.h>
Public Member Functions | |
| GeometryTestAlg (fhicl::ParameterSet const &pset) | |
| virtual | ~GeometryTestAlg ()=default |
| Virtual destructor. More... | |
| virtual void | Setup (geo::GeometryCore const &new_geo) |
| Runs the test. More... | |
| virtual unsigned int | Run () |
| Runs the test, returns a number of errors (very unlikely!) More... | |
Static Public Member Functions | |
| static std::array< double, 3 > | GetIncreasingWireDirection (const geo::PlaneGeo &plane) |
| Returns the direction on plane orthogonal to wires where wire number increases. More... | |
Private Member Functions | |
| void | printDetectorIntro () const |
| void | printChannelSummary () |
| void | printVolBounds () |
| void | printDetDim () |
| void | printWirePos () |
| void | printWiresInTPC (const TPCGeo &tpc, std::string indent="") const |
| void | printAllGeometry () const |
| void | testFindVolumes () |
| void | testCryostat () |
| void | testTPC (geo::CryostatID const &cid) |
| void | testPlaneDirections () const |
| void | testWireOrientations () const |
| void | testChannelToROP () const |
| void | testChannelToWire () const |
| void | testFindPlaneCenters () |
| void | testProject () |
| void | testPlaneProjectionReference () const |
| void | testPlanePointDecompositionFrame () const |
| void | testPlaneProjectionOnFrame () const |
| void | testPlaneProjection () const |
| void | testWireCoordFromPlane () const |
| void | testParallelWires () const |
| void | testPlanePointDecomposition () const |
| void | testWireCoordAngle () const |
| void | testWirePitch () |
| void | testInterWireProjectedDistance () const |
| void | testPlanePitch () |
| void | testStandardWirePos () |
| void | testAPAWirePos () |
| void | testNearestWire () |
| void | testWireIntersection () const |
| void | testThirdPlane () const |
| void | testThirdPlane_dTdW () const |
| void | testStepping () |
| void | testFindAuxDet () const |
| bool | shouldRunTests (std::string test_name) const |
| unsigned int | testFindWorldVolumes () |
| unsigned int | testFindCryostatVolumes () |
| unsigned int | testFindTPCvolumePaths () |
| void | printAuxiliaryDetectors () const |
| Method to print the auxiliary detectors on screen. More... | |
| template<typename Stream > | |
| void | printAuxDetGeo (Stream &&out, geo::AuxDetGeo const &auxDet, std::string indent, std::string firstIndent) const |
| Prints information of an auxiliary detector into the specified stream. More... | |
| template<typename Stream > | |
| void | printAuxDetGeo (Stream &&out, geo::AuxDetGeo const &auxDet, std::string indent="") const |
| Prints information of an auxiliary detector into the specified stream. More... | |
| template<typename Stream > | |
| void | printAuxDetSensitiveGeo (Stream &&out, geo::AuxDetSensitiveGeo const &auxDetSens, std::string indent, std::string firstIndent) const |
| Prints information of the sensitive auxiliary detector into a stream. More... | |
| template<typename Stream > | |
| void | printAuxDetSensitiveGeo (Stream &&out, geo::AuxDetSensitiveGeo const &auxDetSens, std::string indent="") const |
| Prints information of the sensitive auxiliary detector into a stream. More... | |
| bool | CheckAuxDetAtPosition (double const pos[3], unsigned int expected) const |
Returns whether the auxiliary detector at pos is the expected one. More... | |
| bool | CheckAuxDetSensitiveAtPosition (double const pos[3], unsigned int expectedDet, unsigned int expectedSens) const |
Returns whether the auxiliary sensitive detector at pos is expected. More... | |
| bool | isWireAlignedToPlaneDirections (geo::PlaneGeo const &plane, geo::Vector_t const &wireDir) const |
Helper function for testWireIntersection(). More... | |
| unsigned int | testWireIntersectionAt (geo::TPCGeo const &TPC, TVector3 const &point) const |
| Performs the wire intersection test at a single point. More... | |
| std::vector< std::pair< geo::PlaneID, double > > | ExpectedPlane_dTdW (std::array< double, 3 > const &A, std::array< double, 3 > const &B, const double driftVelocity=-0.1) const |
| Returns dT/dW expected from the specified segment A-to-B. More... | |
| unsigned int | testThirdPlane_dTdW_at (std::vector< std::pair< geo::PlaneID, double >> const &plane_dTdW) const |
| Performs the third plane slope test with a single configuration. More... | |
Private Attributes | |
| geo::GeometryCore const * | geom |
| pointer to geometry service provider More... | |
| bool | fDisableValidWireIDcheck |
| disable test on out-of-world NearestWire() More... | |
| std::set< std::string > | fNonFatalExceptions |
| std::vector< double > | fExpectedWirePitches |
| wire pitch on each plane More... | |
| std::vector< double > | fExpectedPlanePitches |
| plane pitch on each plane More... | |
| bool | fComputeMass = true |
| Whether to print the detector mass. More... | |
| testing::NameSelector | fRunTests |
| test filter More... | |
Performs tests on the geometry as seen by Geometry service.
CheckOverlaps (not in default) perform overlap checksThoroughCheck (not in default) makes ROOT perform full geometry checkDetectorIntro: prints some information about the detectorFindVolumes: checks it can find the volumes corresponding to world and all cryostatsCryostat:WireOrientations: checks that the definition of wire coordinates is matching the prescriptionWireCoordFromPlane: checks PlaneGeo::WireCoordinateFrom()ChannelToWire:FindPlaneCenters:Projection:WirePos: currently disabledPlanePointDecomposition: methods for projections and decompositions on the wire coordinate reference systemPlaneProjections: methods for projections on the wire planes in the reference system of the frame of the planeWireCoordAngle: tests geo::PlaneGeo::PhiZ()NearestWire: tests WireCoordinate() and NearestWire()WireIntersection: tests WireIDsIntersect()ThirdPlane: tests ThirdPlane()ThirdPlaneSlope: tests ThirdPlaneSlope()WirePitch:PlanePitch:InterWireProjectedDistance: tests geo::PlaneGeo::InterWireProjectedDistance()Stepping:FindAuxDet: test on location of nearest auxiliary detectorPrintWires: (not in default) prints all the wires in the geometrydefault: represents the default set (optionally prepended by '@')! (special): means to forget the tests configured so far; used as the first test name, removes the default list but leaves unchanged the default behaviour (the one specified with "+*" or "-*")+CheckOverlaps in RunTests+PrintWires in RunTeststrue): prints the mass of the detector and cryostats, which may take a lot of time. Definition at line 109 of file GeometryTestAlg.h.
|
explicit |
Definition at line 118 of file GeometryTestAlg.cxx.
|
virtualdefault |
Virtual destructor.
|
private |
Returns whether the auxiliary detector at pos is the expected one.
Definition at line 3490 of file GeometryTestAlg.cxx.
|
private |
Returns whether the auxiliary sensitive detector at pos is expected.
Definition at line 3515 of file GeometryTestAlg.cxx.
|
private |
Returns dT/dW expected from the specified segment A-to-B.
Definition at line 2961 of file GeometryTestAlg.cxx.
|
inlinestatic |
Returns the direction on plane orthogonal to wires where wire number increases.
Definition at line 2089 of file GeometryTestAlg.cxx.
|
private |
Helper function for testWireIntersection().
Definition at line 2348 of file GeometryTestAlg.cxx.
|
private |
Definition at line 567 of file GeometryTestAlg.cxx.
|
private |
Prints information of an auxiliary detector into the specified stream.
Definition at line 605 of file GeometryTestAlg.cxx.
|
inlineprivate |
Prints information of an auxiliary detector into the specified stream.
Definition at line 195 of file GeometryTestAlg.h.
|
private |
Prints information of the sensitive auxiliary detector into a stream.
Definition at line 651 of file GeometryTestAlg.cxx.
|
inlineprivate |
Prints information of the sensitive auxiliary detector into a stream.
Definition at line 208 of file GeometryTestAlg.h.
|
private |
Method to print the auxiliary detectors on screen.
Definition at line 589 of file GeometryTestAlg.cxx.
|
private |
Definition at line 416 of file GeometryTestAlg.cxx.
|
private |
Definition at line 478 of file GeometryTestAlg.cxx.
|
private |
Definition at line 386 of file GeometryTestAlg.cxx.
|
private |
Definition at line 444 of file GeometryTestAlg.cxx.
|
private |
Definition at line 502 of file GeometryTestAlg.cxx.
|
private |
Definition at line 525 of file GeometryTestAlg.cxx.
|
virtual |
Runs the test, returns a number of errors (very unlikely!)
Definition at line 151 of file GeometryTestAlg.cxx.
|
inlinevirtual |
Runs the test.
Definition at line 117 of file GeometryTestAlg.h.
|
inlineprivate |
Definition at line 3597 of file GeometryTestAlg.cxx.
|
private |
Definition at line 2044 of file GeometryTestAlg.cxx.
|
private |
Definition at line 1456 of file GeometryTestAlg.cxx.
|
private |
Definition at line 1495 of file GeometryTestAlg.cxx.
|
private |
Definition at line 674 of file GeometryTestAlg.cxx.
|
private |
Definition at line 3543 of file GeometryTestAlg.cxx.
|
private |
Definition at line 761 of file GeometryTestAlg.cxx.
|
private |
Definition at line 1583 of file GeometryTestAlg.cxx.
|
private |
Definition at line 789 of file GeometryTestAlg.cxx.
|
private |
Definition at line 832 of file GeometryTestAlg.cxx.
|
private |
Definition at line 730 of file GeometryTestAlg.cxx.
|
private |
Definition at line 3183 of file GeometryTestAlg.cxx.
|
private |
Definition at line 2100 of file GeometryTestAlg.cxx.
|
private |
Definition at line 1139 of file GeometryTestAlg.cxx.
|
private |
Definition at line 941 of file GeometryTestAlg.cxx.
|
private |
Definition at line 3319 of file GeometryTestAlg.cxx.
|
private |
Definition at line 1172 of file GeometryTestAlg.cxx.
|
private |
Definition at line 1635 of file GeometryTestAlg.cxx.
|
private |
Definition at line 1986 of file GeometryTestAlg.cxx.
|
private |
Definition at line 1855 of file GeometryTestAlg.cxx.
|
private |
Definition at line 1596 of file GeometryTestAlg.cxx.
|
private |
Definition at line 3452 of file GeometryTestAlg.cxx.
|
private |
Definition at line 2009 of file GeometryTestAlg.cxx.
|
private |
Definition at line 3399 of file GeometryTestAlg.cxx.
|
private |
Definition at line 2729 of file GeometryTestAlg.cxx.
|
private |
Definition at line 2830 of file GeometryTestAlg.cxx.
|
private |
Performs the third plane slope test with a single configuration.
Definition at line 3028 of file GeometryTestAlg.cxx.
|
private |
Definition at line 855 of file GeometryTestAlg.cxx.
|
private |
Definition at line 1379 of file GeometryTestAlg.cxx.
|
private |
Definition at line 1065 of file GeometryTestAlg.cxx.
|
private |
Definition at line 2371 of file GeometryTestAlg.cxx.
|
private |
Performs the wire intersection test at a single point.
Definition at line 2536 of file GeometryTestAlg.cxx.
|
private |
Definition at line 1013 of file GeometryTestAlg.cxx.
|
private |
Definition at line 3103 of file GeometryTestAlg.cxx.
|
private |
Whether to print the detector mass.
Definition at line 134 of file GeometryTestAlg.h.
|
private |
disable test on out-of-world NearestWire()
Definition at line 129 of file GeometryTestAlg.h.
|
private |
plane pitch on each plane
Definition at line 132 of file GeometryTestAlg.h.
|
private |
wire pitch on each plane
Definition at line 131 of file GeometryTestAlg.h.
|
private |
Definition at line 130 of file GeometryTestAlg.h.
|
private |
test filter
Definition at line 137 of file GeometryTestAlg.h.
|
private |
pointer to geometry service provider
Definition at line 127 of file GeometryTestAlg.h.
1.8.11