Import Geant4 10.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 11:51:14 +02:00
parent e2d2f9810a
commit 286caacf06
12421 changed files with 730077 additions and 502383 deletions
@@ -23,59 +23,28 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file biasing/B01/include/B01PhysicsList.hh
/// \brief Definition of the B01PhysicsList class
/// \file biasing/B01/include/B01ActionInitialization.hh
/// \brief Definition of the B01ActionInitialization class
//
//
#ifndef B01PhysicsList_h
#define B01PhysicsList_h 1
// $Id: B01ActionInitialization.hh 66780 2013-01-12 14:56:35Z gcosmo $
//
#include "G4VUserPhysicsList.hh"
#include "globals.hh"
#ifndef B01ActionInitialization_h
#define B01ActionInitialization_h 1
#include <vector>
#include "G4VUserActionInitialization.hh"
// taken from Tst12PhysicsList
class B01PhysicsList: public G4VUserPhysicsList
class B01ActionInitialization : public G4VUserActionInitialization
{
public:
B01PhysicsList();
virtual ~B01PhysicsList();
public:
void AddParallelWorldName(G4String& pname)
{paraWorldName.push_back(pname);}
protected:
// Construct particle and physics
virtual void ConstructParticle();
virtual void ConstructProcess();
//
virtual void SetCuts();
protected:
// these methods Construct physics processes and register them
virtual void ConstructGeneral();
virtual void ConstructEM();
virtual void ConstructHad();
virtual void ConstructLeptHad();
void AddScoringProcess();
//
void ConstructAllBosons();
void ConstructAllLeptons();
void ConstructAllMesons();
void ConstructAllBaryons();
void ConstructAllIons();
void ConstructAllShortLiveds();
private:
std::vector<G4String> paraWorldName;
B01ActionInitialization();
virtual ~B01ActionInitialization();
public:
virtual void BuildForMaster() const;
virtual void Build() const;
};
#endif
@@ -27,7 +27,7 @@
/// \brief Definition of the B01DetectorConstruction class
//
//
// $Id$
// $Id: B01DetectorConstruction.hh 77475 2013-11-25 09:38:51Z gcosmo $
//
#ifndef B01DetectorConstruction_hh
@@ -47,7 +47,7 @@ public:
B01DetectorConstruction();
~B01DetectorConstruction();
G4VPhysicalVolume* Construct();
virtual G4VPhysicalVolume* Construct();
G4VIStore* CreateImportanceStore();
// create an importance store, caller is responsible for deleting it
@@ -62,11 +62,13 @@ public:
void SetSensitive();
private:
std::vector< G4VPhysicalVolume * > fPhysicalVolumeVector;
std::vector< G4LogicalVolume * > fLogicalVolumeVector;
virtual void ConstructSDandField();
G4VPhysicalVolume* pWorldVolume;
private:
std::vector< G4LogicalVolume * > fLogicalVolumeVector;
std::vector< G4VPhysicalVolume * > fPhysicalVolumeVector;
G4VPhysicalVolume* fWorldVolume;
};
@@ -43,10 +43,10 @@ class B01PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
~B01PrimaryGeneratorAction();
public:
void GeneratePrimaries(G4Event* anEvent);
virtual void GeneratePrimaries(G4Event* anEvent);
private:
G4ParticleGun* particleGun;
G4ParticleGun* fParticleGun;
};
#endif
@@ -27,7 +27,7 @@
/// \brief Definition of the B01Run class
//
//
// $Id$
// $Id: B01Run.hh 77475 2013-11-25 09:38:51Z gcosmo $
//
//---------------------------------------------------------------------
// (Purpose)
@@ -63,11 +63,11 @@ public:
// Access methods for scoring information.
// - Number of HitsMap for this RUN.
// This is equal to number of collections.
G4int GetNumberOfHitsMap() const {return theRunMap.size();}
G4int GetNumberOfHitsMap() const {return fRunMap.size();}
// - Get HitsMap of this RUN.
// by sequential number, by multifucntional name and collection name,
// and by collection name with full path.
G4THitsMap<G4double>* GetHitsMap(G4int i){return theRunMap[i];}
G4THitsMap<G4double>* GetHitsMap(G4int i){return fRunMap[i];}
G4THitsMap<G4double>* GetHitsMap(const G4String& detName,
const G4String& colName);
G4THitsMap<G4double>* GetHitsMap(const G4String& fullName);
@@ -75,10 +75,12 @@ public:
// This method calls G4THisMap::PrintAll() for individual HitsMap.
void DumpAllScorer();
virtual void Merge(const G4Run*);
private:
std::vector<G4String> theCollName;
std::vector<G4int> theCollID;
std::vector<G4THitsMap<G4double>*> theRunMap;
std::vector<G4String> fCollName;
std::vector<G4int> fCollID;
std::vector<G4THitsMap<G4double>*> fRunMap;
};
//
@@ -27,7 +27,7 @@
/// \brief Definition of the B01RunAction class
//
//
// $Id$
// $Id: B01RunAction.hh 72954 2013-08-14 14:17:32Z gcosmo $
//
#ifndef B01RunAction_h
@@ -61,14 +61,15 @@ public:
public:
void PrintHeader(std::ostream *out);
std::string FillString(const std::string &name, char c, G4int n, G4bool back=true);
std::string FillString(const std::string &name, char c, G4int n
, G4bool back=true);
private:
// Data member
// - vector of MultiFunctionalDetecor names.
std::vector<G4String> theSDName;
G4int FieldName;
G4int FieldValue;
// - vector of MultiFunctionalDetector names.
std::vector<G4String> fSDName;
// G4int fFieldName;
G4int fFieldValue;
};
@@ -1,93 +0,0 @@
//
// ********************************************************************
// * 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 biasing/B01/include/B01ScoreTable.hh
/// \brief Definition of the B01ScoreTable class
//
// $Id$
//
// ----------------------------------------------------------------------
// Class B01ScoreTable
//
// Class description:
//
// This class creates a table from a given G4CellScoreStore
// and prints it to a given output stream.
//
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
//
#ifndef B01ScoreTable_hh
#define B01ScoreTable_hh B01ScoreTable_hh
#include <iostream>
#include <iomanip>
#include <vector>
#include "globals.hh"
#include "G4CellScorerStore.hh"
#include "G4CellScoreValues.hh"
class G4VIStore;
class B01ScoreTable
{
public: // with description
explicit B01ScoreTable(const G4VIStore *aIStore = 0);
~B01ScoreTable();
void Print(const G4MapGeometryCellCellScorer &cs,
std::ostream *out = 0);
// create the table and print it to the ouput stream.
void PrintHeader(std::ostream *out);
// print the table header, done by the above Print() function
void PrintTable(const G4MapGeometryCellCellScorer &cs,
std::ostream *out);
// print the table contend, done by the above Print() function
std::string FillString(const std::string &name,
char c, G4int n, G4bool back = true);
// create a string of length n, by filling up
// name with the char c.
private:
B01ScoreTable(const B01ScoreTable &);
B01ScoreTable &operator=(const B01ScoreTable &);
G4String CreateName(const G4GeometryCell &gCell);
void PrintLine(const G4String &name,
const G4CellScoreValues &sc_scores,
std::ostream *out);
const G4VIStore *fIStore;
G4int FieldName;
G4int FieldValue;
};
#endif