00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 // 00030 // class G4GRSVolume 00031 // 00032 // Class description: 00033 // 00034 // Object representing a touchable detector element - maintains 00035 // associations between a physical volume and its net resultant 00036 // local->global transform. 00037 // 00038 // NOTE: The (optional) rotation matrix is copied 00039 00040 // History: 00041 // - Created. Paul Kent, August 1996 00042 // ---------------------------------------------------------------------- 00043 #ifndef G4GRSVOLUME_HH 00044 #define G4GRSVOLUME_HH 00045 00046 #include "G4VTouchable.hh" 00047 00048 #include "G4VPhysicalVolume.hh" 00049 #include "G4LogicalVolume.hh" 00050 #include "G4ThreeVector.hh" 00051 #include "G4RotationMatrix.hh" 00052 00053 class G4GRSVolume : public G4VTouchable 00054 { 00055 public: // with description 00056 00057 G4GRSVolume(G4VPhysicalVolume *pVol, 00058 const G4RotationMatrix *pRot, 00059 const G4ThreeVector &tlate); 00060 G4GRSVolume(G4VPhysicalVolume *pVol, 00061 const G4RotationMatrix &rot, 00062 const G4ThreeVector &tlate); 00063 ~G4GRSVolume(); 00064 00065 inline G4VPhysicalVolume* GetVolume(G4int depth=0) const; 00066 inline G4VSolid* GetSolid(G4int depth=0) const; 00067 inline const G4ThreeVector& GetTranslation(G4int depth=0) const; 00068 inline const G4RotationMatrix* GetRotation(G4int depth=0) const; 00069 00070 private: 00071 00072 G4GRSVolume(const G4GRSVolume&); 00073 G4GRSVolume& operator=(const G4GRSVolume&); 00074 // Copy constructor and assignment operator NOT public 00075 00076 private: 00077 00078 G4VPhysicalVolume *fvol; 00079 G4RotationMatrix *frot; 00080 G4ThreeVector ftlate; 00081 }; 00082 00083 #include "G4GRSVolume.icc" 00084 00085 #endif