6 #include "TEveCaloLegoOverlay.h"
41 TEveCaloLegoOverlay*
overlay =
new TEveCaloLegoOverlay();
42 overlay->SetShowPlane(kFALSE);
43 overlay->SetShowPerspective(kFALSE);
44 overlay->SetCaloLego(lego);
45 overlay->SetShowScales(
true);
46 viewerGL()->AddOverlayElement(overlay);
49 viewerGL()->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
55 viewerGL()->RequestDraw(TGLRnrCtx::kLODHigh);
64 TLatex* latex =
new TLatex(x, y,
"");
65 const double textsize(0.05);
66 latex->SetTextSize(textsize);
68 float h = latex->GetTextSize() * 0.6;
69 latex->DrawLatex(x, y,
"ECAL hit detail view centered on tower:");
71 latex->DrawLatex(x, y, Form(
" %s",
id.
item()->modelName(
id.
index()).c_str()));
73 latex->DrawLatex(x, y, Form(
" E_{T}(em) = %.1f GeV, E_{T}(had) = %.1f GeV", tower->
emEt(), tower->
hadEt()));
75 latex->DrawLatex(x, y, Form(
" #eta = %0.2f, #varphi = %0.2f", tower->
eta(), tower->
phi()));
FWECALDetailViewBuilder * m_builder
TGLViewer * viewerGL() const
double makeLegend(double x0=0.02, double y0=0.95, Color_t clustered1=kGreen+1, Color_t clustered2=kTeal, Color_t supercluster=kYellow)
void setTextInfo(const FWModelId &, const CaloTower *) override
const FWEventItem * item()
#define REGISTER_FWDETAILVIEW(_classname_, _name_,...)
~FWCaloTowerDetailView() override
void showSuperClusters(Color_t color1=kGreen+2, Color_t color2=kTeal)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
double phi() const final
momentum azimuthal angle
void build(const FWModelId &id, const CaloTower *) override
double eta() const final
momentum pseudorapidity