LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
BranchType.h
Go to the documentation of this file.
1 #ifndef canvas_Persistency_Provenance_BranchType_h
2 #define canvas_Persistency_Provenance_BranchType_h
3 
4 // ======================================================================
5 //
6 // BranchType: enumerate/encode/label the three Branch types
7 //
8 // ======================================================================
9 
10 #include <string>
11 
12 // ----------------------------------------------------------------------
13 
14 namespace art {
15 
16  // Note: These enum values are used as subscripts for a fixed size
17  // array, so they must not change.
19 
20  std::string const& BranchTypeToString(BranchType);
21  std::string const& BranchTypeToProductTreeName(BranchType);
22  std::string const& BranchTypeToMetaDataTreeName(BranchType);
23  std::string const& BranchTypeToAuxiliaryBranchName(BranchType);
24  std::string const& productProvenanceBranchName(BranchType);
25  std::string const& BranchTypeToMajorIndexName(BranchType);
26  std::string const& BranchTypeToMinorIndexName(BranchType);
27 
28  inline std::ostream&
29  operator<<(std::ostream& os, BranchType const branchType)
30  {
31  return os << BranchTypeToString(branchType);
32  }
33 
34 } // art
35 
36  // ======================================================================
37 
38 #endif /* canvas_Persistency_Provenance_BranchType_h */
39 
40 // Local Variables:
41 // mode: c++
42 // End:
std::ostream & operator<<(std::ostream &os, EDAnalyzer::Table< T > const &t)
Definition: EDAnalyzer.h:184
std::string const & BranchTypeToProductTreeName(BranchType const bt)
Definition: BranchType.cc:71
std::string const & productProvenanceBranchName(BranchType const bt)
Definition: BranchType.cc:91
std::string const & BranchTypeToMajorIndexName(BranchType const bt)
Definition: BranchType.cc:101
std::string const & BranchTypeToMinorIndexName(BranchType const bt)
Definition: BranchType.cc:107
std::string const & BranchTypeToMetaDataTreeName(BranchType const bt)
Definition: BranchType.cc:77
std::string const & BranchTypeToAuxiliaryBranchName(BranchType const bt)
Definition: BranchType.cc:83
std::string const & BranchTypeToString(BranchType const bt)
Definition: BranchType.cc:65
BranchType
Definition: BranchType.h:18
HLT enums.