Geant4 9.6.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 50 of file G4gsdetd.cc.

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

Referenced by PG4gsdetd().

◆ PG4gsdetd()

void PG4gsdetd ( G4String tokens)

Definition at line 34 of file G4gsdetd.cc.

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

Referenced by G3CLEval().