112int main(
int argc,
char ** argv)
121 <<
"Creating/configuring a ROOT geom. driver";
126 geom -> SetWeightWithDensity (
true);
130 geom -> SetWeightWithDensity (
true);
137 <<
"Asking input GeomAnalyzerI for the max path-lengths";
142 <<
"Maximum path lengths: " << plmax;
152 LOG(
"gmxpl",
pINFO) <<
"Parsing command line arguments";
163 LOG(
"gmxpl",
pDEBUG) <<
"Reading output filename";
167 <<
"Unspecified output filename - Using default";
174 LOG(
"gmxpl",
pDEBUG) <<
"Checking for input geometry length units";
177 LOG(
"gmxpl",
pDEBUG) <<
"Using default geometry length units";
181 LOG(
"gmxpl",
pDEBUG) <<
"Checking for input geometry density units";
184 LOG(
"gmxpl",
pDEBUG) <<
"Using default geometry density units";
193 <<
"Reading root geometry top volume name";
197 <<
"Unspecified geometry top volume - Using default";
204 <<
"Reading input number of scanning points/surface";
208 <<
"Unspecified number of points - Using driver's default";
214 <<
"Reading input number of scanning rays/point";
218 <<
"Unspecified number of rays - Using driver's default";
224 <<
"Reading ROOT/GEANT geometry filename";
228 <<
"No geometry file was specified - Exiting";
235 LOG(
"gmxpl",
pINFO) <<
"Reading random number seed";
238 LOG(
"gmxpl",
pINFO) <<
"Unspecified random number seed - Using default";
246 LOG(
"gmxpl",
pNOTICE) <<
"Command line arguments";
262 <<
"\n\n" <<
"Syntax:" <<
"\n"
265 <<
" [-L length_units]"
266 <<
" [-D density_units]"
267 <<
" [-t top_volume_name]"
268 <<
" [-o output_xml_file]"
269 <<
" [-seed random_number_seed]"
270 <<
" [--message-thresholds xml_file]\n";
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
Command line argument parser.
string ArgAsString(char opt)
bool OptionExists(char opt)
was option set?
Object to be filled with the neutrino path-length, for all detector geometry materials,...
void SaveAsXml(string filename) const
void ReadFromCommandLine(int argc, char **argv)
static RunOpt * Instance(void)
A ROOT/GEANT4 geometry driver.
string gOptRootGeomTopVol
string kDefOptXMLFilename
void GetCommandLineArgs(int argc, char **argv)
void RandGen(long int seed)
void MesgThresholds(string inpfile)
string PrintFramedMesg(string mesg, unsigned int nl=1, const char f=' *')
double UnitFromString(string u)
THE MAIN GENIE PROJECT NAMESPACE