6 #include "TEveCaloLegoOverlay.h"
38 iTower->
eta(), iTower->
phi(), 25);
47 TEveCaloLegoOverlay* overlay =
new TEveCaloLegoOverlay();
48 overlay->SetShowPlane(kFALSE);
49 overlay->SetShowPerspective(kFALSE);
50 overlay->SetCaloLego(lego);
51 overlay->SetShowScales(1);
52 viewerGL()->AddOverlayElement(overlay);
55 viewerGL()->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
62 viewerGL()->RequestDraw(TGLRnrCtx::kLODHigh);
74 TLatex* latex =
new TLatex(x, y,
"");
75 const double textsize(0.05);
76 latex->SetTextSize(textsize);
78 float h = latex->GetTextSize()*0.6;
79 latex->DrawLatex(x, y,
"ECAL hit detail view centered on tower:" );
81 latex->DrawLatex(x, y, Form(
" %s",
id.
item()->modelName(
id.
index()).c_str()) );
83 latex->DrawLatex(x, y, Form(
" E_{T}(em) = %.1f GeV, E_{T}(had) = %.1f GeV",
86 latex->DrawLatex(x, y, Form(
" #eta = %0.2f, #varphi = %0.2f",
87 tower->
eta(), tower->
phi()) );
FWECALDetailViewBuilder * m_builder
TGLViewer * viewerGL() const
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
double makeLegend(double x0=0.02, double y0=0.95, Color_t clustered1=kGreen+1, Color_t clustered2=kTeal, Color_t supercluster=kYellow)
const FWEventItem * item()
virtual double phi() const final
momentum azimuthal angle
#define REGISTER_FWDETAILVIEW(_classname_, _name_,...)
virtual ~FWCaloTowerDetailView()
virtual void build(const FWModelId &id, const CaloTower *)
void showSuperClusters(Color_t color1=kGreen+2, Color_t color2=kTeal)
virtual double eta() const final
momentum pseudorapidity
virtual void setTextInfo(const FWModelId &, const CaloTower *)