14 "http://amraktad.web.cern.ch/amraktad/cms_calo_hist.root";
32 mng->SetProjection(t);
42 view->AddScene(eventScene);
50 jet->SetMainTransparency(60);
51 jet->SetLineColor(
kRed);
52 jet->SetCylinder(129 - 10, 268.36 - 10);
53 jet->AddEllipticCone(eta, phi, deta, dphi);
54 jet->SetPickable(
kTRUE);
55 jet->SetHighlightFrame(
kFALSE);
61 auto eveMng = REveManager::Create();
65 auto ecalHist = (
TH2F*)hf->Get(
"ecalLego");
66 auto hcalHist = (
TH2F*)hf->Get(
"hcalLego");
68 data->AddHistogram(ecalHist);
69 data->RefSliceInfo(0).Setup(
"ECAL", 0.f,
kBlue);
70 data->AddHistogram(hcalHist);
71 data->RefSliceInfo(1).Setup(
"HCAL", 0.1,
kRed);
76 b1->SetMainColor(
kCyan);
80 calo3d->SetBarrelRadius(
kR_max);
81 calo3d->SetEndCapPos(
kZ_d);
82 calo3d->SetMaxTowerH(300);
85 add_jet(calo3d,
"JetCone Lojz", 1.4, 1.0, 0.4, 0.2);
86 add_jet(calo3d,
"JetCone Mici", -2.0, -2.1, 0.2, 0.4);
88 makeCalo2D(calo3d,
"RPhi", REveProjection::kPT_RPhi);
89 makeCalo2D(calo3d,
"RhoZ", REveProjection::kPT_RhoZ);
char * Form(const char *fmt,...)
virtual void AddElement(REveElement *el)
Add el to the list of children.
REveElement * FirstChild() const
Returns the first child element or 0 if the list is empty.
REveScene * GetEventScene() const
REveScene * GetGlobalScene() const
REveScene * SpawnNewScene(const char *name, const char *title="")
Create a new scene.
REveViewer * SpawnNewViewer(const char *name, const char *title="")
Create a new GL viewer.
void Show(const RWebDisplayArgs &args="")
Show eve manager in specified browser.
REveProjectionManager Manager class for steering of projections and managing projected objects.
virtual void AddScene(REveScene *scene)
Add 'scene' to the list of scenes.
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.
2-D histogram with a float per channel (see TH1 documentation)}
ROOT::Experimental::REveManager * eveMng
void add_jet(REveElement *parent, const char *name, Float_t eta, Float_t phi, Float_t deta, Float_t dphi)
void makeCalo2D(REveCalo3D *calo3d, const char *pname, REveProjection::EPType_e t)
R__EXTERN REveManager * gEve