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 
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
string filename
Definition: shutoffs.py:106
std::map< ProcessHistoryID const, ProcessHistory > ProcessHistoryMap
InfoDumperInputFile(std::string const &filename)
std::vector< EntryNumber > EntryNumbers
Definition: Inputfwd.h:48
RunAuxiliary getAuxiliary(TTree *tree, EntryNumber const entry) const
void print_process_history(std::ostream &) const
std::unique_ptr< TFile > file_
Long64_t EntryNumber
Definition: Inputfwd.h:47
RangeSet getRangeSet(TTree *tree, EntryNumbers const &entries, sqlite3 *db, std::string const &filename, bool compactRanges) const
Service to store calibration data products (CDP) in the SQLite3 metadatabase of a file...
Definition: FillParentInfo.h:8
void print_range_sets(std::ostream &, bool compactRanges) const
void print_file_index(std::ostream &) const
def entry(str)
Definition: HTMLTools.py:26
void print_branchIDLists(std::ostream &os) const
enum BeamMode string