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

Go to the source code of this file.

Functions

void PG4gsdetd (G4String *tokens)
 
void G4gsdetd (G4String, G4String, G4int, G4String *, G4int *)
 

Function Documentation

◆ G4gsdetd()

void G4gsdetd ( G4String  chset,
G4String  chdet,
G4int  nd,
G4String chnmsd,
G4int nbitsd 
)

Definition at line 49 of file G4gsdetd.cc.

50{
51 // Get pointer to detector chset
52 // G4VSensitiveDetector* sdet = G3Det.GetSD(chset, chdet);
53 // Add hits to sensitive detector
54 // for (G4int i=0; i<nd; i++) {
55 // $$$ sdet->AddDigi(chnmsd[i],nbitsd[i]);
56 // }
57}

Referenced by PG4gsdetd().

◆ PG4gsdetd()

void PG4gsdetd ( G4String tokens)

Definition at line 33 of file G4gsdetd.cc.

34{
35 // fill the parameter containers
36 G3fillParams(tokens,PTgsdetd);
37
38 // interpret the parameters
39 G4String chset = Spar[0];
40 G4String chdet = Spar[1];
41 G4int nd = Ipar[0];
42 G4String chnmsd[100];
43 for (G4int i=0; i<=nd; i++ ) chnmsd[i] = Spar[2+i].data();
44 G4int *nbitsd = &Ipar[1];
45
46 G4gsdetd(chset,chdet,nd,chnmsd,nbitsd);
47}
G3G4DLL_API G4int Ipar[1000]
Definition: clparse.cc:65
void G3fillParams(G4String *tokens, const char *ptypes)
Definition: clparse.cc:218
G3G4DLL_API G4String Spar[1000]
Definition: clparse.cc:67
#define PTgsdetd
Definition: G3toG4.hh:72
int G4int
Definition: G4Types.hh:85
void G4gsdetd(G4String, G4String, G4int, G4String *, G4int *)
Definition: G4gsdetd.cc:49

Referenced by G3CLEval().