Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-12 07:40:47

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 DetectorConstruction.hh
0027 /// \brief Definition of the DetectorConstruction class
0028 
0029 /////////////////////////////////////////////////////////////////////////
0030 //
0031 // DetectorConstruction
0032 //
0033 // Created: 20.06.2008 V.Ivanchenko
0034 //
0035 // Modified:
0036 //
0037 ////////////////////////////////////////////////////////////////////////
0038 //
0039 
0040 #ifndef DetectorConstruction_h
0041 #define DetectorConstruction_h 1
0042 
0043 #include "G4Material.hh"
0044 #include "G4VUserDetectorConstruction.hh"
0045 #include "globals.hh"
0046 
0047 class G4Tubs;
0048 class G4LogicalVolume;
0049 class G4VPhysicalVolume;
0050 class DetectorMessenger;
0051 class G4VModularPhysicsList;
0052 
0053 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0054 
0055 class DetectorConstruction : public G4VUserDetectorConstruction
0056 {
0057   public:
0058     DetectorConstruction();
0059     virtual ~DetectorConstruction();
0060 
0061     virtual G4VPhysicalVolume* Construct();
0062 
0063     void SetWorldMaterial(const G4String&);
0064     void SetTargetMaterial(const G4String&);
0065 
0066     void SetTargetRadius(G4double val);
0067     void SetTargetLength(G4double val);
0068 
0069     const G4Material* GetTargetMaterial() const { return fTargetMaterial; }
0070     G4VModularPhysicsList* GetPhysicsList() { return fPhysList; }
0071     void SetPhysicsList(G4VModularPhysicsList* ptr) { fPhysList = ptr; }
0072 
0073   private:
0074     void ComputeGeomParameters();
0075 
0076     DetectorConstruction& operator=(const DetectorConstruction& right);
0077     DetectorConstruction(const DetectorConstruction&);
0078 
0079     G4double fRadius;
0080     G4double fLength;
0081     G4double fWorldR;
0082     G4double fWorldZ;
0083 
0084     G4Material* fTargetMaterial;
0085     G4Material* fWorldMaterial;
0086 
0087     G4Tubs* fSolidW;
0088     G4Tubs* fSolidA;
0089 
0090     G4LogicalVolume* fLogicTarget;
0091     G4LogicalVolume* fLogicWorld;
0092 
0093     G4VPhysicalVolume* fPhysWorld;
0094 
0095     DetectorMessenger* fDetectorMessenger;
0096     G4VModularPhysicsList* fPhysList;
0097 };
0098 
0099 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
0100 
0101 #endif