22 for (
Int_t i = 0; i < npoints; ++i)
36 eveMng->GetViewers()->FirstChild()->SetRnrSelf(
false);
38 auto scene =
eveMng->SpawnNewScene(
"Lego",
"LegoView");
39 auto view =
eveMng->SpawnNewViewer(
"Lego",
"");
40 view->AddScene(scene);
43 scene->AddElement(ps);
46 TPad *p =
new TCanvas(
"LegoPad",
"Lego Pad", 800, 400);
50 const char *
histFile =
"http://root.cern/files/cms_calo_hist.root";
53 auto ecalHist = (
TH2F *)hf->Get(
"ecalLego");
54 auto hcalHist = (
TH2F *)hf->Get(
"hcalLego");
57 ecalHist->SetFillColor(
kRed);
58 ecalHist->GetXaxis()->SetLabelSize(1);
59 ecalHist->GetXaxis()->SetTitle(
"#eta");
60 ecalHist->GetYaxis()->SetLabelSize(1);
61 ecalHist->GetYaxis()->SetTitle(
"#varphi");
62 ecalHist->GetZaxis()->SetLabelSize(1);
64 hcalHist->SetFillColor(
kBlue);
69 for (
int i = 0; i < 200; ++i)
70 line->SetPoint(i, std::cos(i * 0.1), std::sin(i * 0.1), i * 0.25);
71 line->SetLineWidth(5);
int Int_t
Signed integer 4 bytes (int).
static REveManager * Create()
If global REveManager* REX::gEve is not set initialize it.
void SetMarkerColor(Color_t col) override
Set the marker color.
void SetMarkerSize(Size_t msize=1) override
Set marker size, propagate to projecteds.
int SetNextPoint(float x, float y, float z)
void SetMarkerStyle(Style_t mstyle=1) override
Set marker style, propagate to projecteds.
virtual void SetMargin(Float_t left, Float_t right, Float_t bottom, Float_t top)
Set all margins.
static TString Encode(const char *data)
Transform data into a null terminated base64 string.
static TString ToJSON(const T *obj, Int_t compact=0, const char *member_name=nullptr)
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.
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.
2-D histogram with a float per channel (see TH1 documentation)
void Draw(Option_t *chopt="") override
Default Draw method for all objects.
virtual void Add(TH1 *h, Option_t *option="")
The most important graphics class in the ROOT system.
void Modified(Bool_t flag=true) override
Mark pad modified Will be repainted when TCanvas::Update() will be called next time.
void Add(TObject *obj, Option_t *opt="", Bool_t modified=kTRUE) override
Add an object to list of primitives with specified draw option When.
This is the base class for the ROOT Random number generators.
ROOT::Experimental::REveManager * eveMng
REX::REvePointSet * createPointSet(int npoints=200, float s=2, int color=28)
Namespace for ROOT features in testing.