Import Geant4 11.0.0.beta source tree
This commit is contained in:
@@ -42,4 +42,4 @@ class OpNoviceActionInitialization : public G4VUserActionInitialization
|
||||
void Build() const override;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
@@ -38,16 +38,25 @@
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class OpNoviceDetectorConstructionMessenger;
|
||||
class OpNoviceDetectorConstruction : public G4VUserDetectorConstruction
|
||||
{
|
||||
public:
|
||||
OpNoviceDetectorConstruction();
|
||||
~OpNoviceDetectorConstruction();
|
||||
|
||||
G4VPhysicalVolume* Construct() override;
|
||||
|
||||
private:
|
||||
void SetDumpgdml(G4bool dumpgdml);
|
||||
G4bool IsDumpgdml() const;
|
||||
void SetVerbose(G4bool verbose);
|
||||
G4bool IsVerbose() const;
|
||||
void SetDumpgdmlFile(G4String DumpgdmlFile);
|
||||
G4String GetDumpgdmlFile() const;
|
||||
|
||||
private:
|
||||
G4double fWorld_x;
|
||||
G4double fWorld_y;
|
||||
G4double fWorld_z;
|
||||
|
||||
G4double fExpHall_x;
|
||||
G4double fExpHall_y;
|
||||
G4double fExpHall_z;
|
||||
@@ -59,6 +68,12 @@ class OpNoviceDetectorConstruction : public G4VUserDetectorConstruction
|
||||
G4double fBubble_x;
|
||||
G4double fBubble_y;
|
||||
G4double fBubble_z;
|
||||
|
||||
G4String DumpgdmlFile;
|
||||
G4bool verbose;
|
||||
G4bool dumpgdml;
|
||||
|
||||
OpNoviceDetectorConstructionMessenger* fDetectorMessenger;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file OpNovice/include/OpNoviceDetectorConstructionMessenger.hh
|
||||
/// \brief Definition of the OpNoviceDetectorConstructionMessenger class
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#ifndef OpNoviceDetectorConstructionMessenger_h
|
||||
#define OpNoviceDetectorConstructionMessenger_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4UImessenger.hh"
|
||||
|
||||
class OpNoviceDetectorConstruction;
|
||||
class G4UIdirectory;
|
||||
class G4UIcmdWithABool;
|
||||
class G4UIcmdWithAString;
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class OpNoviceDetectorConstructionMessenger : public G4UImessenger {
|
||||
public:
|
||||
OpNoviceDetectorConstructionMessenger(OpNoviceDetectorConstruction*);
|
||||
~OpNoviceDetectorConstructionMessenger();
|
||||
void SetNewValue(G4UIcommand*, G4String) override;
|
||||
|
||||
private:
|
||||
OpNoviceDetectorConstruction* fOpNoviceDetCon;
|
||||
G4UIdirectory* fDetConDir;
|
||||
G4UIcmdWithABool* fverboseCmd;
|
||||
G4UIcmdWithABool* fdumpGdmlCmd;
|
||||
G4UIcmdWithAString* fdumpGdmlFileNameCmd;
|
||||
};
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
#endif
|
||||
@@ -58,7 +58,5 @@ class OpNoviceEventAction : public G4UserEventAction
|
||||
G4int fMie;
|
||||
G4int fBoundary;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
#ifndef OpNoviceGDMLDetectorConstruction_h
|
||||
#define OpNoviceGDMLDetectorConstruction_h 1
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
class G4GDMLParser;
|
||||
class OpNoviceGDMLDetectorConstructionMessenger;
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class OpNoviceGDMLDetectorConstruction : public G4VUserDetectorConstruction {
|
||||
public:
|
||||
OpNoviceGDMLDetectorConstruction(G4String fname);
|
||||
virtual ~OpNoviceGDMLDetectorConstruction();
|
||||
void ReadGDML();
|
||||
virtual G4VPhysicalVolume* Construct();
|
||||
virtual void ConstructSDandField();
|
||||
void UpdateGeometry();
|
||||
void SetDumpgdml(G4bool fdumpgdml);
|
||||
G4bool IsDumpgdml() const;
|
||||
void SetVerbose(G4bool fverbose);
|
||||
G4bool IsVerbose() const;
|
||||
void SetDumpgdmlFile(G4String fDumpgdmlFile);
|
||||
G4String GetDumpgdmlFile() const;
|
||||
|
||||
private:
|
||||
OpNoviceGDMLDetectorConstruction & operator=(const OpNoviceGDMLDetectorConstruction &right);
|
||||
OpNoviceGDMLDetectorConstruction(const OpNoviceGDMLDetectorConstruction&);
|
||||
G4GDMLParser *parser;
|
||||
G4String gdmlFile;
|
||||
//
|
||||
G4String fDumpgdmlFile;
|
||||
G4bool fverbose;
|
||||
G4bool fdumpgdml;
|
||||
OpNoviceGDMLDetectorConstructionMessenger* fDetectorMessenger;
|
||||
};
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
|
||||
#endif
|
||||
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file OpNovice/include/OpNoviceGDMLDetectorConstructionMessenger.hh
|
||||
/// \brief Definition of the OpNoviceGDMLDetectorConstructionMessenger class
|
||||
//
|
||||
//
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
#ifndef OpNoviceGDMLDetectorConstructionMessenger_h
|
||||
#define OpNoviceGDMLDetectorConstructionMessenger_h 1
|
||||
#include "globals.hh"
|
||||
#include "G4UImessenger.hh"
|
||||
class OpNoviceGDMLDetectorConstruction;
|
||||
class G4UIdirectory;
|
||||
class G4UIcmdWithABool;
|
||||
class G4UIcmdWithAString;
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
class OpNoviceGDMLDetectorConstructionMessenger : public G4UImessenger {
|
||||
public:
|
||||
OpNoviceGDMLDetectorConstructionMessenger(OpNoviceGDMLDetectorConstruction*);
|
||||
~OpNoviceGDMLDetectorConstructionMessenger();
|
||||
virtual void SetNewValue(G4UIcommand*, G4String) override;
|
||||
|
||||
private:
|
||||
OpNoviceGDMLDetectorConstruction* fOpNoviceDetCon;
|
||||
G4UIdirectory* fDetConDir;
|
||||
G4UIcmdWithABool* verboseCmd;
|
||||
G4UIcmdWithABool* dumpGdmlCmd;
|
||||
G4UIcmdWithAString* dumpGdmlFileNameCmd;
|
||||
};
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
#endif
|
||||
@@ -99,7 +99,5 @@ class OpNoviceRun : public G4Run
|
||||
G4ParticleDefinition* fParticle;
|
||||
G4double fEnergy;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
@@ -58,7 +58,5 @@ class OpNoviceRunAction : public G4UserRunAction
|
||||
OpNoviceRun* fRun;
|
||||
OpNovicePrimaryGeneratorAction* fPrimary;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#define OpNoviceSteppingAction_h 1
|
||||
|
||||
#include "OpNoviceEventAction.hh"
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4UserSteppingAction.hh"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user