8 #include "TEvePointSet.h"
10 #include "TEveViewer.h"
11 #include "TGLViewer.h"
13 #include "TEveCaloLegoOverlay.h"
35 m_eveViewer->GetGLViewer()->DeleteOverlayElements(TGLOverlayElement::kUser);
66 TEveCaloLegoOverlay* overlay =
new TEveCaloLegoOverlay();
67 overlay->SetShowPlane(kFALSE);
68 overlay->SetShowPerspective(kFALSE);
69 overlay->SetCaloLego(lego);
70 overlay->SetShowScales(1);
71 viewerGL()->AddOverlayElement(overlay);
74 viewerGL()->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
81 viewerGL()->RequestDraw(TGLRnrCtx::kLODHigh);
94 TLatex* latex =
new TLatex(x, y,
"");
95 const double textsize(0.05);
96 latex->SetTextSize(2*textsize);
98 float h = latex->GetTextSize()*0.6;
99 latex->DrawLatex(x, y,
id.
item()->modelName(
id.
index()).c_str() );
102 latex->DrawLatex(x, y, Form(
" E_{T} = %.1f GeV, #eta = %0.2f, #varphi = %0.2f",
103 photon->
et(), photon->
eta(), photon->
phi()) );
113 unsigned int subdetId(0);
114 if ( !i->
superCluster()->seed()->hitsAndFractions().empty() )
115 subdetId = i->
superCluster()->seed()->hitsAndFractions().front().first.subdetId();
118 Double_t
x(0),
y(0),
z(0);
119 TEvePointSet *scposition =
new TEvePointSet(
"sc position");
120 scposition->SetPickable(kTRUE);
121 scposition->SetTitle(
"Super cluster centroid");
129 scposition->SetNextPoint(
x,
y,z);
130 scposition->SetMarkerSize(1);
131 scposition->SetMarkerStyle(4);
132 scposition->SetMarkerColor(kBlue);
133 tList->AddElement(scposition);
136 TEvePointSet *seedposition =
new TEvePointSet(
"seed position");
137 seedposition->SetTitle(
"Seed cluster centroid");
138 seedposition->SetPickable(kTRUE);
142 seedposition->SetMarkerSize(0.01);
146 seedposition->SetMarkerSize(1);
148 seedposition->SetNextPoint(
x,
y, z);
149 seedposition->SetMarkerStyle(2);
150 seedposition->SetMarkerColor(kRed);
151 tList->AddElement(seedposition);
void showSuperCluster(const reco::SuperCluster &cluster, Color_t color=kYellow)
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)
virtual double et() const
transverse energy
const FWEventItem * item()
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
virtual double eta() const
momentum pseudorapidity
virtual ~FWPhotonDetailView()
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...
virtual void build(const FWModelId &id, const reco::Photon *)
void showSuperClusters(Color_t color1=kGreen+2, Color_t color2=kTeal)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
void addSceneInfo(const reco::Photon *, TEveElementList *)
virtual void setTextInfo(const FWModelId &id, const reco::Photon *)
#define REGISTER_FWDETAILVIEW(_classname_, _name_)
virtual double phi() const
momentum azimuthal angle