Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4gsdeth.cc File Reference
#include "G3toG4.hh"
#include "G3DetTable.hh"

Go to the source code of this file.

Functions

void PG4gsdeth (G4String *tokens)
 
void G4gsdeth (G4String, G4String, G4int, G4String *, G4int *, G4double *, G4double *)
 

Function Documentation

◆ G4gsdeth()

void G4gsdeth ( G4String  chset,
G4String  chdet,
G4int  nh,
G4String chnamh,
G4int nbitsh,
G4double orig,
G4double fact 
)

Definition at line 51 of file G4gsdeth.cc.

53{
54 // Get pointer to sensitive detector chset
55 // G4VSensitiveDetector* sdet = G3Det.GetSD(chset, chdet);
56 // Add hits to sensitive detector
57 // for (G4int i=0; i<nh; i++) {
58 // $$$ sdet->AddHit(chnamh[i],nbitsh[i],orig[i],fact[i]);
59 // }
60}

Referenced by PG4gsdeth().

◆ PG4gsdeth()

void PG4gsdeth ( G4String tokens)

Definition at line 33 of file G4gsdeth.cc.

34{
35 // fill the parameter containers
36 G3fillParams(tokens,PTgsdeth);
37
38 // interpret the parameters
39 G4String chset = Spar[0];
40 G4String chdet = Spar[1];
41 G4int nh = Ipar[0];
42 G4String chnamh[100];
43 for (G4int i=0; i<=nh; i++ ) chnamh[i] = Spar[2+i].data();
44 G4int *nbitsh = &Ipar[1];
45 G4double *orig = Rpar;
46 G4double *fact = &Rpar[nh];
47
48 G4gsdeth(chset,chdet,nh,chnamh,nbitsh,orig,fact);
49}
G3G4DLL_API G4int Ipar[1000]
Definition: clparse.cc:65
void G3fillParams(G4String *tokens, const char *ptypes)
Definition: clparse.cc:216
G3G4DLL_API G4double Rpar[1000]
Definition: clparse.cc:66
G3G4DLL_API G4String Spar[1000]
Definition: clparse.cc:67
#define PTgsdeth
Definition: G3toG4.hh:71
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
void G4gsdeth(G4String, G4String, G4int, G4String *, G4int *, G4double *, G4double *)
Definition: G4gsdeth.cc:51

Referenced by G3CLEval().