11 #ifndef GEO_GEOMETRYTEST35_H 12 #define GEO_GEOMETRYTEST35_H 23 #include "TGeoManager.h" 24 #include "TStopwatch.h" 44 #include "art_root_io/TFileService.h" 45 #include "art_root_io/TFileDirectory.h" 50 namespace geo {
class Geometry; }
109 double AuxDetWorld[3] = {0.};
111 for(
unsigned int a = 0;
a < geom->
NAuxDets(); ++
a) {
114 double testPos1[3] = {AuxDetWorld[0], AuxDetWorld[1], AuxDetWorld[2]};
115 double testPos2a[3] = {AuxDetWorld[0], AuxDetWorld[1], AuxDetWorld[2]};
116 double testPos2b[3] = {AuxDetWorld[0], AuxDetWorld[1], AuxDetWorld[2]};
131 CounterType =
"trapezoid";
139 double TrapCheckPtB[3] = { AuxDetWorld[0],
146 bool trpCheckpta(
true), trpCheckptb(
true);
152 if( trpCheckpta || trpCheckptb )
154 <<
"\t ...Found unexpected test point outside of trapezoidal AuxDet " 164 mf::LogVerbatim(
"GeometryTest35_AuxDet") <<
"AuxDet " <<
a <<
": " << CounterType
165 <<
", Center: (" << AuxDetWorld[0] <<
", " 166 << AuxDetWorld[1] <<
", " << AuxDetWorld[2] <<
")" <<
std::endl;
172 bool tp1(
false), tp2a(
false), tp2b(
false);
181 if( !tp1 || !( tp2a || tp2b ) )
183 <<
"\t ...Did not find expected test points around AuxDet " MaybeLogger_< ELseverityLevel::ELsev_info, true > LogVerbatim
void LocalToWorld(const double *auxdet, double *world) const
Transform point from local auxiliary detector frame to world frame.
Encapsulate the construction of a single cyostat.
Collect all the geometry header files together.
virtual void analyze(art::Event const &)
GeometryTest35(fhicl::ParameterSet const &pset)
EDAnalyzer(fhicl::ParameterSet const &pset)
double HalfWidth2() const
#define DEFINE_ART_MODULE(klass)
virtual ~GeometryTest35()
Definition of data types for geometry description.
AuxDetGeo const & AuxDet(unsigned int const ad=0) const
Returns the specified auxiliary detector.
Encapsulate the geometry of an auxiliary detector.
Encapsulate the geometry of a wire.
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Encapsulate the geometry of an optical detector.
Encapsulate the construction of a single detector plane.
const TGeoVolume * TotalVolume() const
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
unsigned int FindAuxDetAtPosition(double const worldLoc[3]) const
Returns the index of the auxiliary detector at specified location.
double HalfWidth1() const
Namespace collecting geometry-related classes utilities.
constexpr Point origin()
Returns a origin position with a point of the specified type.
cet::coded_exception< error, detail::translate > exception
QTextStream & endl(QTextStream &s)
unsigned int NAuxDets() const
Returns the number of auxiliary detectors.
Encapsulate the construction of a single detector plane.