89 using namespace genie;
90 using namespace genie::geometry;
112 int 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";
162 if( parser.OptionExists(
'o') ) {
163 LOG(
"gmxpl",
pDEBUG) <<
"Reading output filename";
167 <<
"Unspecified output filename - Using default";
173 if( parser.OptionExists(
'L') ) {
174 LOG(
"gmxpl",
pDEBUG) <<
"Checking for input geometry length units";
175 lunits = parser.ArgAsString(
'L');
177 LOG(
"gmxpl",
pDEBUG) <<
"Using default geometry length units";
180 if( parser.OptionExists(
'D') ) {
181 LOG(
"gmxpl",
pDEBUG) <<
"Checking for input geometry density units";
182 dunits = parser.ArgAsString(
'D');
184 LOG(
"gmxpl",
pDEBUG) <<
"Using default geometry density units";
191 if( parser.OptionExists(
't') ) {
193 <<
"Reading root geometry top volume name";
197 <<
"Unspecified geometry top volume - Using default";
202 if( parser.OptionExists(
'n') ) {
204 <<
"Reading input number of scanning points/surface";
208 <<
"Unspecified number of points - Using driver's default";
212 if( parser.OptionExists(
'r') ) {
214 <<
"Reading input number of scanning rays/point";
218 <<
"Unspecified number of rays - Using driver's default";
222 if( parser.OptionExists(
'f') ) {
224 <<
"Reading ROOT/GEANT geometry filename";
228 <<
"No geometry file was specified - Exiting";
234 if( parser.OptionExists(
"seed") ) {
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";
void RandGen(long int seed)
virtual const PathLengthList & ComputeMaxPathLengths(void)
void ReadFromCommandLine(int argc, char **argv)
string kDefOptXMLFilename
int main(int argc, char **argv)
Object to be filled with the neutrino path-length, for all detector geometry materials, when starting from a position x and travelling along the direction of the neutrino 4-momentum.
void SaveAsXml(string filename) const
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
string gOptRootGeomTopVol
virtual void SetScannerNRays(int nr)
double UnitFromString(string u)
A ROOT/GEANT4 geometry driver.
static RunOpt * Instance(void)
virtual void SetScannerNPoints(int np)
set geometry driver's configuration options
string PrintFramedMesg(string mesg, unsigned int nl=1, const char f='*')
void MesgThresholds(string inpfile)
Command line argument parser.
void GetCommandLineArgs(int argc, char **argv)