Import Geant4 0.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-01 15:25:35 +02:00
parent 54d6b71f95
commit b97f8d0df7
3237 changed files with 807095 additions and 0 deletions
@@ -0,0 +1,20 @@
#ifndef ExE02DetectorConstruction_h
#define ExE02DetectorConstruction_h 1
#include "G4VUserDetectorConstruction.hh"
#include "globals.hh"
class ExE02DetectorConstruction : public G4VUserDetectorConstruction
{
public:
ExE02DetectorConstruction();
~ExE02DetectorConstruction();
public:
G4VPhysicalVolume* Construct();
};
#endif
@@ -0,0 +1,25 @@
#ifndef ExE02EventAction_h
#define ExE02EventAction_h 1
#include "G4UserEventAction.hh"
#include "globals.hh"
class ExE02EventAction : public G4UserEventAction
{
public:
ExE02EventAction();
~ExE02EventAction();
public:
void BeginOfEventAction();
void EndOfEventAction();
private:
G4int colID1;
G4int colID2;
};
#endif
@@ -0,0 +1,51 @@
// $Id: ExE02PhysicsList.hh,v 1.1 1998/10/14 15:25:44 allison Exp $
// ------------------------------------------------------------
// GEANT 4 class header file
//
// This class is a class derived from G4VUserPhysicsList
// for constructing all particles and processes.
//
// History
// first version 10 Jan. 1998 by H.Kurashige
// ------------------------------------------------------------
#ifndef ExE02PhysicsList_h
#define ExE02PhysicsList_h 1
#include "G4VUserPhysicsList.hh"
#include "globals.hh"
class ExE02PhysicsList: public G4VUserPhysicsList
{
public:
ExE02PhysicsList();
virtual ~ExE02PhysicsList();
protected:
// Construct particle and physics
virtual void ConstructParticle();
virtual void ConstructProcess();
//
virtual void SetCuts(G4double aCut);
protected:
// these methods Construct particles
virtual void ConstructBosons();
virtual void ConstructLeptons();
virtual void ConstructMesons();
virtual void ConstructBarions();
virtual void ConstructIons();
protected:
// these methods Construct physics processes and register them
virtual void ConstructGeneral();
virtual void ConstructEM();
virtual void ConstructHad();
virtual void ConstructLeptHad();
};
#endif
@@ -0,0 +1,25 @@
#ifndef ExE02PrimaryGeneratorAction_h
#define ExE02PrimaryGeneratorAction_h 1
#include "G4VUserPrimaryGeneratorAction.hh"
class G4ParticleGun;
class G4Event;
class ExE02PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
{
public:
ExE02PrimaryGeneratorAction();
~ExE02PrimaryGeneratorAction();
public:
void GeneratePrimaries(G4Event* anEvent);
private:
G4ParticleGun* particleGun;
};
#endif
@@ -0,0 +1,25 @@
#ifndef ExE02RunAction_h
#define ExE02RunAction_h 1
#include "G4UserRunAction.hh"
#include "globals.hh"
class G4Run;
class ExE02RunAction : public G4UserRunAction
{
public:
ExE02RunAction();
~ExE02RunAction();
public:
void BeginOfRunAction(G4Run* aRun);
void EndOfRunAction(G4Run* aRun);
private:
G4int runIDcounter;
};
#endif
@@ -0,0 +1,26 @@
#ifndef ExE02StackingAction_H
#define ExE02StackingAction_H 1
#include "globals.hh"
#include "G4UserStackingAction.hh"
#include "G4ThreeVector.hh"
#include <rw/tpordvec.h>
class G4Track;
class ExE02StackingAction : public G4UserStackingAction
{
public:
ExE02StackingAction();
~ExE02StackingAction();
public:
G4ClassificationOfNewTrack ClassifyNewTrack(G4Track *const aTrack);
void NewStage();
void PrepareNewEvent();
};
#endif
@@ -0,0 +1,60 @@
#ifndef ExE02TrackerHit_h
#define ExE02TrackerHit_h 1
#include "G4VHit.hh"
#include "G4THitsCollection.hh"
#include "G4Allocator.hh"
#include "G4ThreeVector.hh"
class ExE02TrackerHit : public G4VHit
{
public:
ExE02TrackerHit();
~ExE02TrackerHit();
ExE02TrackerHit(const ExE02TrackerHit &right);
const ExE02TrackerHit& operator=(const ExE02TrackerHit &right);
int operator==(const ExE02TrackerHit &right) const;
inline void *operator new(size_t);
inline void operator delete(void *aHit);
void Draw();
void Print();
private:
G4double edep;
G4ThreeVector pos;
public:
inline void SetEdep(G4double de)
{ edep = de; };
inline G4double GetEdep()
{ return edep; };
inline void SetPos(G4ThreeVector xyz)
{ pos = xyz; };
inline G4ThreeVector GetPos()
{ return pos; };
};
typedef G4THitsCollection<ExE02TrackerHit> ExE02TrackerHitsCollection;
extern G4Allocator<ExE02TrackerHit> ExE02TrackerHitAllocator;
inline void* ExE02TrackerHit::operator new(size_t)
{
void *aHit;
aHit = (void *) ExE02TrackerHitAllocator.MallocSingle();
return aHit;
}
inline void ExE02TrackerHit::operator delete(void *aHit)
{
ExE02TrackerHitAllocator.FreeSingle((ExE02TrackerHit*) aHit);
}
#endif
@@ -0,0 +1,30 @@
#ifndef ExE02TrackerSD_h
#define ExE02TrackerSD_h 1
#include "G4VSensitiveDetector.hh"
#include "ExE02TrackerHit.hh"
#include "G4Step.hh"
class ExE02TrackerSD : public G4VSensitiveDetector
{
public:
ExE02TrackerSD(G4String name);
~ExE02TrackerSD();
void Initialize(G4HCofThisEvent*HCE);
G4bool ProcessHits(G4Step*aStep,G4TouchableHistory*ROhist);
void EndOfEvent(G4HCofThisEvent*HCE);
void clear();
void DrawAll();
void PrintAll();
private:
ExE02TrackerHitsCollection *EvenCollection;
ExE02TrackerHitsCollection *OddCollection;
};
#endif