34 "http://amraktad.web.cern.ch/amraktad/cms_calo_hist.root";
51 auto ecalHist = (
TH2F*)hf->Get(
"ecalLego");
52 auto hcalHist = (
TH2F*)hf->Get(
"hcalLego");
54 data->AddHistogram(ecalHist);
55 data->RefSliceInfo(0).Setup(
"ECAL", 0.3,
kBlue);
56 data->AddHistogram(hcalHist);
57 data->RefSliceInfo(1).Setup(
"HCAL", 0.1,
kRed);
58 data->GetEtaBins()->SetTitleFont(120);
59 data->GetEtaBins()->SetTitle(
"h");
60 data->GetPhiBins()->SetTitleFont(120);
61 data->GetPhiBins()->SetTitle(
"f");
62 data->IncDenyDestroy();
67 auto lego = MakeCaloLego(data, 0);
75 auto packH = slot->MakePack();
76 packH->SetElementName(
"Projections");
77 packH->SetHorizontal();
78 packH->SetShowTitleBar(
kFALSE);
80 slot = packH->NewSlot();
81 auto pack0 = slot->MakePack();
82 pack0->SetShowTitleBar(
kFALSE);
83 auto slotLeftTop = pack0->NewSlot();
84 auto slotLeftBottom = pack0->NewSlot();
86 slot = packH->NewSlot();
87 auto pack1 = slot->MakePack();
88 pack1->SetShowTitleBar(
kFALSE);
89 auto slotRightTop = pack1->NewSlot();
90 auto slotRightBottom = pack1->NewSlot();
93 auto calo3d = MakeCalo3D(data, slotRightTop);
96 lego = MakeCaloLego(data, slotRightBottom);
111 MakeViewerScene(slot,
v,
s);
116 v->SetElementName(
"Viewer - Lego");
117 s->SetElementName(
"Scene - Lego");
125 lego->InitMainTrans();
129 auto glv =
v->GetGLViewer();
131 glv->AddOverlayElement(overlay);
149 MakeViewerScene(slot,
v,
s);
150 v->SetElementName(
"Viewer - 3D");
151 s->SetElementName(
"Scene - 3D");
154 calo3d->SetBarrelRadius(129.00);
155 calo3d->SetEndCapPos(268.36);
156 s->AddElement(calo3d);
158 add_jet(calo3d,
"JetCone Lojz", 1.4, 1.0, 0.4, 0.2);
159 add_jet(calo3d,
"JetCone Mici", -2.0, -2.1, 0.2, 0.4);
171 MakeViewerScene(slot,
v,
s);
172 v->SetElementName(
"Viewer - 2D");
173 s->SetElementName(
"Scene - 2D");
176 mng->SetProjection(t);
181 s->AddElement(calo2d);
210 jet->SetMainTransparency(60);
211 jet->SetLineColor(
kRed);
212 jet->SetCylinder(129 - 10, 268.36 - 10);
213 jet->AddEllipticCone(eta, phi, deta, dphi);
214 jet->SetPickable(
kTRUE);
215 jet->SetHighlightFrame(
kFALSE);
R__EXTERN TEveManager * gEve
Visualization of a calorimeter event data in 2D.
Visualization of a calorimeter event data in 3D.
A central manager for calorimeter data of an event written in TH2F.
A central manager for calorimeter event data.
GL-overlay control GUI for TEveCaloLego.
void SetCaloLego(TEveCaloLego *c)
Visualization of calorimeter data as eta/phi histogram.
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
virtual void AddElement(TEveElement *el)
Add el to the list of children.
Draws a jet cone with leading particle is specified in (eta,phi) and cone radius is given.
A base class of TGLEventHandler.
TEveViewerList * GetViewers() const
TEveViewer * GetDefaultViewer() const
Returns the default viewer - the first one in the fViewers list.
TEveBrowser * GetBrowser() const
TGListTreeItem * AddToListTree(TEveElement *re, Bool_t open, TGListTree *lt=0)
TEveGedEditor * GetEditor() const
Returns main object editor.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
TEveScene * SpawnNewScene(const char *name, const char *title="")
Create a new scene.
TEveScene * GetEventScene() const
Axes for non-linear projections.
Manager class for steering of projections and managing projected objects.
Eve representation of TGLScene.
virtual void AddElement(TEveElement *el)
Call base-class implementation.
Eve representation of TGLViewer.
Description of TEveWindowSlot.
void ReplaceWindow(TEveWindow *w)
Replace this window with the passed one.
static TEveWindowSlot * CreateWindowInTab(TGTab *tab, TEveWindow *eve_parent=0)
Create a new tab in a given tab-widget and populate it with a default window-slot.
static Bool_t SetCacheFileDir(ROOT::Internal::TStringView cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
virtual Bool_t SetTab(Int_t tabIndex, Bool_t emit=kTRUE)
Brings the composite frame with the index tabIndex to the front and generate the following event if t...
2-D histogram with a float per channel (see TH1 documentation)}
TGTab * GetTabRight() const
static constexpr double s
constexpr Double_t TwoPi()