Geant4 9.6.0
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 52 of file G4gsdeth.cc.

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

Referenced by PG4gsdeth().

◆ PG4gsdeth()

void PG4gsdeth ( G4String tokens)

Definition at line 34 of file G4gsdeth.cc.

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

Referenced by G3CLEval().