![]() |
|
|||
File indexing completed on 2025-02-23 09:22:37
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 /// \file persistency/P01/include/ExP01DetectorConstruction.hh 0027 /// \brief Definition of the ExP01DetectorConstruction class 0028 // 0029 // 0030 // 0031 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0032 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0033 0034 #ifndef ExP01DetectorConstruction_h 0035 #define ExP01DetectorConstruction_h 1 0036 0037 #include "ExP01MagneticField.hh" 0038 0039 #include "G4VUserDetectorConstruction.hh" 0040 #include "globals.hh" 0041 0042 class G4Box; 0043 class G4LogicalVolume; 0044 class G4VPhysicalVolume; 0045 class G4Material; 0046 class ExP01DetectorMessenger; 0047 0048 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0049 0050 /// Detector Construction for the persistency example 0051 0052 class ExP01DetectorConstruction : public G4VUserDetectorConstruction 0053 { 0054 public: 0055 ExP01DetectorConstruction(); 0056 ~ExP01DetectorConstruction(); 0057 0058 public: 0059 virtual G4VPhysicalVolume* Construct(); 0060 0061 const G4VPhysicalVolume* GetTracker() { return fPhysiTracker; }; 0062 G4double GetTrackerFullLength() { return fTrackerLength; }; 0063 G4double GetTargetFullLength() { return fTargetLength; }; 0064 G4double GetWorldFullLength() { return fWorldLength; }; 0065 0066 void SetTargetMaterial(G4String); 0067 void SetChamberMaterial(G4String); 0068 void SetMagField(G4double); 0069 0070 private: 0071 G4Box* fSolidWorld; // pointer to the solid envelope 0072 G4LogicalVolume* fLogicWorld; // pointer to the logical envelope 0073 G4VPhysicalVolume* fPhysiWorld; // pointer to the physical envelope 0074 0075 G4Box* fSolidTarget; // pointer to the solid Target 0076 G4LogicalVolume* fLogicTarget; // pointer to the logical Target 0077 G4VPhysicalVolume* fPhysiTarget; // pointer to the physical Target 0078 0079 G4Box* fSolidTracker; // pointer to the solid Tracker 0080 G4LogicalVolume* fLogicTracker; // pointer to the logical Tracker 0081 G4VPhysicalVolume* fPhysiTracker; // pointer to the physical Tracker 0082 0083 G4Box* fSolidChamber; // pointer to the solid Chamber 0084 G4LogicalVolume* fLogicChamber; // pointer to the logical Chamber 0085 G4VPhysicalVolume* fPhysiChamber; // pointer to the physical Chamber 0086 0087 G4Material* fTargetMater; // pointer to the target material 0088 G4Material* fChamberMater; // pointer to the chamber material 0089 ExP01MagneticField* fPMagField; // pointer to the magnetic field 0090 0091 ExP01DetectorMessenger* fDetectorMessenger; // pointer to the Messenger 0092 0093 G4double fWorldLength; // Full length of the world volume 0094 G4double fTargetLength; // Full length of Target 0095 G4double fTrackerLength; // Full length of Tracker 0096 G4int fNbOfChambers; // Nb of chambers in the tracker region 0097 G4double fChamberWidth; // width of the chambers 0098 G4double fChamberSpacing; // distance between chambers 0099 }; 0100 0101 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0102 0103 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |