close
Warning:
Can't synchronize with repository "(default)" ("(default)" is not readable or not a Git repository.). Look in the Trac log for more information.
- Timestamp:
-
Jun 13, 2017, 1:46:34 PM (7 years ago)
- Author:
-
Patrick Stowell
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v13
|
v14
|
|
464 | 464 | |
465 | 465 | === Config Structure === |
466 | | |
| 466 | Configuration options can be given at runtime by including them in the card file using the 'config' structure. |
467 | 467 | {{{ |
468 | 468 | config NAME VALUE |
469 | 469 | }}} |
| 470 | - **NAME** : Name of configuration parameter |
| 471 | - **VALUE** : Value of configuration parameter |
| 472 | |
| 473 | Including a configuration option will override the defaults given in 'parameters/config.xml'. Multiple configuration options can be overridden at once by listing them on separate lines in the card file. |
| 474 | |
| 475 | **Example 1 ** : Change the verbosity level |
| 476 | {{{ |
| 477 | config VERBOSITY 1 |
| 478 | }}} |
| 479 | |
| 480 | **Example 2 ** : Change the verbosity level and set the maximum number of events to run over |
| 481 | {{{ |
| 482 | config VERBOSITY 2 |
| 483 | config MAXEVENTS 25000 |
| 484 | }}} |
470 | 485 | |
471 | 486 | |
472 | 487 | === Comments Structure === |
| 488 | Comments can be inserted into the simple card format by using the '#' symbol at the start of a line. |
473 | 489 | {{{ |
474 | 490 | # Insert my comments here |
475 | | |
| 491 | }}} |
| 492 | |
| 493 | ** Example 1: ** |
476 | 494 | # These are my config options |
477 | 495 | config VERBOSITY 4 |
478 | 496 | }}} |
479 | 497 | |
480 | | |
481 | | |
482 | | |
483 | | |
484 | | |
485 | | |
| 498 | ** Example 2: ** |
| 499 | {{{ |
| 500 | # I Like making comments |
| 501 | config VERBOSITY 4 |
| 502 | |
| 503 | # I like it a lot. I can also comment out other structures to 'turn them off' |
| 504 | # sample MiniBooNE_CCQE_XSec_1DQ2_nu NEUT:/path/to/neut/file.root |
| 505 | }}} |
| 506 | |
| 507 | |
| 508 | |
| 509 | |
| 510 | |
| 511 | |
| 512 | |