33 const char* histFile =
34 "http://amraktad.web.cern.ch/amraktad/cms_calo_hist.root";
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();
78 packH->SetHorizontal();
79 packH->SetShowTitleBar(
kFALSE);
97 lego = MakeCaloLego(
data, slotRightBottom);
113 MakeViewerScene(slot,
v,
s);
118 v->SetElementName(
"Viewer - Lego");
119 s->SetElementName(
"Scene - Lego");
151 MakeViewerScene(slot,
v,
s);
152 v->SetElementName(
"Viewer - 3D");
153 s->SetElementName(
"Scene - 3D");
158 s->AddElement(calo3d);
160 add_jet(calo3d,
"JetCone Lojz", 1.4, 1.0, 0.4, 0.2);
161 add_jet(calo3d,
"JetCone Mici", -2.0, -2.1, 0.2, 0.4);
173 MakeViewerScene(slot,
v,
s);
174 v->SetElementName(
"Viewer - 2D");
175 s->SetElementName(
"Scene - 2D");
183 s->AddElement(calo2d);
virtual TEveWindowSlot * NewSlot()
Create a new frame-slot at the last position of the pack.
virtual TEveWindowSlot * NewSlot()
Encapsulates TGPack into an eve-window.
A central manager for calorimeter event data.
A base class of TGLEventHandler.
virtual void SetHighlightFrame(Bool_t f)
Eve representation of TGLScene.
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.
constexpr Double_t TwoPi()
TEveBrowser * GetBrowser() const
void SetScale(Double_t sx, Double_t sy, Double_t sz)
Set scaling.
void SetPickable(Bool_t p)
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
static Bool_t SetCacheFileDir(ROOT::Internal::TStringView cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
virtual void SetEventHandler(TGEventHandler *handler)
Set the event-handler.
virtual void SetLineColor(Color_t c)
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
Draws a jet cone with leading particle is specified in (eta,phi) and cone radius is given...
Description of TEveWindowSlot.
TGListTreeItem * AddToListTree(TEveElement *re, Bool_t open, TGListTree *lt=0)
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
Axes for non-linear projections.
Int_t AddEllipticCone(Float_t eta, Float_t phi, Float_t reta, Float_t rphi, Float_t length=0)
Add jet cone.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=1, Int_t netopt=0)
Create / open a file.
void SetBarrelRadius(Float_t r)
Visualization of a calorimeter event data in 2D.
virtual TEveElement * ImportElements(TEveElement *el, TEveElement *ext_list=0)
Recursively import elements and apply projection to the newly imported objects.
void ReplaceWindow(TEveWindow *w)
Replace this window with the passed one.
TEveViewerList * GetViewers() const
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
virtual void SetElementName(const char *name)
Virtual function for setting of name of an element.
Manager class for steering of projections and managing projected objects.
void SetCaloLego(TEveCaloLego *c)
virtual void InitMainTrans(Bool_t can_edit=kTRUE)
Initialize the main transformation to identity matrix.
R__EXTERN TEveManager * gEve
2-D histogram with a float per channel (see TH1 documentation)}
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...
TEveGedEditor * GetEditor() const
Returns main object editor.
Base GL viewer object - used by both standalone and embedded (in pad) GL.
virtual void AddElement(TEveElement *el)
Add el to the list of children.
TGTab * GetTabRight() const
virtual void SetMainTransparency(Char_t t)
Set main-transparency.
Visualization of calorimeter data as eta/phi histogram.
virtual void AddOverlayElement(TGLOverlayElement *el)
Add overlay element.
TEveWindowPack * MakePack()
A pack is created in place of this window-slot.
TEveScene * GetEventScene() const
static constexpr double s
void SetCurrentCamera(ECameraType camera)
Set current active camera - 'cameraType' one of: kCameraPerspX, kCameraPerspY, kCameraPerspZ, kCameraOrthoXOY, kCameraOrthoXOZ, kCameraOrthoZOY, kCameraOrthoXnOY, kCameraOrthoXnOZ, kCameraOrthoZnOY.
TEveViewer * GetDefaultViewer() const
Returns the default viewer - the first one in the fViewers list.
void SetProjection(TEveProjection::EPType_e type)
Set projection type and distortion.
void SetEndCapPos(Float_t z)
virtual TEveTrans & RefMainTrans()
Return reference to main transformation.
virtual void AddElement(TEveElement *el)
Call base-class implementation.
TEveScene * SpawnNewScene(const char *name, const char *title="")
Create a new scene.
Visualization of a calorimeter event data in 3D.
void SetShowTitleBar(Bool_t x)
Set display state of the title-bar.
GL-overlay control GUI for TEveCaloLego.
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
Eve representation of TGLViewer.
void SetCylinder(Float_t r, Float_t z)
A central manager for calorimeter data of an event written in TH2F.
TGLWidget * GetGLWidget()