Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TG4MoleculeShoot< TYPE > Class Template Reference

#include <G4MoleculeGun.hh>

Inheritance diagram for TG4MoleculeShoot< TYPE >:
Collaboration diagram for TG4MoleculeShoot< TYPE >:

Public Member Functions

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

Protected Member Functions

void ShootAtRandomPosition (G4MoleculeGun *)
 
void ShootAtFixedPosition (G4MoleculeGun *)
 
template<>
void ShootAtRandomPosition (G4MoleculeGun *gun)
 
template<>
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

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

Definition at line 102 of file G4MoleculeGun.hh.

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

Definition at line 103 of file G4MoleculeGun.hh.

103 {;}

Member Function Documentation

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

Implements G4MoleculeShoot.

Definition at line 74 of file G4MoleculeGun.cc.

75 {
77  else ShootAtFixedPosition(gun);
78 }
void ShootAtRandomPosition(G4MoleculeGun *)
G4ThreeVector * fBoxSize
void ShootAtFixedPosition(G4MoleculeGun *)
template<typename TYPE >
void TG4MoleculeShoot< TYPE >::Shoot ( G4MoleculeGun )
inlinevirtual

Implements G4MoleculeShoot.

Definition at line 104 of file G4MoleculeGun.hh.

104 {}
template<>
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

Here is the call graph for this function:

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

Definition at line 108 of file G4MoleculeGun.hh.

108 {}
template<>
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 }
void BuildAndPushTrack(const G4String &name, const G4ThreeVector &position, double time=0)
G4ThreeVector * fBoxSize
static void RandomPosInBox(const G4ThreeVector &boxSize, G4ThreeVector &output)
G4ThreeVector fPosition
G4String fMoleculeName

Here is the call graph for this function:

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

Definition at line 107 of file G4MoleculeGun.hh.

107 {}

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