LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
InfoDumperInputFile.h
Go to the documentation of this file.
1 #ifndef art_Framework_IO_Root_detail_InfoDumperInputFile_h
2 #define art_Framework_IO_Root_detail_InfoDumperInputFile_h
3 
4 #include "TBranch.h"
5 #include "TFile.h"
6 #include "TTree.h"
8 #include "canvas/Persistency/Provenance/Compatibility/BranchIDList.h"
14 #include "sqlite3.h"
15 
16 #include <memory>
17 #include <ostream>
18 #include <string>
19 
20 namespace art {
21  namespace detail {
22 
24  public:
27 
28  InfoDumperInputFile(std::string const& filename);
29  void print_process_history(std::ostream&) const;
30  void print_range_sets(std::ostream&, bool compactRanges) const;
31  void print_event_list(std::ostream&) const;
32  void print_file_index(std::ostream&) const;
33  void print_branchIDLists(std::ostream& os) const;
34  TFile*
35  tfile() const
36  {
37  return file_.get();
38  }
39 
40  private:
41  RunAuxiliary getAuxiliary(TTree* tree, EntryNumber const entry) const;
42 
43  RangeSet getRangeSet(TTree* tree,
44  EntryNumbers const& entries,
45  sqlite3* db,
46  std::string const& filename,
47  bool compactRanges) const;
48 
49  std::unique_ptr<TFile> file_;
50  BranchIDLists branchIDLists_{};
54  };
55  }
56 }
57 
58 #endif /* art_Framework_IO_Root_detail_InfoDumperInputFile_h */
59 
60 // Local variables:
61 // mode: c++
62 // End:
void print_event_list(std::ostream &) const
std::map< ProcessHistoryID const, ProcessHistory > ProcessHistoryMap
InfoDumperInputFile(std::string const &filename)
std::vector< EntryNumber > EntryNumbers
Definition: Inputfwd.h:47
void print_process_history(std::ostream &) const
std::unique_ptr< TFile > file_
Long64_t EntryNumber
Definition: Inputfwd.h:46
RangeSet getRangeSet(TTree *tree, EntryNumbers const &entries, sqlite3 *db, std::string const &filename, bool compactRanges) const
RunAuxiliary getAuxiliary(TTree *tree, EntryNumber const entry) const
HLT enums.
void print_range_sets(std::ostream &, bool compactRanges) const
void print_file_index(std::ostream &) const
void print_branchIDLists(std::ostream &os) const