LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "art/Framework/IO/Root/GetFileFormatEra.h"
#include "art/Framework/IO/Root/RootDB/SQLite3Wrapper.h"
#include "art/Framework/IO/Root/RootDB/tkeyvfs.h"
#include "canvas/Persistency/Provenance/FileFormatVersion.h"
#include "canvas/Persistency/Provenance/ParameterSetBlob.h"
#include "canvas/Persistency/Provenance/ParameterSetMap.h"
#include "canvas/Persistency/Provenance/rootNames.h"
#include "cetlib/container_algorithms.h"
#include "cetlib/exempt_ptr.h"
#include "fhiclcpp/ParameterSet.h"
#include "fhiclcpp/ParameterSetRegistry.h"
#include "fhiclcpp/make_ParameterSet.h"
#include "boost/program_options.hpp"
#include "TFile.h"
#include "TTree.h"
#include "sqlite3.h"
#include <cstddef>
#include <iomanip>
#include <iostream>
#include <memory>
#include <ostream>
#include <sstream>
#include <string>
#include <vector>
Go to the source code of this file.
Typedefs | |
typedef vector< string > | stringvec |
Enumerations | |
enum | PsetType { PsetType::MODULE, PsetType::SERVICE, PsetType::PROCESS } |
Functions | |
size_t | db_size (sqlite3 *db) |
std::string | db_size_hr (sqlite3 *db) |
std::string | want_pset (ParameterSet const &ps, stringvec const &filters, PsetType mode) |
ParameterSet | strip_pset (ParameterSet const &ps, PsetType mode) |
bool | read_all_parameter_sets (TFile &file, ostream &errors) |
int | print_pset_from_file (TFile &file, stringvec const &filters, PsetType const mode, ostream &output, ostream &errors) |
int | print_psets_from_files (stringvec const &file_names, stringvec const &filters, PsetType const mode, ostream &output, ostream &errors) |
int | main (int argc, char *argv[]) |
typedef vector<string> stringvec |
Definition at line 45 of file config_dumper.cc.
|
strong |
Enumerator | |
---|---|
MODULE | |
SERVICE | |
PROCESS |
Definition at line 47 of file config_dumper.cc.
size_t db_size | ( | sqlite3 * | db | ) |
std::string db_size_hr | ( | sqlite3 * | db | ) |
Definition at line 65 of file config_dumper.cc.
References db_size(), evd::details::end(), and ss.
Referenced by read_all_parameter_sets().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 276 of file config_dumper.cc.
References e, MODULE, print_psets_from_files(), PROCESS, SERVICE, and tkeyvfs_init().
int print_pset_from_file | ( | TFile & | file, |
stringvec const & | filters, | ||
PsetType const | mode, | ||
ostream & | output, | ||
ostream & | errors | ||
) |
Definition at line 205 of file config_dumper.cc.
References fhicl::ParameterSetRegistry::get(), label, read_all_parameter_sets(), strip_pset(), fhicl::ParameterSet::to_indented_string(), and want_pset().
Referenced by print_psets_from_files().
int print_psets_from_files | ( | stringvec const & | file_names, |
stringvec const & | filters, | ||
PsetType const | mode, | ||
ostream & | output, | ||
ostream & | errors | ||
) |
Definition at line 253 of file config_dumper.cc.
References print_pset_from_file().
Referenced by main().
bool read_all_parameter_sets | ( | TFile & | file, |
ostream & | errors | ||
) |
Definition at line 135 of file config_dumper.cc.
References db_size_hr(), art::FileFormatVersion::era_, art::getFileFormatEra(), fhicl::ParameterSetRegistry::importFrom(), fhicl::make_ParameterSet(), art::rootNames::metaDataTreeName(), fhicl::ParameterSetRegistry::put(), fhicl::ParameterSetRegistry::stageIn(), and art::FileFormatVersion::value_.
Referenced by print_pset_from_file().
ParameterSet strip_pset | ( | ParameterSet const & | ps, |
PsetType | mode | ||
) |
Definition at line 110 of file config_dumper.cc.
References fhicl::ParameterSet::erase(), MODULE, PROCESS, SERVICE, and util::flags::to_string().
Referenced by print_pset_from_file().
std::string want_pset | ( | ParameterSet const & | ps, |
stringvec const & | filters, | ||
PsetType | mode | ||
) |
Definition at line 82 of file config_dumper.cc.
References fhicl::ParameterSet::get_if_present(), label, MODULE, PROCESS, SERVICE, and util::flags::to_string().
Referenced by print_pset_from_file().