1 #include "TEveCompound.h"
10 : m_tower(nullptr), m_ls(nullptr), m_energy(
e), m_et(
et), m_isTallest(
false) {
14 TEveCompound *
h =
new TEveCompound(
"rechit box",
"tower");
16 h->CSCApplyMainColorToAllChildren();
34 for (
size_t i = 0;
i < 4; ++
i) {
48 m_tower =
new TEveBox(
"EcalRecHitTower");
49 std::vector<TEveVector> towerCorners = corners;
63 m_ls =
new TEveStraightLineSet(
"EcalRecHitLineSet");
67 for (
unsigned int i = 0;
i < 4; ++
i) {
76 m_ls->SetMarkerStyle(1);
77 m_ls->AddLine(
c.fX,
c.fY,
c.fZ,
c.fX,
c.fY,
c.fZ);
78 m_ls->AddMarker(0, 0.);
96 for (
unsigned int i = 0;
i < 4; ++
i) {
108 float s =
log(1 +
val) / maxLogVal;
120 m_ls->GetMarkerPlex().Refit();
123 TEveStraightLineSet::Marker_t *
m = ((TEveStraightLineSet::Marker_t *)(
m_ls->GetMarkerPlex().Atom(0)));
133 m_ls->StampTransBBox();
140 TEveStraightLineSet::Line_t *
l = ((TEveStraightLineSet::Line_t *)(
m_ls->GetLinePlex().Atom(
idx)));
161 m_ls->AddLine(v1.fX, v1.fY, v1.fZ, v2.fX, v2.fY, v2.fZ);