7 #include "TEvePointSet.h" 9 #include "TEveViewer.h" 10 #include "TGLViewer.h" 12 #include "TEveCaloLegoOverlay.h" 60 TEveCaloLegoOverlay*
overlay =
new TEveCaloLegoOverlay();
62 overlay->SetShowPerspective(kFALSE);
68 viewerGL()->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
74 viewerGL()->RequestDraw(TGLRnrCtx::kLODHigh);
85 TLatex* latex =
new TLatex(
x,
y,
"");
86 const double textsize(0.05);
87 latex->SetTextSize(2 * textsize);
89 float h = latex->GetTextSize() * 0.6;
94 x,
y, Form(
" E_{T} = %.1f GeV, #eta = %0.2f, #varphi = %0.2f",
photon->et(),
photon->eta(),
photon->phi()));
103 Double_t
x(0),
y(0),
z(0);
104 TEvePointSet* scposition =
new TEvePointSet(
"sc position");
105 scposition->SetPickable(kTRUE);
106 scposition->SetTitle(
"Super cluster centroid");
108 x =
i->caloPosition().eta();
109 y =
i->caloPosition().phi();
111 scposition->SetNextPoint(
x,
y,
z);
112 scposition->SetMarkerSize(1);
113 scposition->SetMarkerStyle(4);
114 scposition->SetMarkerColor(kBlue);
115 tList->AddElement(scposition);
118 TEvePointSet* seedposition =
new TEvePointSet(
"seed position");
119 seedposition->SetTitle(
"Seed cluster centroid");
120 seedposition->SetPickable(kTRUE);
122 x =
i->superCluster()->seed()->position().eta();
123 y =
i->superCluster()->seed()->position().phi();
124 seedposition->SetMarkerSize(0.01);
126 seedposition->SetNextPoint(
x,
y,
z);
127 seedposition->SetMarkerStyle(2);
128 seedposition->SetMarkerColor(kRed);
129 tList->AddElement(seedposition);
void showSuperCluster(const reco::SuperCluster &cluster, Color_t color=kYellow)
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_,...)
void setTextInfo(const FWModelId &id, const reco::Photon *) override
def overlay(hists, ytitle, header, addon)
void build(const FWModelId &id, const reco::Photon *) override
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
FWECALDetailViewBuilder * m_builder
math::XYZPointF caloPosition() const
position in ECAL: this is th SC position if r9<0.93. If r8>0.93 is position of seed BasicCluster taki...
void showSuperClusters(Color_t color1=kGreen+2, Color_t color2=kTeal)
TGLViewer * viewerGL() const
void addSceneInfo(const reco::Photon *, TEveElementList *)
~FWPhotonDetailView() override
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.