From 599519ff2c52d957be4707f793d4619054322732 Mon Sep 17 00:00:00 2001 From: mtadel Date: Fri, 30 Oct 2009 10:25:51 +0000 Subject: [PATCH] Add example of how to assign lines to a module. --- EVE/alice-macros/emcal_digits.C | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/EVE/alice-macros/emcal_digits.C b/EVE/alice-macros/emcal_digits.C index 09b6439ef69..f297390a804 100644 --- a/EVE/alice-macros/emcal_digits.C +++ b/EVE/alice-macros/emcal_digits.C @@ -79,6 +79,22 @@ void emcal_digits() gEve->AddElement(q, l); smodules[sm] = q; + + // Add line + /* + TEveLine *ll = new TEveLine("Test"); + ll->SetMainColor(kRed); + ll->SetLineWidth(2); + + ll->SetNextPoint(0, -20, -20); + ll->SetNextPoint(0, 20, -20); + ll->SetNextPoint(0, 20, 20); + ll->SetNextPoint(0, -20, 20); + ll->SetNextPoint(0, -20, -20); + ll->RefMainTrans() = q->RefMainTrans(); + + q->AddElement(ll); + */ } TClonesArray *digits = 0; -- 2.31.1