Inputfwd.h
Go to the documentation of this file.
1 #ifndef art_Framework_IO_Root_Inputfwd_h
2 #define art_Framework_IO_Root_Inputfwd_h
3 
4 // ======================================================================
5 // Inputfwd
6 // ======================================================================
7 
9 
10 #include "Rtypes.h"
11 
12 #include <map>
13 #include <vector>
14 
15 // ----------------------------------------------------------------------
16 
17 class TBranch;
18 class TTree;
19 
20 namespace art {
21  class BranchDescription;
22  struct BranchKey;
23  struct FileFormatVersion;
24  class FastCloningInfoProvider;
25  class RootInputFile;
26  class RootDelayedReader;
27  class RootInputTree;
28  class RootInputFileSequence;
29  class FileCatalogItem;
30  class RootInput;
31 
32  namespace input {
33 
34  struct BranchInfo {
35  BranchInfo(BranchDescription const& prod, TBranch* const branch)
37  {}
38 
39  // Ideally, a reference to the branch-description does not need
40  // to be retained. It is used to fill the groups in the
41  // principal.
43  TBranch* productBranch_;
44  }; // BranchInfo
45 
46  using BranchMap = std::map<BranchKey const, BranchInfo>;
47  using EntryNumber = Long64_t;
48  using EntryNumbers = std::vector<EntryNumber>;
49  Int_t getEntry(TBranch* branch, EntryNumber entryNumber);
50  Int_t getEntry(TTree* tree, EntryNumber entryNumber);
51 
52  } // input
53 } // art
54 
55 // ======================================================================
56 
57 #endif /* art_Framework_IO_Root_Inputfwd_h */
58 
59 // Local Variables:
60 // mode: c++
61 // End:
BranchInfo(BranchDescription const &prod, TBranch *const branch)
Definition: Inputfwd.h:35
std::vector< EntryNumber > EntryNumbers
Definition: Inputfwd.h:48
std::map< BranchKey const, BranchInfo > BranchMap
Definition: Inputfwd.h:46
T prod(const std::vector< T > &v)
Definition: prod.hpp:17
Long64_t EntryNumber
Definition: Inputfwd.h:47
BranchDescription const & branchDescription_
Definition: Inputfwd.h:42
Service to store calibration data products (CDP) in the SQLite3 metadatabase of a file...
Definition: FillParentInfo.h:8
Int_t getEntry(TBranch *branch, EntryNumber entryNumber)
TBranch * productBranch_
Definition: Inputfwd.h:43