6 #include "TEveCaloLegoOverlay.h"
37 iTower->
eta(), iTower->
phi(), 25);
46 TEveCaloLegoOverlay* overlay =
new TEveCaloLegoOverlay();
47 overlay->SetShowPlane(kFALSE);
48 overlay->SetShowPerspective(kFALSE);
49 overlay->SetCaloLego(lego);
50 overlay->SetShowScales(1);
51 viewerGL()->AddOverlayElement(overlay);
54 viewerGL()->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
61 viewerGL()->RequestDraw(TGLRnrCtx::kLODHigh);
73 TLatex* latex =
new TLatex(x, y,
"");
74 const double textsize(0.05);
75 latex->SetTextSize(textsize);
77 float h = latex->GetTextSize()*0.6;
78 latex->DrawLatex(x, y,
"ECAL hit detail view centered on tower:" );
80 latex->DrawLatex(x, y, Form(
" %s",
id.
item()->modelName(
id.
index()).c_str()) );
82 latex->DrawLatex(x, y, Form(
" E_{T}(em) = %.1f GeV, E_{T}(had) = %.1f GeV",
85 latex->DrawLatex(x, y, Form(
" #eta = %0.2f, #varphi = %0.2f",
86 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()
virtual double eta() const
momentum pseudorapidity
virtual ~FWCaloTowerDetailView()
virtual void build(const FWModelId &id, const CaloTower *)
void showSuperClusters(Color_t color1=kGreen+2, Color_t color2=kTeal)
#define REGISTER_FWDETAILVIEW(_classname_, _name_)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
virtual double phi() const
momentum azimuthal angle
virtual void setTextInfo(const FWModelId &, const CaloTower *)