const char *histFile = "http://root.cern/files/cms_calo_hist.root";
{
auto eventScene = eveMng->SpawnNewScene(
Form(
"%s Event Data", pname), pname);
mng->SetProjection(t);
REveElement *geo2d = mng->ImportElements(eveMng->GetGlobalScene()->FirstChild(), geomScene);
auto view = eveMng->SpawnNewViewer("RPhi View", "");
view->SetCameraType(REveViewer::kCameraOrthoXOY);
view->AddScene(geomScene);
view->AddScene(eventScene);
}
{
jet->SetMainTransparency(60);
jet->SetCylinder(kR_min - 10, kZ_d - 10);
jet->AddEllipticCone(eta, phi, deta, dphi);
jet->SetHighlightFrame(
kFALSE);
parent->AddElement(jet);
}
void calorimeters()
{
auto eveMng = REveManager::Create();
auto ecalHist = (
TH2F *)hf->Get(
"ecalLego");
auto hcalHist = (
TH2F *)hf->Get(
"hcalLego");
data->AddHistogram(ecalHist);
data->RefSliceInfo(0).Setup(
"ECAL", 0.f,
kBlue);
data->AddHistogram(hcalHist);
data->RefSliceInfo(1).Setup(
"HCAL", 0.1,
kRed);
eveMng->GetEventScene()->AddElement(
data);
b1->SetShape(
new TGeoTube(kR_min, kR_max, kZ_d));
b1->SetMainTransparency(90);
b1->SetNSegments(80);
eveMng->GetGlobalScene()->AddElement(b1);
calo3d->SetBarrelRadius(kR_max + 1);
calo3d->SetEndCapPos(kZ_d + 1);
calo3d->SetMaxTowerH(300);
eveMng->GetEventScene()->AddElement(calo3d);
add_jet(calo3d, "JetCone Lojz", 1.4, 1.0, 0.4, 0.2);
add_jet(calo3d, "JetCone Mici", -2.0, -2.1, 0.2, 0.4);
makeCalo2D(calo3d, "RPhi", REveProjection::kPT_RPhi);
makeCalo2D(calo3d, "RhoZ", REveProjection::kPT_RhoZ);
eveMng->Show();
}
float Float_t
Float 4 bytes (float)
double Double_t
Double 8 bytes.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
Visualization of a calorimeter event data in 2D.
Visualization of a calorimeter event data in 3D.
A central manager for calorimeter data of an event written in TH2F.
Base class for REveUtil visualization elements, providing hierarchy management, rendering control and...
Wrapper for TGeoShape with absolute positioning and color attributes allowing display of extracted TG...
Draws a jet cone with leading particle is specified in (eta,phi) and cone radius is given.
Manager class for steering of projections and managing projected objects.
REveScene * SpawnNewScene(const char *name, const char *title="")
Create a new scene.
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)
Namespace for ROOT features in testing.
R__EXTERN REveManager * gEve