|
|
|||
File indexing completed on 2026-09-19 08:38:41
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 Par03DetectorMessenger.hh 0027 /// \brief Definition of the Par03DetectorMessenger class 0028 0029 #ifndef PAR03DETECTORMESSENGER_H 0030 #define PAR03DETECTORMESSENGER_H 0031 0032 #include "G4UImessenger.hh" 0033 0034 class Par03DetectorConstruction; 0035 class G4UIdirectory; 0036 class G4UIcmdWithoutParameter; 0037 class G4UIcmdWithAnInteger; 0038 class G4UIcmdWithADoubleAndUnit; 0039 class G4UIcmdWithAString; 0040 0041 /** 0042 * @brief Detector messenger. 0043 * 0044 * Provides UI commands to setup detector and readout geometry (prior to 0045 * initialization). Radius, length, and material of the detector, as well as 0046 * segmentation of the readout geometry can be changed. 0047 * 0048 */ 0049 0050 class Par03DetectorMessenger : public G4UImessenger 0051 { 0052 public: 0053 Par03DetectorMessenger(Par03DetectorConstruction*); 0054 ~Par03DetectorMessenger(); 0055 0056 /// Invokes appropriate methods based on the typed command 0057 virtual void SetNewValue(G4UIcommand*, G4String) final; 0058 /// Retrieves the current settings 0059 virtual G4String GetCurrentValue(G4UIcommand*) final; 0060 0061 private: 0062 /// Detector construction to setup 0063 Par03DetectorConstruction* fDetector = nullptr; 0064 /// Command to set the directory common to all messengers in this example 0065 /// /Par03 0066 G4UIdirectory* fExampleDir = nullptr; 0067 /// Command to set the directory for detector settings /Par03/detector 0068 G4UIdirectory* fDetectorDir = nullptr; 0069 /// Command printing current settings 0070 G4UIcmdWithoutParameter* fPrintCmd; 0071 /// Command to set the detector radius 0072 G4UIcmdWithADoubleAndUnit* fDetectorRadiusCmd = nullptr; 0073 /// Command to set the detector length 0074 G4UIcmdWithADoubleAndUnit* fDetectorLengthCmd = nullptr; 0075 /// Command to set the detector material 0076 G4UIcmdWithAString* fDetectorMaterialCmd = nullptr; 0077 /// Command to set the number of layers 0078 G4UIcmdWithAnInteger* fNbLayersCmd = nullptr; 0079 /// Command to set the number of radial cells 0080 G4UIcmdWithAnInteger* fNbRhoCellsCmd = nullptr; 0081 /// Command to set the number of cells in azimuthal angle 0082 G4UIcmdWithAnInteger* fNbPhiCellsCmd = nullptr; 0083 }; 0084 0085 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|