Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-23 09:22:22

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