Go to the source code of this file.
void GetCommandLineArgs |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 150 of file gMaxPathLengths.cxx.
152 LOG(
"gmxpl",
pINFO) <<
"Parsing command line arguments";
155 RunOpt::Instance()->ReadFromCommandLine(argc,
argv);
162 if(
parser.OptionExists(
'o') ) {
163 LOG(
"gmxpl",
pDEBUG) <<
"Reading output filename";
167 <<
"Unspecified output filename - Using default";
172 string lunits, dunits;
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";
string kDefOptXMLFilename
string gOptRootGeomTopVol
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
double UnitFromString(string u)
string PrintFramedMesg(string mesg, unsigned int nl=1, const char f='*')
Command line argument parser.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 112 of file gMaxPathLengths.cxx.
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;
void RandGen(long int seed)
virtual const PathLengthList & ComputeMaxPathLengths(void)
string gOptRootGeomTopVol
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...
virtual void SetScannerNRays(int nr)
A ROOT/GEANT4 geometry driver.
virtual void SetScannerNPoints(int np)
set geometry driver's configuration options
void GetCommandLineArgs(int argc, char **argv)
void MesgThresholds(string inpfile)
void PrintSyntax |
( |
void |
| ) |
|
Definition at line 259 of file gMaxPathLengths.cxx.
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...
double gOptGeomDUnits = 0 |
double gOptGeomLUnits = 0 |
long int gOptRanSeed = -1 |
string gOptRootGeomTopVol = "" |
string kDefOptGeomDUnits = "g_cm3" |
string kDefOptGeomLUnits = "mm" |
string kDefOptXMLFilename = "maxpl.xml" |