33 const char* histFile =
34 "http://amraktad.web.cern.ch/amraktad/cms_calo_hist.root";
78 packH->SetHorizontal();
79 packH->SetShowTitleBar(
kFALSE);
94 TEveCalo3D* calo3d = MakeCalo3D(data, slotRightTop);
97 lego = MakeCaloLego(data, slotRightBottom);
113 MakeViewerScene(slot, v, s);
151 MakeViewerScene(slot, v, s);
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);
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 TAxis * GetEtaBins() const
virtual void SetHighlightFrame(Bool_t f)
SliceInfo_t & RefSliceInfo(Int_t s)
void Setup(const char *name, Float_t threshold, Color_t col, Char_t transp=101)
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.
void IncDenyDestroy()
Increases the deny-destroy count of the element.
Draws a jet cone with leading particle is specified in (eta,phi) and cone radius is given...
Description of TEveWindowSlot.
virtual void SetTitleFont(Style_t font=62)
Set the title font.
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)
Int_t AddHistogram(TH2F *hist)
Add new slice to calo tower.
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.
TGLViewer * GetGLViewer() const
TEveWindowPack * MakePack()
A pack is created in place of this window-slot.
TEveScene * GetEventScene() const
static constexpr double s
virtual TAxis * GetPhiBins() const
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.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
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.
TGLSAViewer * SpawnGLViewer(TGedEditor *ged=0, Bool_t stereo=kFALSE, Bool_t quad_buf=kTRUE)
Spawn new GLViewer and adopt it.
TGLWidget * GetGLWidget()
virtual void AddScene(TEveScene *scene)
Add 'scene' to the list of scenes.