[807] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
| 26 | // |
---|
| 27 | // -------------------------------------------------------------- |
---|
| 28 | // GEANT 4 - ULTRA experiment example |
---|
| 29 | // -------------------------------------------------------------- |
---|
| 30 | // |
---|
| 31 | // Code developed by: |
---|
| 32 | // B. Tome, M.C. Espirito-Santo, A. Trindade, P. Rodrigues |
---|
| 33 | // |
---|
| 34 | // ********************************************** |
---|
| 35 | // * UltraFresnelLens.hh |
---|
| 36 | // ********************************************** |
---|
| 37 | // |
---|
| 38 | // Class for definition of the Ultra Fresnel Lens. |
---|
| 39 | // An UltraFresnelLens object is created in the UltraDetectorConstruction class. |
---|
| 40 | // This class makes use of the UltraFresnelLensParameterisation class. |
---|
| 41 | // The lens profile is define through the GetSagita method. |
---|
| 42 | // |
---|
| 43 | #ifndef UltraFresnelLens_H |
---|
| 44 | #define UltraFresnelLens_H |
---|
| 45 | |
---|
| 46 | #include "globals.hh" |
---|
| 47 | #include "G4ThreeVector.hh" |
---|
| 48 | |
---|
| 49 | class G4VPhysicalVolume; |
---|
| 50 | class G4LogicalVolume; |
---|
| 51 | class G4Material; |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | class UltraFresnelLens{ |
---|
| 55 | |
---|
| 56 | public: |
---|
| 57 | |
---|
| 58 | UltraFresnelLens( G4double Diameter, G4int nGrooves, G4Material* Material, G4VPhysicalVolume * MotherPV, G4ThreeVector Pos); |
---|
| 59 | |
---|
| 60 | ~UltraFresnelLens(); |
---|
| 61 | |
---|
| 62 | inline G4VPhysicalVolume* GetPhysicalVolume() {return LensPhysicalVolume ;} |
---|
| 63 | inline G4Material* GetMaterial() {return LensMaterial ;} |
---|
| 64 | inline G4double GetDiameter() {return LensDiameter ;} |
---|
| 65 | inline G4double GetThickness() {return LensThickness ;} |
---|
| 66 | inline G4double GetGrooveWidth() {return GrooveWidth ;} |
---|
| 67 | inline G4int GetNumberOfGrooves(){return NumberOfGrooves ;} |
---|
| 68 | |
---|
| 69 | G4double GetSagita(G4double) ; |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | private: |
---|
| 73 | |
---|
| 74 | void BuildLens(G4VPhysicalVolume *) ; |
---|
| 75 | |
---|
| 76 | G4double LensDiameter; |
---|
| 77 | G4int NumberOfGrooves; |
---|
| 78 | G4Material* LensMaterial; |
---|
| 79 | G4ThreeVector LensPosition ; |
---|
| 80 | |
---|
| 81 | G4double GrooveWidth ; |
---|
| 82 | G4double LensThickness ; |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | G4VPhysicalVolume* LensPhysicalVolume ; |
---|
| 86 | |
---|
| 87 | }; |
---|
| 88 | |
---|
| 89 | #endif |
---|