Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-03-30 07:51:00

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 OpNoviceDetectorConstruction.hh
0027 /// \brief Definition of the OpNoviceDetectorConstruction class
0028 
0029 #ifndef OpNoviceDetectorConstruction_h
0030 #define OpNoviceDetectorConstruction_h 1
0031 
0032 #include "G4VUserDetectorConstruction.hh"
0033 #include "globals.hh"
0034 
0035 #include <CLHEP/Units/SystemOfUnits.h>
0036 
0037 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0038 
0039 class OpNoviceDetectorMessenger;
0040 
0041 class OpNoviceDetectorConstruction : public G4VUserDetectorConstruction
0042 {
0043   public:
0044     OpNoviceDetectorConstruction();
0045     ~OpNoviceDetectorConstruction() override;
0046 
0047     G4VPhysicalVolume* Construct() override;
0048 
0049     void SetVerbose(G4bool verbose);
0050     G4bool IsVerbose() const;
0051 
0052     void SetDumpGdml(G4bool);
0053     G4bool IsDumpGdml() const;
0054     void SetDumpGdmlFile(G4String);
0055     G4String GetDumpGdmlFile() const;
0056 
0057   private:
0058     void PrintError(G4String);
0059 
0060     OpNoviceDetectorMessenger* fDetectorMessenger = nullptr;
0061     G4String fDumpGdmlFileName = "OpNovice_dump.gdml";
0062 
0063     G4double fWorld_x = 15. * CLHEP::m;
0064     G4double fWorld_y = 15. * CLHEP::m;
0065     G4double fWorld_z = 15. * CLHEP::m;
0066 
0067     G4double fExpHall_x = 10. * CLHEP::m;
0068     G4double fExpHall_y = 10. * CLHEP::m;
0069     G4double fExpHall_z = 10. * CLHEP::m;
0070 
0071     G4double fTank_x = 5. * CLHEP::m;
0072     G4double fTank_y = 5. * CLHEP::m;
0073     G4double fTank_z = 5. * CLHEP::m;
0074 
0075     G4double fBubble_x = 0.5 * CLHEP::m;
0076     G4double fBubble_y = 0.5 * CLHEP::m;
0077     G4double fBubble_z = 0.5 * CLHEP::m;
0078 
0079     G4bool fVerbose = false;
0080     G4bool fDumpGdml = false;
0081 };
0082 
0083 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0084 
0085 #endif /*OpNoviceDetectorConstruction_h*/