Import Geant4 11.3.0.beta source tree
This commit is contained in:
@@ -43,9 +43,6 @@ class ExTGActionInitialization : public G4VUserActionInitialization
|
||||
|
||||
virtual void BuildForMaster() const;
|
||||
virtual void Build() const;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
#ifndef ExTGDetectorConstruction_HH
|
||||
#define ExTGDetectorConstruction_HH
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4tgrMessenger;
|
||||
|
||||
@@ -40,14 +40,12 @@ class G4tgrMessenger;
|
||||
class ExTGDetectorConstruction : public G4VUserDetectorConstruction
|
||||
{
|
||||
public:
|
||||
|
||||
ExTGDetectorConstruction();
|
||||
~ExTGDetectorConstruction();
|
||||
~ExTGDetectorConstruction();
|
||||
|
||||
G4VPhysicalVolume* Construct();
|
||||
|
||||
private:
|
||||
|
||||
G4tgrMessenger* fMessenger;
|
||||
};
|
||||
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
#ifndef ExTGDetectorConstructionWithCpp_HH
|
||||
#define ExTGDetectorConstructionWithCpp_HH
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4tgrMessenger;
|
||||
|
||||
@@ -40,14 +40,12 @@ class G4tgrMessenger;
|
||||
class ExTGDetectorConstructionWithCpp : public G4VUserDetectorConstruction
|
||||
{
|
||||
public:
|
||||
|
||||
ExTGDetectorConstructionWithCpp();
|
||||
~ExTGDetectorConstructionWithCpp();
|
||||
~ExTGDetectorConstructionWithCpp();
|
||||
|
||||
G4VPhysicalVolume* Construct();
|
||||
|
||||
private:
|
||||
|
||||
G4tgrMessenger* fMessenger;
|
||||
};
|
||||
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
#ifndef ExTGDetectorConstructionWithCuts_HH
|
||||
#define ExTGDetectorConstructionWithCuts_HH
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4tgrMessenger;
|
||||
|
||||
@@ -40,14 +40,12 @@ class G4tgrMessenger;
|
||||
class ExTGDetectorConstructionWithCuts : public G4VUserDetectorConstruction
|
||||
{
|
||||
public:
|
||||
|
||||
ExTGDetectorConstructionWithCuts();
|
||||
~ExTGDetectorConstructionWithCuts();
|
||||
~ExTGDetectorConstructionWithCuts();
|
||||
|
||||
G4VPhysicalVolume* Construct();
|
||||
|
||||
private:
|
||||
|
||||
G4tgrMessenger* fMessenger;
|
||||
};
|
||||
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
#ifndef ExTGDetectorConstructionWithSD_h
|
||||
#define ExTGDetectorConstructionWithSD_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4tgrMessenger;
|
||||
|
||||
@@ -40,16 +40,14 @@ class G4tgrMessenger;
|
||||
class ExTGDetectorConstructionWithSD : public G4VUserDetectorConstruction
|
||||
{
|
||||
public:
|
||||
|
||||
ExTGDetectorConstructionWithSD();
|
||||
ExTGDetectorConstructionWithSD();
|
||||
~ExTGDetectorConstructionWithSD();
|
||||
|
||||
G4VPhysicalVolume* Construct();
|
||||
void ConstructSDandField();
|
||||
G4VPhysicalVolume* Construct();
|
||||
void ConstructSDandField();
|
||||
|
||||
private:
|
||||
|
||||
G4tgrMessenger* fMessenger;
|
||||
G4tgrMessenger* fMessenger;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
/// \file persistency/P03/include/ExTGPrimaryGeneratorAction.hh
|
||||
/// \brief Definition of the ExTGPrimaryGeneratorAction class
|
||||
//
|
||||
|
||||
|
||||
#ifndef ExTGPrimaryGeneratorAction_h
|
||||
#define ExTGPrimaryGeneratorAction_h 1
|
||||
|
||||
@@ -40,14 +40,12 @@ class G4Event;
|
||||
class ExTGPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
{
|
||||
public:
|
||||
|
||||
ExTGPrimaryGeneratorAction();
|
||||
~ExTGPrimaryGeneratorAction();
|
||||
ExTGPrimaryGeneratorAction();
|
||||
~ExTGPrimaryGeneratorAction();
|
||||
|
||||
void GeneratePrimaries(G4Event*);
|
||||
|
||||
private:
|
||||
|
||||
G4ParticleGun* fParticleGun;
|
||||
};
|
||||
|
||||
|
||||
@@ -30,10 +30,10 @@
|
||||
#ifndef ExTGRCDetectorBuilder_h
|
||||
#define ExTGRCDetectorBuilder_h
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4tgbDetectorBuilder.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
class ExTGRCLineProcessor;
|
||||
|
||||
@@ -43,16 +43,15 @@ class ExTGRCLineProcessor;
|
||||
/// \author: P. Arce
|
||||
|
||||
class ExTGRCDetectorBuilder : public G4tgbDetectorBuilder
|
||||
{
|
||||
public:
|
||||
|
||||
{
|
||||
public:
|
||||
ExTGRCDetectorBuilder();
|
||||
~ExTGRCDetectorBuilder();
|
||||
~ExTGRCDetectorBuilder();
|
||||
|
||||
const G4tgrVolume* ReadDetector();
|
||||
virtual G4VPhysicalVolume* ConstructDetector( const G4tgrVolume* tgrVoltop);
|
||||
private:
|
||||
virtual G4VPhysicalVolume* ConstructDetector(const G4tgrVolume* tgrVoltop);
|
||||
|
||||
private:
|
||||
ExTGRCLineProcessor* fTlproc;
|
||||
};
|
||||
|
||||
|
||||
@@ -30,10 +30,10 @@
|
||||
#ifndef ExTGRCLineProcessor_H
|
||||
#define ExTGRCLineProcessor_H 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include <vector>
|
||||
|
||||
#include "G4tgrLineProcessor.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
#include <vector>
|
||||
|
||||
/// Line processor that adds the definition of regions
|
||||
///
|
||||
@@ -43,11 +43,10 @@
|
||||
class ExTGRCLineProcessor : public G4tgrLineProcessor
|
||||
{
|
||||
public:
|
||||
|
||||
ExTGRCLineProcessor();
|
||||
~ExTGRCLineProcessor();
|
||||
~ExTGRCLineProcessor();
|
||||
|
||||
G4bool ProcessLine( const std::vector<G4String>& wl );
|
||||
G4bool ProcessLine(const std::vector<G4String>& wl);
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -30,9 +30,10 @@
|
||||
#ifndef ExTGRCRegionCutsMgr_h
|
||||
#define ExTGRCRegionCutsMgr_h
|
||||
|
||||
#include <vector>
|
||||
#include "globals.hh"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class ExTGRCRegionData;
|
||||
|
||||
/// Region cuts manager
|
||||
@@ -40,30 +41,27 @@ class ExTGRCRegionData;
|
||||
/// Changes: creation May 2007
|
||||
/// \author P. Arce
|
||||
|
||||
class ExTGRCRegionCutsMgr
|
||||
{
|
||||
class ExTGRCRegionCutsMgr
|
||||
{
|
||||
public:
|
||||
|
||||
~ExTGRCRegionCutsMgr();
|
||||
~ExTGRCRegionCutsMgr();
|
||||
|
||||
static ExTGRCRegionCutsMgr* GetInstance();
|
||||
// Get the only instance
|
||||
// Get the only instance
|
||||
|
||||
void AddRegionData( const std::vector<G4String>& rd );
|
||||
void AddRegionData(const std::vector<G4String>& rd);
|
||||
|
||||
void AddRegionCuts( const std::vector<G4String>& rc );
|
||||
|
||||
std::vector<ExTGRCRegionData*> FindRegionData( const G4String& name);
|
||||
void AddRegionCuts(const std::vector<G4String>& rc);
|
||||
|
||||
std::vector<ExTGRCRegionData*> FindRegionData(const G4String& name);
|
||||
|
||||
void BuildRegions();
|
||||
void BuildProductionCuts();
|
||||
|
||||
private:
|
||||
|
||||
ExTGRCRegionCutsMgr();
|
||||
|
||||
private:
|
||||
|
||||
static ExTGRCRegionCutsMgr* fInstance;
|
||||
std::vector<ExTGRCRegionData*> fRegionDatae;
|
||||
};
|
||||
|
||||
@@ -30,34 +30,33 @@
|
||||
#ifndef ExTGRCRegionData_h
|
||||
#define ExTGRCRegionData_h
|
||||
|
||||
#include <vector>
|
||||
#include "globals.hh"
|
||||
|
||||
#include <vector>
|
||||
|
||||
/// Stores cuts per region data
|
||||
///
|
||||
/// Changes: creation May 2007
|
||||
/// \author P. Arce
|
||||
|
||||
class ExTGRCRegionData
|
||||
{
|
||||
class ExTGRCRegionData
|
||||
{
|
||||
public:
|
||||
ExTGRCRegionData(const std::vector<G4String>& rd);
|
||||
~ExTGRCRegionData();
|
||||
|
||||
ExTGRCRegionData( const std::vector<G4String>& rd );
|
||||
~ExTGRCRegionData();
|
||||
|
||||
void SetCutsData( const std::vector<G4String>& cu );
|
||||
void SetCutsData(const std::vector<G4String>& cu);
|
||||
|
||||
//--- Get methods
|
||||
|
||||
G4String GetRegionName() const { return fRegionName; }
|
||||
std::vector<G4String> GetLVNames() { return fLVNames; }
|
||||
G4double GetGammaCut() const { return fGammaCut; }
|
||||
G4double GetElectronCut() const { return fElectronCut; }
|
||||
G4double GetPositronCut() const { return fPositronCut; }
|
||||
G4bool CutsAreSet() const { return fbCutsSet; }
|
||||
G4String GetRegionName() const { return fRegionName; }
|
||||
std::vector<G4String> GetLVNames() { return fLVNames; }
|
||||
G4double GetGammaCut() const { return fGammaCut; }
|
||||
G4double GetElectronCut() const { return fElectronCut; }
|
||||
G4double GetPositronCut() const { return fPositronCut; }
|
||||
G4bool CutsAreSet() const { return fbCutsSet; }
|
||||
|
||||
private:
|
||||
|
||||
G4String fRegionName;
|
||||
std::vector<G4String> fLVNames;
|
||||
G4double fGammaCut, fElectronCut, fPositronCut;
|
||||
|
||||
@@ -40,9 +40,8 @@ class G4Run;
|
||||
class ExTGRunAction : public G4UserRunAction
|
||||
{
|
||||
public:
|
||||
|
||||
ExTGRunAction();
|
||||
~ExTGRunAction();
|
||||
~ExTGRunAction();
|
||||
|
||||
void BeginOfRunAction(const G4Run*);
|
||||
void EndOfRunAction(const G4Run*);
|
||||
|
||||
@@ -30,45 +30,43 @@
|
||||
#ifndef ExTGTrackerHit_h
|
||||
#define ExTGTrackerHit_h 1
|
||||
|
||||
#include "G4VHit.hh"
|
||||
#include "G4THitsCollection.hh"
|
||||
#include "G4Allocator.hh"
|
||||
#include "G4THitsCollection.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4VHit.hh"
|
||||
|
||||
/// Example of hit
|
||||
|
||||
class ExTGTrackerHit : public G4VHit
|
||||
{
|
||||
public:
|
||||
|
||||
ExTGTrackerHit();
|
||||
~ExTGTrackerHit();
|
||||
~ExTGTrackerHit();
|
||||
ExTGTrackerHit(const ExTGTrackerHit&);
|
||||
const ExTGTrackerHit& operator=(const ExTGTrackerHit&);
|
||||
G4bool operator==(const ExTGTrackerHit&) const;
|
||||
|
||||
inline void* operator new(size_t);
|
||||
inline void operator delete(void*);
|
||||
inline void operator delete(void*);
|
||||
|
||||
void Draw();
|
||||
void Print();
|
||||
|
||||
void SetTrackID (G4int track) { fTrackID = track; };
|
||||
void SetChamberNb(G4int chamb) { fChamberNb = chamb; };
|
||||
void SetEdep (G4double de) { fEdep = de; };
|
||||
void SetPos (G4ThreeVector xyz){ fPos = xyz; };
|
||||
|
||||
G4int GetTrackID() { return fTrackID; };
|
||||
G4int GetChamberNb() { return fChamberNb; };
|
||||
G4double GetEdep() { return fEdep; };
|
||||
G4ThreeVector GetPos(){ return fPos; };
|
||||
|
||||
void SetTrackID(G4int track) { fTrackID = track; };
|
||||
void SetChamberNb(G4int chamb) { fChamberNb = chamb; };
|
||||
void SetEdep(G4double de) { fEdep = de; };
|
||||
void SetPos(G4ThreeVector xyz) { fPos = xyz; };
|
||||
|
||||
G4int GetTrackID() { return fTrackID; };
|
||||
G4int GetChamberNb() { return fChamberNb; };
|
||||
G4double GetEdep() { return fEdep; };
|
||||
G4ThreeVector GetPos() { return fPos; };
|
||||
|
||||
private:
|
||||
|
||||
G4int fTrackID;
|
||||
G4int fChamberNb;
|
||||
G4double fEdep;
|
||||
G4ThreeVector fPos;
|
||||
G4int fTrackID;
|
||||
G4int fChamberNb;
|
||||
G4double fEdep;
|
||||
G4ThreeVector fPos;
|
||||
};
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
@@ -81,16 +79,15 @@ extern G4ThreadLocal G4Allocator<ExTGTrackerHit>* ExTGTrackerHitAllocator;
|
||||
|
||||
inline void* ExTGTrackerHit::operator new(size_t)
|
||||
{
|
||||
if(!ExTGTrackerHitAllocator)
|
||||
ExTGTrackerHitAllocator = new G4Allocator<ExTGTrackerHit>;
|
||||
return (void *) ExTGTrackerHitAllocator->MallocSingle();
|
||||
if (!ExTGTrackerHitAllocator) ExTGTrackerHitAllocator = new G4Allocator<ExTGTrackerHit>;
|
||||
return (void*)ExTGTrackerHitAllocator->MallocSingle();
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
inline void ExTGTrackerHit::operator delete(void *hit)
|
||||
inline void ExTGTrackerHit::operator delete(void* hit)
|
||||
{
|
||||
ExTGTrackerHitAllocator->FreeSingle((ExTGTrackerHit*) hit);
|
||||
ExTGTrackerHitAllocator->FreeSingle((ExTGTrackerHit*)hit);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
@@ -30,9 +30,10 @@
|
||||
#ifndef ExTGTrackerSD_h
|
||||
#define ExTGTrackerSD_h 1
|
||||
|
||||
#include "G4VSensitiveDetector.hh"
|
||||
#include "ExTGTrackerHit.hh"
|
||||
|
||||
#include "G4VSensitiveDetector.hh"
|
||||
|
||||
class G4Step;
|
||||
class G4HCofThisEvent;
|
||||
|
||||
@@ -41,18 +42,15 @@ class G4HCofThisEvent;
|
||||
class ExTGTrackerSD : public G4VSensitiveDetector
|
||||
{
|
||||
public:
|
||||
|
||||
ExTGTrackerSD(G4String);
|
||||
~ExTGTrackerSD();
|
||||
~ExTGTrackerSD();
|
||||
|
||||
void Initialize(G4HCofThisEvent*);
|
||||
G4bool ProcessHits(G4Step*, G4TouchableHistory*);
|
||||
void EndOfEvent(G4HCofThisEvent*);
|
||||
|
||||
private:
|
||||
|
||||
ExTGTrackerHitsCollection* fTrackerCollection;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user