Import Geant4 5.0.0 source tree
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: B02CellScorer.hh,v 1.1 2002/11/08 14:52:16 dressel Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// Class B02CellScorer
|
||||
//
|
||||
// Class description:
|
||||
//
|
||||
// This class is an example how to build a customized cell scorer
|
||||
// derived from G4VCellScorer that also uses the G4CellScorer.
|
||||
//
|
||||
// Author: Michael Dressel (Michael.Dressel@cern.ch)
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
#ifndef B02CellScorer_hh
|
||||
#define B02CellScorer_hh B02CellScorer_hh
|
||||
|
||||
#include "G4VCellScorer.hh"
|
||||
#include "G4CellScoreComposer.hh"
|
||||
#include "G4CellScorer.hh"
|
||||
|
||||
#include "g4std/vector"
|
||||
|
||||
#include "AIDA/IHistogram1D.h"
|
||||
|
||||
class B02CellScorer : public G4VCellScorer {
|
||||
public:
|
||||
B02CellScorer(AIDA::IHistogram1D *h);
|
||||
virtual ~B02CellScorer();
|
||||
virtual void ScoreAnExitingStep(const G4Step &aStep,
|
||||
const G4GeometryCell &gCell);
|
||||
virtual void ScoreAnEnteringStep(const G4Step &aStep,
|
||||
const G4GeometryCell &gCell);
|
||||
virtual void ScoreAnInVolumeStep(const G4Step &aStep,
|
||||
const G4GeometryCell &gCell);
|
||||
|
||||
G4CellScorer &GetG4CellScorer(){
|
||||
return fG4CellScorer;
|
||||
}
|
||||
private:
|
||||
void FillHisto(const G4Step &aStep);
|
||||
|
||||
G4CellScorer fG4CellScorer;
|
||||
AIDA::IHistogram1D *fHisto;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,80 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: B02CellScorerStore.hh,v 1.1 2002/11/08 14:52:16 dressel Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// Class B02CellScorerStore
|
||||
//
|
||||
// Class description:
|
||||
//
|
||||
// This class is a cell customized cell scorer store.
|
||||
// Nevertheless the standard G4CellScorer may be created with this class
|
||||
// simular to the G4CellScorerStore. In addition this class
|
||||
// stores B02CellScorer pointers.
|
||||
// This class delivers a map with the G4CellScorer objects
|
||||
// to be printed with the G4ScorerTable class.
|
||||
//
|
||||
// Author: Michael Dressel (Michael.Dressel@cern.ch)
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
#ifndef B02CellScorerStore_hh
|
||||
#define B02CellScorerStore_hh B02CellScorerStore_hh
|
||||
|
||||
#include "g4std/map"
|
||||
#include "G4GeometryCell.hh"
|
||||
#include "G4GeometryCellComp.hh"
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VCellScorerStore.hh"
|
||||
|
||||
class G4CellScorer;
|
||||
class B02CellScorer;
|
||||
class IHistogram1D;
|
||||
|
||||
typedef G4std::map<G4GeometryCell, G4CellScorer *, G4GeometryCellComp> G4MapGeometryCellCellScorer;
|
||||
|
||||
typedef G4std::map<G4GeometryCell,B02CellScorer *, G4GeometryCellComp> B02MapGeometryCellB02CellScorer;
|
||||
|
||||
class B02CellScorerStore : public G4VCellScorerStore {
|
||||
public:
|
||||
B02CellScorerStore();
|
||||
virtual ~B02CellScorerStore(){}
|
||||
|
||||
virtual G4VCellScorer *GetCellScore(const G4GeometryCell &gCell);
|
||||
|
||||
G4CellScorer *AddG4CellScorer(const G4GeometryCell &gCell);
|
||||
const G4MapGeometryCellCellScorer &GetMapGeometryCellCellScorer() ;
|
||||
|
||||
void AddB02CellScorer(B02CellScorer *b02cellScorer,
|
||||
const G4GeometryCell &gCell);
|
||||
const B02MapGeometryCellB02CellScorer &GetMapGeometryCellB02CellScorer() const ;
|
||||
|
||||
private:
|
||||
G4MapGeometryCellCellScorer fMapGeometryCellCellScorer;
|
||||
B02MapGeometryCellB02CellScorer fMapGeometryCellB02CellScorer;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -21,17 +21,19 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: B02DetectorConstruction.hh,v 1.2 2002/04/19 10:54:26 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: B02DetectorConstruction.hh,v 1.3 2002/11/08 14:47:42 dressel Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
|
||||
#ifndef B02DetectorConstruction_hh
|
||||
#define B02DetectorConstruction_hh B02DetectorConstruction_hh
|
||||
|
||||
class G4VPhysicalVolume;
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
|
||||
class G4VPhysicalVolume;
|
||||
class G4IStore;
|
||||
|
||||
class B02DetectorConstruction : public G4VUserDetectorConstruction
|
||||
{
|
||||
public:
|
||||
@@ -39,9 +41,7 @@ public:
|
||||
~B02DetectorConstruction();
|
||||
|
||||
G4VPhysicalVolume* Construct();
|
||||
G4VPhysicalVolume* GetWorldVolume(){return fWorldVolume;}
|
||||
private:
|
||||
G4VPhysicalVolume* fWorldVolume;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
+22
-17
@@ -21,33 +21,38 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: B02Scorer.hh,v 1.3 2002/04/19 10:54:26 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: B02ImportanceDetectorConstruction.hh,v 1.1 2002/11/08 14:52:16 dressel Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
|
||||
#ifndef B02scorer_hh
|
||||
#define B02scorer_hh B02scorer_hh
|
||||
#ifndef B02ImportanceDetectorConstruction_hh
|
||||
#define B02ImportanceDetectorConstruction_hh B02ImportanceDetectorConstruction_hh
|
||||
|
||||
#include "g4std/iostream"
|
||||
#include "globals.hh"
|
||||
#include "g4std/map"
|
||||
#include "G4GeometryCell.hh"
|
||||
#include "B02PVolumeStore.hh"
|
||||
|
||||
#include "G4VPScorer.hh"
|
||||
#include "G4PMapPtkTallys.hh"
|
||||
class G4VPhysicalVolume;
|
||||
|
||||
class G4Step;
|
||||
class G4PStep;
|
||||
|
||||
class B02Scorer : public G4VPScorer
|
||||
|
||||
class B02ImportanceDetectorConstruction
|
||||
{
|
||||
public:
|
||||
B02Scorer();
|
||||
~B02Scorer();
|
||||
void Score(const G4Step &aStep, const G4PStep &aPStep);
|
||||
const G4PMapPtkTallys &GetMapPtkTallys() const { return fPtkTallys; }
|
||||
B02ImportanceDetectorConstruction();
|
||||
~B02ImportanceDetectorConstruction();
|
||||
|
||||
const G4VPhysicalVolume &GetPhysicalVolumeByName(const G4String& name) const;
|
||||
G4VPhysicalVolume &GetWorldVolume() const;
|
||||
G4String ListPhysNamesAsG4String();
|
||||
G4String GetCellName(G4int i);
|
||||
G4GeometryCell GetGeometryCell(G4int i);
|
||||
|
||||
private:
|
||||
G4PMapPtkTallys fPtkTallys;
|
||||
void Construct();
|
||||
B02PVolumeStore fPVolumeStore;;
|
||||
G4VPhysicalVolume *fWorldVolume;
|
||||
};
|
||||
|
||||
G4std::ostream& operator<<(G4std::ostream &out, const B02Scorer &ps);
|
||||
|
||||
#endif
|
||||
@@ -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: B02PVolumeStore.hh,v 1.1 2002/11/08 14:52:16 dressel Exp $
|
||||
// GEANT4 tag
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// Class B02PVolumeStore
|
||||
//
|
||||
// Class description:
|
||||
//
|
||||
// ...
|
||||
|
||||
// Author: Michael Dressel (Michael.Dressel@cern.ch)
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
#ifndef B02PVolumeStore_hh
|
||||
#define B02PVolumeStore_hh B02PVolumeStore_hh
|
||||
|
||||
#include "globals.hh"
|
||||
#include "g4std/set"
|
||||
#include "G4GeometryCell.hh"
|
||||
#include "G4GeometryCellComp.hh"
|
||||
|
||||
typedef G4std::set< G4GeometryCell, G4GeometryCellComp > B02SetGeometryCell;
|
||||
|
||||
class B02PVolumeStore {
|
||||
public:
|
||||
B02PVolumeStore();
|
||||
~B02PVolumeStore();
|
||||
|
||||
void AddPVolume(const G4GeometryCell &cell);
|
||||
const G4VPhysicalVolume *GetPVolume(const G4String &name) const;
|
||||
G4String GetPNames() const;
|
||||
|
||||
private:
|
||||
B02SetGeometryCell fSetGeometryCell;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
@@ -21,17 +21,16 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: B02PhysicsList.hh,v 1.2 2002/04/19 10:54:26 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
//
|
||||
|
||||
#ifndef B02PhysicsList_h
|
||||
#define B02PhysicsList_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VUserPhysicsList.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class B02PhysicsList : public G4VUserPhysicsList
|
||||
|
||||
// taken from Tst12PhysicsList
|
||||
|
||||
class B02PhysicsList: public G4VUserPhysicsList
|
||||
{
|
||||
public:
|
||||
B02PhysicsList();
|
||||
@@ -42,6 +41,7 @@ class B02PhysicsList : public G4VUserPhysicsList
|
||||
virtual void ConstructParticle();
|
||||
virtual void ConstructProcess();
|
||||
|
||||
//
|
||||
virtual void SetCuts();
|
||||
|
||||
protected:
|
||||
@@ -61,3 +61,6 @@ class B02PhysicsList : public G4VUserPhysicsList
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -21,9 +21,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: B02PrimaryGeneratorAction.hh,v 1.2 2002/04/19 10:54:26 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
//
|
||||
|
||||
#ifndef B02PrimaryGeneratorAction_hh
|
||||
#define B02PrimaryGeneratorAction_hh B02PrimaryGeneratorAction_hh
|
||||
@@ -47,3 +44,5 @@ class B02PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: B02ScoringDetectorConstruction.hh,v 1.2 2002/04/19 10:54:26 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
|
||||
#ifndef B02ScoringDetectorConstruction_hh
|
||||
|
||||
Reference in New Issue
Block a user