Import Geant4 6.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 10:56:29 +02:00
parent 1d812b78b1
commit e083ffb441
1415 changed files with 111223 additions and 21207 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: DetectorConstruction.hh,v 1.2 2003/10/31 12:08:50 vnivanch Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
// $Id: DetectorConstruction.hh,v 1.3 2004/05/27 13:43:17 vnivanch Exp $
// GEANT4 tag $Name: geant4-06-02 $
//
//
/////////////////////////////////////////////////////////////////////////
@@ -52,6 +52,7 @@ class G4Tubs;
class G4LogicalVolume;
class G4UniformMagField;
class DetectorMessenger;
class G4Region;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -106,6 +107,9 @@ private:
G4LogicalVolume* logicA2;
G4LogicalVolume* logicA3;
G4LogicalVolume* logicA4;
G4Region* vertexRegion;
G4Region* muonRegion;
DetectorMessenger* detectorMessenger; //pointer to the Messenger
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: DetectorMessenger.hh,v 1.2 2003/10/31 12:08:50 vnivanch Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
// $Id: DetectorMessenger.hh,v 1.3 2004/05/27 13:43:17 vnivanch Exp $
// GEANT4 tag $Name: geant4-06-02 $
//
//
/////////////////////////////////////////////////////////////////////////
@@ -75,6 +75,9 @@ private:
G4UIcmdWithADoubleAndUnit* l5Cmd;
G4UIcmdWithADoubleAndUnit* l6Cmd;
G4UIcmdWithoutParameter* UpdateCmd;
G4UIcmdWith3Vector* accCmd1;
G4UIcmdWith3Vector* accCmd2;
G4UIcmdWith3Vector* accCmd3;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -0,0 +1,62 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * 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. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: EmAcceptance.hh,v 1.1 2004/05/27 13:43:57 vnivanch Exp $
// GEANT4 tag $Name: geant4-06-02 $
//
//
#ifndef EmAcceptance_h
#define EmAcceptance_h 1
#include "globals.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class EmAcceptance
{
public:
EmAcceptance();
~EmAcceptance();
void BeginOfAcceptance(const G4String& title, G4int stat);
void EndOfAcceptance();
void EmAcceptanceGauss(const G4String& title, G4int stat,
G4double avr, G4double avr0,
G4double rms, G4double limit);
private:
// hide assignment operator
EmAcceptance & operator=(const EmAcceptance &right);
EmAcceptance(const EmAcceptance&);
G4bool isAccepted;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -20,8 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: Histo.hh,v 1.2 2003/11/03 19:19:46 vnivanch Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
// $Id: Histo.hh,v 1.3 2004/04/02 15:13:44 vnivanch Exp $
// GEANT4 tag $Name: geant4-06-02 $
#ifndef Histo_h
#define Histo_h 1
@@ -92,9 +92,9 @@ public:
void addRow();
// Save tuple event
void setFileName(const G4String& nam) {histName = nam;};
void setFileName(const G4String&);
void setFileType(const G4String& nam) {if(nam == "XML") histType = "XML";};
void setFileType(const G4String&);
private:
@@ -117,7 +117,7 @@ private:
std::vector<G4double> xmax;
std::vector<G4double> unit;
std::vector<G4String> ids;
std::vector<G4String> tittles;
std::vector<G4String> titles;
};
#endif
@@ -20,8 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: HistoManager.hh,v 1.4 2003/11/03 19:19:46 vnivanch Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
// $Id: HistoManager.hh,v 1.6 2004/05/27 13:43:18 vnivanch Exp $
// GEANT4 tag $Name: geant4-06-02 $
#ifndef HistoManager_h
#define HistoManager_h 1
@@ -50,10 +50,12 @@
#include "G4VPhysicalVolume.hh"
#include "G4DataVector.hh"
#include "G4Track.hh"
#include "Histo.hh"
//#include "Histo.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
class Histo;
class HistoManager
{
@@ -106,6 +108,9 @@ public: // Without description
void SetThresholdZ(G4double val) {thPosZ = val;};
void AddStep() {n_step++;};
// Acceptance parameters
void SetEdepAndRMS(G4int, G4ThreeVector);
void SetBeamEnergy(G4double val) {beamEnergy = val;};
private:
@@ -137,11 +142,21 @@ private:
G4bool nTuple;
G4double Eabs1, Eabs2, Eabs3, Eabs4;
G4double E[25];
G4double E[25];
G4DataVector Evertex;
G4DataVector Nvertex;
Histo histo;
G4DataVector edeptrue;
G4DataVector rmstrue;
G4DataVector limittrue;
G4DataVector edep;
G4DataVector erms;
G4int nmax;
Histo* histo;
};
#endif
@@ -22,8 +22,8 @@
//
//
// $Id: HistoMessenger.hh,v 1.1 2003/10/31 12:09:36 vnivanch Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
// $Id: HistoMessenger.hh,v 1.2 2004/05/27 13:43:18 vnivanch Exp $
// GEANT4 tag $Name: geant4-06-02 $
//
//
@@ -61,8 +61,8 @@ class HistoMessenger: public G4UImessenger
G4UIdirectory* histoDir;
G4UIcmdWithAString* factoryCmd;
G4UIcmdWithAString* fileCmd;
G4UIcommand* histoCmd;
G4UIcommand* histoCmd;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......