Skip to content

Commit 387948e

Browse files
committed
DPL Analysis: add new tables to the graphviz plot
1 parent 7f5a915 commit 387948e

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

Analysis/DataModel/src/dumpDataModel.cxx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void printIndex()
4242
auto a = MetadataTrait<typename C::binding_t>::metadata::label();
4343
auto b = MetadataTrait<T>::metadata::label();
4444
fmt::printf("%s -> %s []\n", a, b);
45-
} else if constexpr (is_type_with_originals_v<typename C::binding_t>) {
45+
} else {
4646
using main_original = pack_element_t<0, typename C::binding_t::originals>;
4747
auto a = MetadataTrait<main_original>::metadata::label();
4848
auto b = MetadataTrait<T>::metadata::label();
@@ -85,7 +85,10 @@ struct Style {
8585

8686
static Style styles[] = {
8787
{"black", "gray80", "black", "black", "gray70", "black", "gray60", "black", "gray50"},
88-
{"/reds9/2", "/reds9/4", "white", "white", "/reds9/7", "black", "/reds9/6", "/reds9/1", "/reds9/5"}};
88+
{"/reds9/2", "/reds9/4", "white", "white", "/reds9/7", "black", "/reds9/6", "/reds9/1", "/reds9/5"},
89+
{"/greens9/2", "/greens9/4", "white", "white", "/greens9/7", "black", "/greens9/6", "/greens9/1", "/greens9/5"},
90+
{"/blues9/2", "/blues9/4", "white", "white", "/blues9/7", "black", "/blues9/6", "/blues9/1", "/blues9/5"},
91+
};
8992

9093
Style const& getDefaultStyle()
9194
{
@@ -95,6 +98,8 @@ Style const& getDefaultStyle()
9598
enum struct StyleType : int {
9699
DEFAULT = 0,
97100
RED = 1,
101+
GREEN = 2,
102+
BLUE = 3,
98103
};
99104

100105
template <typename T>
@@ -152,9 +157,10 @@ edge[dir=back, arrowtail=empty]
152157
dumpTable<V0s>();
153158
dumpTable<Cascades>();
154159
dumpTable<Timeframes>();
155-
dumpTable<SecVtx2Prong>(true, StyleType::RED);
156-
dumpTable<Cand2Prong>(true, StyleType::RED);
157-
dumpTable<Jets>();
158-
dumpTable<JetConstituents>();
160+
dumpTable<SecVtx2Prong>(true, StyleType::GREEN);
161+
dumpTable<Cand2Prong>(true, StyleType::GREEN);
162+
dumpTable<Jets>(true, StyleType::BLUE);
163+
dumpTable<JetConstituents>(true, StyleType::BLUE);
164+
dumpTable<UnassignedTracks>();
159165
fmt::printf("%s\n", R"(})");
160166
}

0 commit comments

Comments
 (0)