rootNames.h
Go to the documentation of this file.
1 #ifndef canvas_Persistency_Provenance_rootNames_h
2 #define canvas_Persistency_Provenance_rootNames_h
3 
13 
14 #include <string>
15 #include <typeinfo>
16 
17 namespace art {
18  struct FileFormatVersion;
19  class History;
20 
21  namespace rootNames {
22 
23  //------------------------------------------------------------------
24  // Parentage Tree
26 
27  // Branches on parentage tree
30 
31  //------------------------------------------------------------------
32  // MetaData Tree (1 entry per file)
34 
35  // FileIndex Tree
37 
38  // Event History Tree
40 
41  // Branches on EventHistory Tree
43 
44  //------------------------------------------------------------------
45  // Other tree names
46  std::string const& eventTreeName();
49 
50 #define ART_ROOTNAME(T, N) \
51  template <> \
52  inline char const* metaBranchRootName<T>() \
53  { \
54  return N; \
55  }
56 
57 #define ART_ROOTNAME_SIMPLE(T) ART_ROOTNAME(T, #T)
58 
59  template <typename T>
60  char const*
62  {
64  << "art::metaBranchRootName requires a specialization for type "
65  << TypeID(typeid(T)).className() << "\n";
66  }
67 
69  ART_ROOTNAME_SIMPLE(FileIndex) // supporting backwards compatibility
75  ART_ROOTNAME(BranchChildren, "ProductDependencies")
76  ART_ROOTNAME(History, "EventHistory")
77 
78 #undef ART_ROOTNAME_SIMPLE
79 #undef ART_ROOTNAME
80 
81  } // rootNames
82 }
83 #endif /* canvas_Persistency_Provenance_rootNames_h */
84 
85 // Local Variables:
86 // mode: c++
87 // End:
std::vector< BranchIDList > BranchIDLists
Definition: BranchIDList.h:18
std::string string
Definition: nybbler.cc:12
std::string const & dataTreeName(BranchType bt)
Definition: rootNames.cc:75
std::string const & parentageTreeName()
Definition: rootNames.cc:23
std::string const & eventHistoryTreeName()
Definition: rootNames.cc:56
std::map< ProcessHistoryID const, ProcessHistory > ProcessHistoryMap
std::string const & metaDataTreeName()
Definition: rootNames.cc:42
#define ART_ROOTNAME(T, N)
Definition: rootNames.h:50
bt
Definition: tracks.py:83
char const * metaBranchRootName()
Definition: rootNames.h:61
std::string const & parentageBranchName()
Definition: rootNames.cc:35
std::string const & parentageIDBranchName()
Definition: rootNames.cc:29
std::string className() const
Definition: TypeID.cc:48
std::string const & eventMetaDataTreeName()
Definition: rootNames.cc:81
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
std::string const & fileIndexTreeName()
Definition: rootNames.cc:49
std::string const & eventHistoryBranchName()
Definition: rootNames.cc:63
BranchType
Definition: BranchType.h:20
std::string const & eventTreeName()
Definition: rootNames.cc:69
std::map< fhicl::ParameterSetID, ParameterSetBlob > ParameterSetMap
#define ART_ROOTNAME_SIMPLE(T)
Definition: rootNames.h:57