10 #include "Geometry/AuxDetSensitiveGeo.h" 12 #include "TGeoManager.h" 16 #include "TGeoMatrix.h" 23 #include "cetlib_except/exception.h" 33 TGeoVolume *vc = path[depth]->GetVolume();
37 throw cet::exception(
"AuxDetSensitiveGeo") <<
"cannot find AuxDetSensitive volume\n";
46 fGeoMatrix =
new TGeoHMatrix(*path[0]->GetMatrix());
47 for(
int i = 1; i <= depth; ++i){
53 if( volName.find(
"Trap") != std::string::npos ) {
78 TGeoHMatrix* rotation)
87 if( volName.find(
"Trap") != std::string::npos ) {
160 double xyzLocal[3] = {0.,0.,localz};
168 double normal[3]={0.,0.,1.};
178 return std::sqrt((Center[0]-xyz[0])*(Center[0]-xyz[0]) +
179 (Center[1]-xyz[1])*(Center[1]-xyz[1]) +
180 (Center[2]-xyz[2])*(Center[2]-xyz[2]));
TGeoHMatrix * fGeoMatrix
Transformation matrix to world frame.
void GetCenter(double *xyz, double localz=0.0) const
static const std::string volume[nvol]
double fHalfHeight
half height of volume
AuxDetSensitiveGeo(std::vector< const TGeoNode * > &path, int depth)
void WorldToLocal(const double *world, double *local) const
const TGeoVolume * fTotalVolume
Total volume of AuxDet, called vol*.
void LocalToWorld(const double *local, double *world) const
void LocalToWorldVect(const double *local, double *world) const
double fHalfWidth2
2nd half width (width1==width2 for boxes), at +z/2
General GArSoft Utilities.
double DistanceToPoint(double *xyz) const
void WorldToLocalVect(const double *world, double *local) const
LArSoft geometry interface.
double fLength
length of volume, along z direction in local
double fHalfWidth1
1st half width of volume, at -z/2 in local coordinates
cet::coded_exception< error, detail::translate > exception
void GetNormalVector(double *xyzDir) const