GEMC  2.3
Geant4 Monte-Carlo Framework
Public Member Functions | Data Fields | Friends
gBank Class Reference

#include <gbank.h>

+ Collaboration diagram for gBank:

Public Member Functions

 gBank ()
 
 gBank (int i, string bname, string d)
 
 ~gBank ()
 
void load_variable (string, int, string, string)
 
int getVarId (string)
 
string getVarType (string)
 
int getVarBankType (string)
 
void orderNames ()
 

Data Fields

string bankName
 name of the bank, it's also key in the map but we store it here as well More...
 
int idtag
 unique id for the bank More...
 
string bdescription
 bank description More...
 
vector< string > name
 Variable name. More...
 
vector< int > id
 Output variable identifier. More...
 
vector< string > type
 Variable type. More...
 
vector< string > description
 Variable description. More...
 
map< int, string > orderedNames
 

Friends

ostream & operator<< (ostream &stream, gBank)
 Overloaded "<<" for the class 'bank'. More...
 

Detailed Description

gBank

This class defines the general bank content.
The structure of the content is read from the database or a text file.

Definition at line 86 of file gbank.h.

Constructor & Destructor Documentation

gBank::gBank ( )
inline

Definition at line 89 of file gbank.h.

gBank::gBank ( int  i,
string  bname,
string  d 
)
inline

Definition at line 90 of file gbank.h.

gBank::~gBank ( )
inline

Definition at line 99 of file gbank.h.

Member Function Documentation

int gBank::getVarBankType ( string  var)

Definition at line 381 of file gbank.cc.

int gBank::getVarId ( string  bank)

Definition at line 358 of file gbank.cc.

string gBank::getVarType ( string  var)

Definition at line 369 of file gbank.cc.

void gBank::load_variable ( string  n,
int  i,
string  t,
string  d 
)

Definition at line 348 of file gbank.cc.

void gBank::orderNames ( )

Definition at line 398 of file gbank.cc.

Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
gBank  bank 
)
friend

Definition at line 467 of file gbank.cc.

Field Documentation

string gBank::bankName

Definition at line 101 of file gbank.h.

string gBank::bdescription

Definition at line 103 of file gbank.h.

vector<string> gBank::description

Definition at line 112 of file gbank.h.

vector<int> gBank::id

Definition at line 107 of file gbank.h.

int gBank::idtag

Definition at line 102 of file gbank.h.

vector<string> gBank::name

Definition at line 106 of file gbank.h.

map<int, string> gBank::orderedNames

Definition at line 126 of file gbank.h.

vector<string> gBank::type

Definition at line 111 of file gbank.h.