9 std::string
const undefinedType =
"UNDEFINED";
12 std::string
const auxiliary =
"Auxiliary";
13 std::string
const productProvenance =
"BranchEntryInfo";
14 std::string
const majorIndex =
".id_.run_";
15 std::string
const metaData =
"MetaData";
16 std::string
const productStatus =
"ProductStatus";
17 std::string
const statusInformation =
"StatusInformation";
20 std::string
const run =
"Run";
21 std::string
const subRun =
"SubRun";
22 std::string
const event =
"Event";
23 std::string
const results =
"Results";
26 std::string
const runs = run +
's';
27 std::string
const subRuns = subRun +
's';
28 std::string
const events =
event +
's';
29 std::string
const resultsTree = results +
"Tree";
31 std::string
const runMeta = run + metaData;
32 std::string
const subRunMeta = subRun + metaData;
33 std::string
const eventMeta =
event + metaData;
34 std::string
const resultsMeta = results + metaData;
36 std::string
const runAuxiliary = run + auxiliary;
37 std::string
const subRunAuxiliary = subRun + auxiliary;
38 std::string
const eventAuxiliary =
event + auxiliary;
39 std::string
const resultsAuxiliary = results + auxiliary;
41 std::string
const runProductProvenance = run + productProvenance;
42 std::string
const subRunProductProvenance = subRun + productProvenance;
43 std::string
const eventProductProvenance =
event + productProvenance;
44 std::string
const resultsProductProvenance = results + productProvenance;
46 std::string
const runMajorIndex = runAuxiliary + majorIndex;
47 std::string
const subRunMajorIndex = subRunAuxiliary + majorIndex;
48 std::string
const eventMajorIndex = eventAuxiliary + majorIndex;
50 std::string
const runMinorIndex;
51 std::string
const subRunMinorIndex = subRunAuxiliary +
".id_.subRun_";
52 std::string
const eventMinorIndex = eventAuxiliary +
".id_.event_";
54 inline std::string
const&
55 select(
BranchType const bt, std::vector<std::string const*>
const& strs)
57 return (static_cast<size_t>(bt) < strs.size()) ? *strs[bt] :
67 return select(bt, {&
event, &subRun, &run, &results});
73 return select(bt, {&events, &subRuns, &runs, &resultsTree});
79 return select(bt, {&eventMeta, &subRunMeta, &runMeta, &resultsMeta});
87 {&eventAuxiliary, &subRunAuxiliary, &runAuxiliary, &resultsAuxiliary});
94 {&eventProductProvenance,
95 &subRunProductProvenance,
96 &runProductProvenance,
97 &resultsProductProvenance});
103 return select(bt, {&eventMajorIndex, &subRunMajorIndex, &runMajorIndex});
109 return select(bt, {&eventMinorIndex, &subRunMinorIndex, &runMinorIndex});
std::string const & BranchTypeToProductTreeName(BranchType const bt)
std::string const & productProvenanceBranchName(BranchType const bt)
std::string const & BranchTypeToMajorIndexName(BranchType const bt)
std::string const & BranchTypeToMinorIndexName(BranchType const bt)
std::string const & BranchTypeToMetaDataTreeName(BranchType const bt)
std::string const & BranchTypeToAuxiliaryBranchName(BranchType const bt)
std::string const & BranchTypeToString(BranchType const bt)
Event finding and building.