Geant4 9.6.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::tpia_map * map
 

Detailed Description

Definition at line 68 of file G4GIDI_map.hh.

Constructor & Destructor Documentation

◆ G4GIDI_map()

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

Definition at line 70 of file G4GIDI_map.cc.

70 {
71
73 map = tpia_map_readFile( &smr, NULL, dataDirectory.c_str( ) );
74 if( !smr_isOk( &smr ) ) {
75 smr_print( &smr, stderr, 1 );
76 throw 1;
77 }
78}
GIDI::tpia_map * map
Definition: G4GIDI_map.hh:72
GIDI::statusMessageReporting smr
Definition: G4GIDI_map.hh:71
int smr_initialize(statusMessageReporting *smr)
void smr_print(statusMessageReporting *smr, FILE *f, int clear)
int smr_isOk(statusMessageReporting *smr)
tpia_map * tpia_map_readFile(statusMessageReporting *smr, const char *basePath, const char *mapFileName)
Definition: tpia_map.cc:88

◆ ~G4GIDI_map()

G4GIDI_map::~G4GIDI_map ( void  )

Definition at line 82 of file G4GIDI_map.cc.

82 {
83
84 if( map != NULL ) tpia_map_free( NULL, map );
85 smr_release( &smr );
86}
int smr_release(statusMessageReporting *smr)
void * tpia_map_free(statusMessageReporting *smr, tpia_map *map)
Definition: tpia_map.cc:184

Member Function Documentation

◆ fileName()

string G4GIDI_map::fileName ( void  )

Definition at line 90 of file G4GIDI_map.cc.

90 {
91
92 return( map->mapFileName );
93}

◆ path()

string G4GIDI_map::path ( void  )

Definition at line 97 of file G4GIDI_map.cc.

97 {
98
99 return( map->path );
100}

Member Data Documentation

◆ map

GIDI::tpia_map* G4GIDI_map::map

Definition at line 72 of file G4GIDI_map.hh.

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

◆ smr

GIDI::statusMessageReporting G4GIDI_map::smr

Definition at line 71 of file G4GIDI_map.hh.

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


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