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
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()
#define REGISTER_FWDETAILVIEW(_classname_, _name_,...)
virtual double eta() const
momentum pseudorapidity
virtual ~FWCaloTowerDetailView()
virtual void build(const FWModelId &id, const CaloTower *)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
void showSuperClusters(Color_t color1=kGreen+2, Color_t color2=kTeal)
virtual double phi() const
momentum azimuthal angle
virtual void setTextInfo(const FWModelId &, const CaloTower *)