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"
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 
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_;
54  };
55 
56  } // namespace detail
57 } // namespace art
58 
59 #endif /* art_Framework_IO_Root_detail_InfoDumperInputFile_h */
60 
61 // Local variables:
62 // mode: c++
63 // End:
std::vector< BranchIDList > BranchIDLists
Definition: BranchIDList.h:18
void print_event_list(std::ostream &) const
std::string string
Definition: nybbler.cc:12
std::map< ProcessHistoryID const, ProcessHistory > ProcessHistoryMap
InfoDumperInputFile(std::string const &filename)
std::vector< EntryNumber > EntryNumbers
Definition: Inputfwd.h:42
void print_process_history(std::ostream &) const
std::unique_ptr< TFile > file_
Long64_t EntryNumber
Definition: Inputfwd.h:41
RangeSet getRangeSet(TTree *tree, EntryNumbers const &entries, sqlite3 *db, std::string const &filename, bool compactRanges) const
RunAuxiliary getAuxiliary(TTree *tree, EntryNumber const entry) const
void print_range_sets(std::ostream &, bool compactRanges) const
void print_file_index(std::ostream &) const
void print_branchIDLists(std::ostream &os) const