Changeset 19279
- Timestamp:
- 10/23/18 16:19:05 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/root2sql.cc
r19238 r19279 74 74 ("dry-run", po_switch(), "Skip any query which changes the databse (might result in consecutive failures)") 75 75 ("print-connection", po_switch(), "Print database connection information") 76 ("print-ls", po_switch(), "Calls TFile::ls()") 76 77 ("print-branches", po_switch(), "Print the branches found in the tree") 77 78 ("print-leaves", po_switch(), "Print the leaves found in the tree (this is what is processed)") … … 110 111 "the tree name. It can be overwritten using --table.\n" 111 112 "\n" 113 "To get a list of the contents (keys and trees) of a root file, you can use --print-ls. " 112 114 "The name of each column to which data is filled from a leave is obtained from " 113 115 "the leaves' names. The leave names can be checked using --print-leaves. " … … 370 372 371 373 const bool print_connection = conf.Get<bool>("print-connection"); 374 const bool print_ls = conf.Get<bool>("print-ls"); 372 375 const bool print_branches = conf.Get<bool>("print-branches"); 373 376 const bool print_leaves = conf.Get<bool>("print-leaves"); … … 397 400 } 398 401 399 if (verbose>0 )402 if (verbose>0 && !print_ls) 400 403 cout << "File: " << file << endl; 404 405 if (print_ls) 406 { 407 cout << '\n'; 408 f.ls(); 409 cout << '\n'; 410 } 401 411 402 412 TTree *T = 0;
Note:
See TracChangeset
for help on using the changeset viewer.