Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
TG4MoleculeShoot< TYPE > Class Template Reference

#include <G4MoleculeGun.hh>

+ Inheritance diagram for TG4MoleculeShoot< TYPE >:

Public Member Functions

 TG4MoleculeShoot ()
 
virtual ~TG4MoleculeShoot ()
 
void Shoot (G4MoleculeGun *)
 
void Shoot (G4MoleculeGun *gun)
 
- Public Member Functions inherited from G4MoleculeShoot
 G4MoleculeShoot ()
 
virtual ~G4MoleculeShoot ()
 
virtual void Shoot (G4MoleculeGun *)=0
 
template<typename TYPE >
G4shared_ptr< G4MoleculeShootChangeType ()
 

Protected Member Functions

void ShootAtRandomPosition (G4MoleculeGun *)
 
void ShootAtFixedPosition (G4MoleculeGun *)
 
void ShootAtRandomPosition (G4MoleculeGun *gun)
 
void ShootAtFixedPosition (G4MoleculeGun *gun)
 

Additional Inherited Members

- Static Public Member Functions inherited from G4MoleculeShoot
static void RandomPosInBox (const G4ThreeVector &boxSize, G4ThreeVector &output)
 
- Public Attributes inherited from G4MoleculeShoot
G4String fMoleculeName
 
G4ThreeVector fPosition
 
G4double fTime
 
G4int fNumber
 
G4ThreeVectorfBoxSize
 

Detailed Description

template<typename TYPE>
class TG4MoleculeShoot< TYPE >

Definition at line 99 of file G4MoleculeGun.hh.

Constructor & Destructor Documentation

◆ TG4MoleculeShoot()

template<typename TYPE >
TG4MoleculeShoot< TYPE >::TG4MoleculeShoot ( )
inline

Definition at line 102 of file G4MoleculeGun.hh.

◆ ~TG4MoleculeShoot()

template<typename TYPE >
virtual TG4MoleculeShoot< TYPE >::~TG4MoleculeShoot ( )
inlinevirtual

Definition at line 103 of file G4MoleculeGun.hh.

103{;}

Member Function Documentation

◆ Shoot() [1/2]

template<typename TYPE >
void TG4MoleculeShoot< TYPE >::Shoot ( G4MoleculeGun )
inlinevirtual

Implements G4MoleculeShoot.

Definition at line 104 of file G4MoleculeGun.hh.

104{}

◆ Shoot() [2/2]

void TG4MoleculeShoot< G4Track >::Shoot ( G4MoleculeGun gun)
virtual

Implements G4MoleculeShoot.

Definition at line 74 of file G4MoleculeGun.cc.

75{
77 else ShootAtFixedPosition(gun);
78}
G4ThreeVector * fBoxSize
void ShootAtRandomPosition(G4MoleculeGun *)
void ShootAtFixedPosition(G4MoleculeGun *)

◆ ShootAtFixedPosition() [1/2]

template<typename TYPE >
void TG4MoleculeShoot< TYPE >::ShootAtFixedPosition ( G4MoleculeGun )
inlineprotected

Definition at line 108 of file G4MoleculeGun.hh.

108{}

◆ ShootAtFixedPosition() [2/2]

void TG4MoleculeShoot< G4Track >::ShootAtFixedPosition ( G4MoleculeGun gun)
protected

Definition at line 63 of file G4MoleculeGun.cc.

64{
65 for(int i = 0; i < fNumber; ++i)
66 {
68 }
69}
void BuildAndPushTrack(const G4String &name, const G4ThreeVector &position, double time=0)
G4ThreeVector fPosition
G4String fMoleculeName

◆ ShootAtRandomPosition() [1/2]

template<typename TYPE >
void TG4MoleculeShoot< TYPE >::ShootAtRandomPosition ( G4MoleculeGun )
inlineprotected

Definition at line 107 of file G4MoleculeGun.hh.

107{}

◆ ShootAtRandomPosition() [2/2]

void TG4MoleculeShoot< G4Track >::ShootAtRandomPosition ( G4MoleculeGun gun)
protected

Definition at line 47 of file G4MoleculeGun.cc.

48{
49 G4ThreeVector positionInLocalCoordinate;
50
51 for(int i = 0; i < fNumber; ++i)
52 {
53 RandomPosInBox(*fBoxSize, positionInLocalCoordinate);
55 fPosition + positionInLocalCoordinate,
56 fTime);
57 }
58}
static void RandomPosInBox(const G4ThreeVector &boxSize, G4ThreeVector &output)

The documentation for this class was generated from the following file: