DetectorConstruction.hh

Go to the documentation of this file.
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 /// \file hadronic/Hadr00/include/DetectorConstruction.hh
00027 /// \brief Definition of the DetectorConstruction class
00028 //
00029 // $Id$
00030 //
00031 /////////////////////////////////////////////////////////////////////////
00032 //
00033 // DetectorConstruction
00034 //
00035 // Created: 20.06.2008 V.Ivanchenko
00036 //
00037 // Modified:
00038 //
00039 ////////////////////////////////////////////////////////////////////////
00040 // 
00041 
00042 #ifndef DetectorConstruction_h
00043 #define DetectorConstruction_h 1
00044 
00045 #include "G4VUserDetectorConstruction.hh"
00046 #include "globals.hh"
00047 #include "G4Material.hh"
00048 
00049 class G4LogicalVolume;
00050 class DetectorMessenger;
00051 
00052 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00053 
00054 class DetectorConstruction : public G4VUserDetectorConstruction
00055 {
00056 public:
00057 
00058   DetectorConstruction();
00059   virtual ~DetectorConstruction();
00060 
00061   virtual G4VPhysicalVolume* Construct();
00062 
00063   void SetWorldMaterial(const G4String&);
00064   void SetTargetMaterial(const G4String&);
00065 
00066   void SetTargetRadius(G4double val);
00067   void SetTargetLength(G4double val);
00068 
00069   void UpdateGeometry();
00070 
00071 private:
00072 
00073   DetectorConstruction & operator=(const DetectorConstruction &right);
00074   DetectorConstruction(const DetectorConstruction&);
00075 
00076   G4double fRadius;
00077   G4double fLength;
00078 
00079   G4Material*  fTargetMaterial;
00080   G4Material*  fWorldMaterial;
00081 
00082   G4LogicalVolume* fLogicTarget;
00083   G4LogicalVolume* fLogicWorld;
00084 
00085   DetectorMessenger* fDetectorMessenger;
00086 
00087 };
00088 
00089 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
00090 
00091 #endif
00092 

Generated on 19 Feb 2017 for QwGeant4 by  doxygen 1.6.1