Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches

Detailed Description

#include <set>
#include <vector>
#include <iostream>
using namespace ROOT::Experimental;
const Double_t kR_min = 240;
const Double_t kR_max = 250;
const Double_t kZ_d = 300;
{
for (int i = 0; i < N_Jets; i++) {
auto jet = new REveJetCone(Form("Jet_%d", i));
jet->SetCylinder(2 * kR_max, 2 * kZ_d);
jet->AddEllipticCone(r.Uniform(-0.5, 0.5), r.Uniform(0, TMath::TwoPi()), 0.1, 0.2);
jet->SetFillColor(kPink - 8);
jet->SetLineColor(kViolet - 7);
jetHolder->AddElement(jet);
}
}
{
auto eveMng = REveManager::Create();
// eveMng->AllowMultipleRemoteConnections(false, false);
// initialize RGeomDesc from TGeoNode
auto data = new REveGeoTopNodeData("http://xrd-cache-1.t2.ucsd.edu/alja/mail/geo/cmsSimGeo2026.root");
data->InitPath("/tracker:Tracker_1");
data->RefDescription().SetVisLevel(2);
// make geoTable
auto scene = eveMng->SpawnNewScene("GeoSceneTable");
auto view = eveMng->SpawnNewViewer("GeoTable");
view->AddScene(scene);
scene->AddElement(data);
// 3D EveViz representation
auto geoViz = new REveGeoTopNodeViz();
geoViz->SetGeoData(data);
data->AddNiece(geoViz);
geoViz->SetPickable(true);
// add jets for BBox issues
eveMng->GetEventScene()->AddElement(geoViz);
eveMng->GetEventScene()->AddElement(jetHolder);
eveMng->Show();
}
double Double_t
Double 8 bytes.
Definition RtypesCore.h:74
@ kPink
Definition Rtypes.h:68
@ kViolet
Definition Rtypes.h:68
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
R__EXTERN TRandom * gRandom
Definition TRandom.h:73
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
Definition TString.cxx:2570
Base class for REveUtil visualization elements, providing hierarchy management, rendering control and...
Draws a jet cone with leading particle is specified in (eta,phi) and cone radius is given.
static Bool_t SetCacheFileDir(std::string_view cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
Sets the directory where to locally stage/cache remote files.
Definition TFile.cxx:4338
This is the base class for the ROOT Random number generators.
Definition TRandom.h:28
Namespace for ROOT features in testing.
Definition TROOT.h:100
constexpr Double_t TwoPi()
Definition TMath.h:47
Author
Alja Mrak-Tadel

Definition in file eveGeoBrowser.C.