#include <AuxDetSensitiveGeo.h>
Definition at line 20 of file AuxDetSensitiveGeo.h.
 
      
        
          | gar::geo::AuxDetSensitiveGeo::AuxDetSensitiveGeo | ( | std::vector< const TGeoNode * > & | path, | 
        
          |  |  | int | depth | 
        
          |  | ) |  |  | 
      
 
Definition at line 29 of file AuxDetSensitiveGeo.cxx.
   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 ) {
 TGeoHMatrix * fGeoMatrix
Transformation matrix to world frame. 
double fHalfHeight
half height of volume 
const TGeoVolume * fTotalVolume
Total volume of AuxDet, called vol*. 
double fHalfWidth2
2nd half width (width1==width2 for boxes), at +z/2 
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
 
 
      
        
          | gar::geo::AuxDetSensitiveGeo::AuxDetSensitiveGeo | ( | const TGeoVolume * | volume, | 
        
          |  |  | TGeoHMatrix * | rotation | 
        
          |  | ) |  |  | 
      
 
Definition at line 77 of file AuxDetSensitiveGeo.cxx.
   87       if( volName.find(
"Trap") != std::string::npos ) {
 TGeoHMatrix * fGeoMatrix
Transformation matrix to world frame. 
static const std::string volume[nvol]
double fHalfHeight
half height of volume 
const TGeoVolume * fTotalVolume
Total volume of AuxDet, called vol*. 
double fHalfWidth2
2nd half width (width1==width2 for boxes), at +z/2 
double fLength
length of volume, along z direction in local 
double fHalfWidth1
1st half width of volume, at -z/2 in local coordinates 
 
 
      
        
          | gar::geo::AuxDetSensitiveGeo::~AuxDetSensitiveGeo | ( |  | ) |  | 
      
 
 
      
        
          | double gar::geo::AuxDetSensitiveGeo::DistanceToPoint | ( | double * | xyz | ) | const | 
      
 
Definition at line 174 of file AuxDetSensitiveGeo.cxx.
  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]));
 void GetCenter(double *xyz, double localz=0.0) const 
 
 
      
        
          | void gar::geo::AuxDetSensitiveGeo::GetCenter | ( | double * | xyz, | 
        
          |  |  | double | localz = 0.0 | 
        
          |  | ) |  | const | 
      
 
Return the center position of an AuxDet 
- Parameters
- 
  
    | xyz | : 3-D array. The returned location. |  | localz | : Distance along the length of the volume (z) (cm). Default is 0. |  
 
Definition at line 158 of file AuxDetSensitiveGeo.cxx.
  160       double xyzLocal[3] = {0.,0.,localz};
 void LocalToWorld(const double *local, double *world) const 
 
 
      
        
          | void gar::geo::AuxDetSensitiveGeo::GetNormalVector | ( | double * | xyzDir | ) | const | 
      
 
Definition at line 166 of file AuxDetSensitiveGeo.cxx.
  168       double normal[3]={0.,0.,1.};
 void LocalToWorldVect(const double *local, double *world) const 
 
 
  
  | 
        
          | double gar::geo::AuxDetSensitiveGeo::HalfHeight | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | double gar::geo::AuxDetSensitiveGeo::HalfWidth1 | ( |  | ) | const |  | inline | 
 
Definition at line 34 of file AuxDetSensitiveGeo.h.
double fHalfWidth1
1st half width of volume, at -z/2 in local coordinates 
 
 
  
  | 
        
          | double gar::geo::AuxDetSensitiveGeo::HalfWidth2 | ( |  | ) | const |  | inline | 
 
Definition at line 35 of file AuxDetSensitiveGeo.h.
double fHalfWidth2
2nd half width (width1==width2 for boxes), at +z/2 
 
 
  
  | 
        
          | double gar::geo::AuxDetSensitiveGeo::Length | ( |  | ) | const |  | inline | 
 
Definition at line 33 of file AuxDetSensitiveGeo.h.
double fLength
length of volume, along z direction in local 
 
 
      
        
          | void gar::geo::AuxDetSensitiveGeo::LocalToWorld | ( | const double * | local, | 
        
          |  |  | double * | world | 
        
          |  | ) |  | const | 
      
 
Transform a position from local frame to world frame 
- Parameters
- 
  
    | local | : 3D array. Position in the local frame Input. |  | world | : 3D array. Position in the world frame. Returned. |  
 
Definition at line 121 of file AuxDetSensitiveGeo.cxx.
TGeoHMatrix * fGeoMatrix
Transformation matrix to world frame. 
 
 
      
        
          | void gar::geo::AuxDetSensitiveGeo::LocalToWorldVect | ( | const double * | local, | 
        
          |  |  | double * | world | 
        
          |  | ) |  | const | 
      
 
Transform a 3-vector from local frame to world frame 
- Parameters
- 
  
    | local | : 3D array. Position in the local frame Input. |  | world | : 3D array. Position in the world frame. Returned. |  
 
Definition at line 130 of file AuxDetSensitiveGeo.cxx.
TGeoHMatrix * fGeoMatrix
Transformation matrix to world frame. 
 
 
  
  | 
        
          | const TGeoVolume* gar::geo::AuxDetSensitiveGeo::TotalVolume | ( |  | ) | const |  | inline | 
 
Definition at line 37 of file AuxDetSensitiveGeo.h.
const TGeoVolume * fTotalVolume
Total volume of AuxDet, called vol*. 
 
 
      
        
          | void gar::geo::AuxDetSensitiveGeo::WorldToLocal | ( | const double * | world, | 
        
          |  |  | double * | local | 
        
          |  | ) |  | const | 
      
 
Transform a position from world frame to local frame 
- Parameters
- 
  
    | world | : 3D array. Position in the world frame. Input. |  | local | : 3D array. Position in the local frame Returned. |  
 
Definition at line 139 of file AuxDetSensitiveGeo.cxx.
TGeoHMatrix * fGeoMatrix
Transformation matrix to world frame. 
 
 
      
        
          | void gar::geo::AuxDetSensitiveGeo::WorldToLocalVect | ( | const double * | world, | 
        
          |  |  | double * | local | 
        
          |  | ) |  | const | 
      
 
Transform a 3-vector from world frame to local frame 
- Parameters
- 
  
    | world | : 3D array. Position in the world frame. Input. |  | local | : 3D array. Position in the local frame Returned. |  
 
Definition at line 148 of file AuxDetSensitiveGeo.cxx.
TGeoHMatrix * fGeoMatrix
Transformation matrix to world frame. 
 
 
  
  | 
        
          | TGeoHMatrix* gar::geo::AuxDetSensitiveGeo::fGeoMatrix |  | private | 
 
 
  
  | 
        
          | double gar::geo::AuxDetSensitiveGeo::fHalfHeight |  | private | 
 
 
  
  | 
        
          | double gar::geo::AuxDetSensitiveGeo::fHalfWidth1 |  | private | 
 
 
  
  | 
        
          | double gar::geo::AuxDetSensitiveGeo::fHalfWidth2 |  | private | 
 
 
  
  | 
        
          | double gar::geo::AuxDetSensitiveGeo::fLength |  | private | 
 
 
  
  | 
        
          | const TGeoVolume* gar::geo::AuxDetSensitiveGeo::fTotalVolume |  | private | 
 
 
The documentation for this class was generated from the following files: