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 "boost/program_options.hpp"
#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/canonical_string.h"
#include "cetlib/container_algorithms.h"
#include "fhiclcpp/ParameterSet.h"
#include "fhiclcpp/make_ParameterSet.h"
#include "TError.h"
#include "TFile.h"
#include "sqlite3.h"
#include <algorithm>
#include <cstddef>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <ostream>
#include <sstream>
#include <string>
#include <vector>
Go to the source code of this file.
Classes | |
struct | FileCatalogMetadataEntry |
Typedefs | |
typedef vector< string > | stringvec |
Functions | |
std::string | entryValue (std::string const &value) |
void | print_one_fc_metadata_entry_hr (FileCatalogMetadataEntry const &ent, size_t idLen, size_t longestName, ostream &output) |
void | print_all_fc_metadata_entries_hr (vector< FileCatalogMetadataEntry > const &entries, ostream &output, ostream &) |
void | print_one_fc_metadata_entry_JSON (FileCatalogMetadataEntry const &ent, ostream &output) |
void | print_all_fc_metadata_entries_JSON (vector< FileCatalogMetadataEntry > const &entries, ostream &output, ostream &) |
bool | read_all_fc_metadata_entries (TFile &file, vector< FileCatalogMetadataEntry > &all_metadata_entries, ostream &errors) |
int | print_fc_metadata_from_file (TFile &file, ostream &output, ostream &errors, bool want_json) |
int | print_fc_metadata_from_files (stringvec const &file_names, ostream &output, ostream &errors, bool const want_json) |
void | RootErrorHandler (int level, bool die, char const *location, char const *message) |
int | main (int argc, char *argv[]) |
typedef vector<string> stringvec |
Definition at line 46 of file sam_metadata_dumper.cc.
std::string entryValue | ( | std::string const & | value | ) |
Definition at line 54 of file sam_metadata_dumper.cc.
References FileCatalogMetadataEntry::value.
Referenced by print_one_fc_metadata_entry_hr(), and print_one_fc_metadata_entry_JSON().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 325 of file sam_metadata_dumper.cc.
References e, print_fc_metadata_from_files(), RootErrorHandler(), and tkeyvfs_init().
void print_all_fc_metadata_entries_hr | ( | vector< FileCatalogMetadataEntry > const & | entries, |
ostream & | output, | ||
ostream & | |||
) |
Definition at line 121 of file sam_metadata_dumper.cc.
References FileCatalogMetadataEntry::name, print_one_fc_metadata_entry_hr(), and FileCatalogMetadataEntry::SMDid.
Referenced by print_fc_metadata_from_file().
void print_all_fc_metadata_entries_JSON | ( | vector< FileCatalogMetadataEntry > const & | entries, |
ostream & | output, | ||
ostream & | |||
) |
Definition at line 158 of file sam_metadata_dumper.cc.
References print_one_fc_metadata_entry_JSON().
Referenced by print_fc_metadata_from_file().
int print_fc_metadata_from_file | ( | TFile & | file, |
ostream & | output, | ||
ostream & | errors, | ||
bool | want_json | ||
) |
Definition at line 233 of file sam_metadata_dumper.cc.
References print_all_fc_metadata_entries_hr(), print_all_fc_metadata_entries_JSON(), and read_all_fc_metadata_entries().
Referenced by print_fc_metadata_from_files().
int print_fc_metadata_from_files | ( | stringvec const & | file_names, |
ostream & | output, | ||
ostream & | errors, | ||
bool const | want_json | ||
) |
Definition at line 264 of file sam_metadata_dumper.cc.
References print_fc_metadata_from_file().
Referenced by main().
void print_one_fc_metadata_entry_hr | ( | FileCatalogMetadataEntry const & | ent, |
size_t | idLen, | ||
size_t | longestName, | ||
ostream & | output | ||
) |
Definition at line 82 of file sam_metadata_dumper.cc.
References entryValue(), min, FileCatalogMetadataEntry::name, FileCatalogMetadataEntry::SMDid, and FileCatalogMetadataEntry::value.
Referenced by print_all_fc_metadata_entries_hr().
void print_one_fc_metadata_entry_JSON | ( | FileCatalogMetadataEntry const & | ent, |
ostream & | output | ||
) |
Definition at line 149 of file sam_metadata_dumper.cc.
References entryValue(), FileCatalogMetadataEntry::name, and FileCatalogMetadataEntry::value.
Referenced by print_all_fc_metadata_entries_JSON().
bool read_all_fc_metadata_entries | ( | TFile & | file, |
vector< FileCatalogMetadataEntry > & | all_metadata_entries, | ||
ostream & | errors | ||
) |
Definition at line 179 of file sam_metadata_dumper.cc.
References file, FileCatalogMetadataEntry::name, FileCatalogMetadataEntry::SMDid, and FileCatalogMetadataEntry::value.
Referenced by print_fc_metadata_from_file().
void RootErrorHandler | ( | int | level, |
bool | die, | ||
char const * | location, | ||
char const * | message | ||
) |
Definition at line 312 of file sam_metadata_dumper.cc.
Referenced by main(), and art::setRootErrorHandler().