Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4GIDI_map Class Reference

#include <G4GIDI_map.hh>

Public Member Functions

 G4GIDI_map (std::string &dataDirectory)
 
 ~G4GIDI_map ()
 
std::string path (void)
 
std::string fileName (void)
 

Public Attributes

GIDI::statusMessageReporting smr
 
GIDI::MCGIDI_map * map
 

Detailed Description

Definition at line 38 of file G4GIDI_map.hh.

Constructor & Destructor Documentation

◆ G4GIDI_map()

G4GIDI_map::G4GIDI_map ( std::string &  dataDirectory)

Definition at line 37 of file G4GIDI_map.cc.

37 {
38
40 map = MCGIDI_map_readFile( &smr, NULL, dataDirectory.c_str( ) );
41 if( !smr_isOk( &smr ) ) {
42 smr_print( &smr, 1 );
43 throw 1;
44 }
45}
MCGIDI_map * MCGIDI_map_readFile(statusMessageReporting *smr, const char *basePath, const char *mapFileName)
Definition: MCGIDI_map.cc:93
GIDI::statusMessageReporting smr
Definition: G4GIDI_map.hh:41
GIDI::MCGIDI_map * map
Definition: G4GIDI_map.hh:42
int smr_initialize(statusMessageReporting *smr, enum smr_status verbosity, int append)
void smr_print(statusMessageReporting *smr, int clear)
int smr_isOk(statusMessageReporting *smr)
@ smr_status_Ok

◆ ~G4GIDI_map()

G4GIDI_map::~G4GIDI_map ( void  )

Definition at line 49 of file G4GIDI_map.cc.

49 {
50
51 if( map != NULL ) MCGIDI_map_free( NULL, map );
52 smr_release( &smr );
53}
void * MCGIDI_map_free(statusMessageReporting *smr, MCGIDI_map *map)
Definition: MCGIDI_map.cc:173
void smr_release(statusMessageReporting *smr)

Member Function Documentation

◆ fileName()

std::string G4GIDI_map::fileName ( void  )

Definition at line 57 of file G4GIDI_map.cc.

57 {
58
59 return( map->mapFileName );
60}

◆ path()

std::string G4GIDI_map::path ( void  )

Definition at line 64 of file G4GIDI_map.cc.

64 {
65
66 return( map->path );
67}

Member Data Documentation

◆ map

GIDI::MCGIDI_map* G4GIDI_map::map

Definition at line 42 of file G4GIDI_map.hh.

Referenced by fileName(), G4GIDI_map(), path(), and ~G4GIDI_map().

◆ smr

GIDI::statusMessageReporting G4GIDI_map::smr

Definition at line 41 of file G4GIDI_map.hh.

Referenced by G4GIDI_map(), and ~G4GIDI_map().


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