Import Geant4 10.5.0 source tree
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
/// \file eventgenerator/HepMC/HepMCEx02/include/H02DetectorConstruction.hh
|
||||
/// \brief Definition of the H02DetectorConstruction class
|
||||
//
|
||||
// $Id: H02DetectorConstruction.hh 77801 2013-11-28 13:33:20Z gcosmo $
|
||||
//
|
||||
|
||||
#ifndef H02_DETECTOR_CONSTRUCTION_H
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
/// \file eventgenerator/HepMC/HepMCEx02/include/H02EventAction.hh
|
||||
/// \brief Definition of the H02EventAction class
|
||||
//
|
||||
// $Id: H02EventAction.hh 77801 2013-11-28 13:33:20Z gcosmo $
|
||||
//
|
||||
#ifndef H02_EVENT_ACTION_H
|
||||
#define H02_EVENT_ACTION_H
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
/// \file eventgenerator/HepMC/HepMCEx02/include/H02Field.hh
|
||||
/// \brief Definition of the H02Field class
|
||||
//
|
||||
// $Id: H02Field.hh 77801 2013-11-28 13:33:20Z gcosmo $
|
||||
//
|
||||
#ifndef H02_FIELD_H
|
||||
#define H02_FIELD_H
|
||||
@@ -36,10 +35,10 @@
|
||||
|
||||
class H02Field : public G4MagneticField {
|
||||
public:
|
||||
H02Field() { }
|
||||
H02Field() : G4MagneticField() { }
|
||||
~H02Field() { }
|
||||
|
||||
void GetFieldValue(const G4double Point[3], G4double* Bfield ) const;
|
||||
virtual void GetFieldValue(const G4double Point[3], G4double* Bfield ) const;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
/// \file eventgenerator/HepMC/HepMCEx02/include/H02MuonHit.hh
|
||||
/// \brief Definition of the H02MuonHit class
|
||||
//
|
||||
// $Id: H02MuonHit.hh 77801 2013-11-28 13:33:20Z gcosmo $
|
||||
//
|
||||
#ifndef H02_MUON_HIT_H
|
||||
#define H02_MUON_HIT_H
|
||||
@@ -71,29 +70,29 @@ public:
|
||||
virtual void Print();
|
||||
|
||||
private:
|
||||
G4int moduleID;
|
||||
G4String pname;
|
||||
G4ThreeVector momentum;
|
||||
G4ThreeVector position;
|
||||
G4double tof;
|
||||
G4int fModuleID;
|
||||
G4String fPname;
|
||||
G4ThreeVector fMomentum;
|
||||
G4ThreeVector fPosition;
|
||||
G4double fTof;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
inline void H02MuonHit::SetModuleID(G4int i) { moduleID=i; }
|
||||
inline G4int H02MuonHit::GetModuleID() const { return moduleID; }
|
||||
inline void H02MuonHit::SetModuleID(G4int i) { fModuleID=i; }
|
||||
inline G4int H02MuonHit::GetModuleID() const { return fModuleID; }
|
||||
|
||||
inline void H02MuonHit::SetParticle(G4String aname) { pname=aname; }
|
||||
inline G4String H02MuonHit::GetParticle() const { return pname; }
|
||||
inline void H02MuonHit::SetParticle(G4String aname) { fPname=aname; }
|
||||
inline G4String H02MuonHit::GetParticle() const { return fPname; }
|
||||
|
||||
inline void H02MuonHit::SetMomentum(const G4ThreeVector& pxyz)
|
||||
{ momentum=pxyz; }
|
||||
inline G4ThreeVector H02MuonHit::GetMomentum() const { return momentum; }
|
||||
{ fMomentum=pxyz; }
|
||||
inline G4ThreeVector H02MuonHit::GetMomentum() const { return fMomentum; }
|
||||
|
||||
inline void H02MuonHit::SetPosition(const G4ThreeVector& xyz) { position=xyz; }
|
||||
inline G4ThreeVector H02MuonHit::GetPosition() const { return position; }
|
||||
inline void H02MuonHit::SetPosition(const G4ThreeVector& xyz) { fPosition=xyz; }
|
||||
inline G4ThreeVector H02MuonHit::GetPosition() const { return fPosition; }
|
||||
|
||||
inline void H02MuonHit::SetTOF(G4double atof) { tof=atof; }
|
||||
inline G4double H02MuonHit::GetTOF() const { return tof; }
|
||||
inline void H02MuonHit::SetTOF(G4double atof) { fTof=atof; }
|
||||
inline G4double H02MuonHit::GetTOF() const { return fTof; }
|
||||
|
||||
typedef G4THitsCollection<H02MuonHit> H02MuonHitsCollection;
|
||||
extern G4Allocator<H02MuonHit> H02MuonHitAllocator;
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
/// \file eventgenerator/HepMC/HepMCEx02/include/H02MuonSD.hh
|
||||
/// \brief Definition of the H02MuonSD class
|
||||
//
|
||||
// $Id: H02MuonSD.hh 77801 2013-11-28 13:33:20Z gcosmo $
|
||||
//
|
||||
#ifndef H02_MUON_SD_H
|
||||
#define H02_MUON_SD_H
|
||||
@@ -51,7 +50,7 @@ public:
|
||||
virtual void PrintAll();
|
||||
|
||||
private:
|
||||
H02MuonHitsCollection* hitCollection;
|
||||
H02MuonHitsCollection* fHitCollection;
|
||||
|
||||
};
|
||||
|
||||
|
||||
+14
-15
@@ -29,7 +29,6 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// H02PrimaryGeneratorAction.hh
|
||||
// $Id: H02PrimaryGeneratorAction.hh 77801 2013-11-28 13:33:20Z gcosmo $
|
||||
//
|
||||
// ====================================================================
|
||||
#ifndef H02_PRIMARY_GENERATOR_ACTION_H
|
||||
@@ -57,42 +56,42 @@ public:
|
||||
G4String GetGeneratorName() const;
|
||||
|
||||
private:
|
||||
G4VPrimaryGenerator* particleGun;
|
||||
G4VPrimaryGenerator* hepmcAscii;
|
||||
G4VPrimaryGenerator* pythiaGen;
|
||||
G4VPrimaryGenerator* fParticleGun;
|
||||
G4VPrimaryGenerator* fHepmcAscii;
|
||||
G4VPrimaryGenerator* fPythiaGen;
|
||||
|
||||
G4VPrimaryGenerator* currentGenerator;
|
||||
G4String currentGeneratorName;
|
||||
std::map<G4String, G4VPrimaryGenerator*> gentypeMap;
|
||||
G4VPrimaryGenerator* fCurrentGenerator;
|
||||
G4String fCurrentGeneratorName;
|
||||
std::map<G4String, G4VPrimaryGenerator*> fGentypeMap;
|
||||
|
||||
H02PrimaryGeneratorMessenger* messenger;
|
||||
H02PrimaryGeneratorMessenger* fMessenger;
|
||||
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
inline void H02PrimaryGeneratorAction::SetGenerator(G4VPrimaryGenerator* gen)
|
||||
{
|
||||
currentGenerator= gen;
|
||||
fCurrentGenerator= gen;
|
||||
}
|
||||
|
||||
inline void H02PrimaryGeneratorAction::SetGenerator(G4String genname)
|
||||
{
|
||||
std::map<G4String, G4VPrimaryGenerator*>::iterator
|
||||
pos = gentypeMap.find(genname);
|
||||
if(pos != gentypeMap.end()) {
|
||||
currentGenerator= pos->second;
|
||||
currentGeneratorName= genname;
|
||||
pos = fGentypeMap.find(genname);
|
||||
if(pos != fGentypeMap.end()) {
|
||||
fCurrentGenerator= pos->second;
|
||||
fCurrentGeneratorName= genname;
|
||||
}
|
||||
}
|
||||
|
||||
inline G4VPrimaryGenerator* H02PrimaryGeneratorAction::GetGenerator() const
|
||||
{
|
||||
return currentGenerator;
|
||||
return fCurrentGenerator;
|
||||
}
|
||||
|
||||
inline G4String H02PrimaryGeneratorAction::GetGeneratorName() const
|
||||
{
|
||||
return currentGeneratorName;
|
||||
return fCurrentGeneratorName;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
+5
-6
@@ -26,7 +26,6 @@
|
||||
/// \file eventgenerator/HepMC/HepMCEx02/include/H02PrimaryGeneratorMessenger.hh
|
||||
/// \brief Definition of the H02PrimaryGeneratorMessenger class
|
||||
//
|
||||
// $Id: H02PrimaryGeneratorMessenger.hh 77801 2013-11-28 13:33:20Z gcosmo $
|
||||
//
|
||||
#ifndef H02_PRIMARY_GENERATOR_MESSENGER_H
|
||||
#define H02_PRIMARY_GENERATOR_MESSENGER_H
|
||||
@@ -47,14 +46,14 @@ public:
|
||||
H02PrimaryGeneratorMessenger(H02PrimaryGeneratorAction* genaction);
|
||||
~H02PrimaryGeneratorMessenger();
|
||||
|
||||
void SetNewValue(G4UIcommand* command, G4String newValues);
|
||||
G4String GetCurrentValue(G4UIcommand* command);
|
||||
virtual void SetNewValue(G4UIcommand* command, G4String newValues);
|
||||
virtual G4String GetCurrentValue(G4UIcommand* command);
|
||||
|
||||
private:
|
||||
H02PrimaryGeneratorAction* primaryAction;
|
||||
H02PrimaryGeneratorAction* fPrimaryAction;
|
||||
|
||||
G4UIdirectory* dir;
|
||||
G4UIcmdWithAString* select;
|
||||
G4UIdirectory* fDir;
|
||||
G4UIcmdWithAString* fSelect;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
/// \file eventgenerator/HepMC/HepMCEx02/include/H02SteppingAction.hh
|
||||
/// \brief Definition of the H02SteppingAction class
|
||||
//
|
||||
// $Id: H02SteppingAction.hh 77801 2013-11-28 13:33:20Z gcosmo $
|
||||
//
|
||||
#ifndef H02_STEPPING_ACTION_H
|
||||
#define H02_STEPPING_ACTION_H
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
/// \file eventgenerator/HepMC/HepMCEx01/include/HepMCG4AsciiReader.hh
|
||||
/// \brief Definition of the HepMCG4AsciiReader class
|
||||
//
|
||||
// $Id: HepMCG4AsciiReader.hh 77801 2013-11-28 13:33:20Z gcosmo $
|
||||
//
|
||||
|
||||
#ifndef HEPMC_G4_ASCII_READER_H
|
||||
|
||||
-1
@@ -26,7 +26,6 @@
|
||||
/// \file eventgenerator/HepMC/HepMCEx01/include/HepMCG4AsciiReaderMessenger.hh
|
||||
/// \brief Definition of the HepMCG4AsciiReaderMessenger class
|
||||
//
|
||||
// $Id: HepMCG4AsciiReaderMessenger.hh 77801 2013-11-28 13:33:20Z gcosmo $
|
||||
//
|
||||
|
||||
#ifndef HEPMC_G4_ASCII_READER_MESSENGER_H
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
/// \file eventgenerator/HepMC/HepMCEx01/include/HepMCG4Interface.hh
|
||||
/// \brief Definition of the HepMCG4Interface class
|
||||
//
|
||||
// $Id: HepMCG4Interface.hh 77801 2013-11-28 13:33:20Z gcosmo $
|
||||
//
|
||||
|
||||
#ifndef HEPMC_G4_INTERFACE_H
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
/// \file eventgenerator/HepMC/HepMCEx01/include/HepMCG4PythiaInterface.hh
|
||||
/// \brief Definition of the HepMCG4PythiaInterface class
|
||||
//
|
||||
// $Id: HepMCG4PythiaInterface.hh 77801 2013-11-28 13:33:20Z gcosmo $
|
||||
//
|
||||
|
||||
#ifndef HEPMC_G4_PYTHIA_INTERFACE_H
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
/// \file eventgenerator/HepMC/HepMCEx01/include/HepMCG4PythiaMessenger.hh
|
||||
/// \brief Definition of the HepMCG4PythiaMessenger class
|
||||
//
|
||||
// $Id: HepMCG4PythiaMessenger.hh 77801 2013-11-28 13:33:20Z gcosmo $
|
||||
//
|
||||
|
||||
#ifndef HEPMC_G4_PYTHIA_MESSENGER_H
|
||||
|
||||
Reference in New Issue
Block a user