Go to the documentation of this file.
6 #include "TEveCaloLegoOverlay.h"
41 TEveCaloLegoOverlay*
overlay =
new TEveCaloLegoOverlay();
43 overlay->SetShowPerspective(kFALSE);
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:");
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()));
double makeLegend(double x0=0.02, double y0=0.95, Color_t clustered1=kGreen+1, Color_t clustered2=kTeal, Color_t supercluster=kYellow)
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
TGLViewer * viewerGL() const
#define REGISTER_FWDETAILVIEW(_classname_, _name_,...)
~FWCaloTowerDetailView() override
FWECALDetailViewBuilder * m_builder
void setTextInfo(const FWModelId &, const CaloTower *) override
void showSuperClusters(Color_t color1=kGreen+2, Color_t color2=kTeal)
double eta() const final
momentum pseudorapidity
const FWEventItem * item()
def overlay(hists, ytitle, header, addon)
void build(const FWModelId &id, const CaloTower *) override
double phi() const final
momentum azimuthal angle