7 #include "TEvePointSet.h" 9 #include "TEveViewer.h" 10 #include "TGLViewer.h" 12 #include "TEveCaloLegoOverlay.h" 65 TEveCaloLegoOverlay*
overlay =
new TEveCaloLegoOverlay();
66 overlay->SetShowPlane(kFALSE);
67 overlay->SetShowPerspective(kFALSE);
68 overlay->SetCaloLego(lego);
69 overlay->SetShowScales(
true);
70 viewerGL()->AddOverlayElement(overlay);
73 viewerGL()->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
80 viewerGL()->RequestDraw(TGLRnrCtx::kLODHigh);
93 TLatex* latex =
new TLatex(x, y,
"");
94 const double textsize(0.05);
95 latex->SetTextSize(2*textsize);
97 float h = latex->GetTextSize()*0.6;
101 latex->DrawLatex(x, y, Form(
" E_{T} = %.1f GeV, #eta = %0.2f, #varphi = %0.2f",
102 photon->
et(), photon->
eta(), photon->
phi()) );
114 Double_t
x(0),
y(0),
z(0);
115 TEvePointSet *scposition =
new TEvePointSet(
"sc position");
116 scposition->SetPickable(kTRUE);
117 scposition->SetTitle(
"Super cluster centroid");
122 scposition->SetNextPoint(
x,
y,z);
123 scposition->SetMarkerSize(1);
124 scposition->SetMarkerStyle(4);
125 scposition->SetMarkerColor(kBlue);
126 tList->AddElement(scposition);
129 TEvePointSet *seedposition =
new TEvePointSet(
"seed position");
130 seedposition->SetTitle(
"Seed cluster centroid");
131 seedposition->SetPickable(kTRUE);
135 seedposition->SetMarkerSize(0.01);
137 seedposition->SetNextPoint(
x,
y, z);
138 seedposition->SetMarkerStyle(2);
139 seedposition->SetMarkerColor(kRed);
140 tList->AddElement(seedposition);
void showSuperCluster(const reco::SuperCluster &cluster, Color_t color=kYellow)
double eta() const final
momentum pseudorapidity
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()
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
void setTextInfo(const FWModelId &id, const reco::Photon *) override
def overlay(hists, ytitle, header, addon)
void build(const FWModelId &id, const reco::Photon *) override
double et() const final
transverse energy
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)
void addSceneInfo(const reco::Photon *, TEveElementList *)
#define REGISTER_FWDETAILVIEW(_classname_, _name_,...)
~FWPhotonDetailView() override
double phi() const final
momentum azimuthal angle