20 auto data = MakeVecData(20);
21 data->IncDenyDestroy();
25 auto packH = slot->MakePack();
26 packH->SetElementName(
"Projections");
27 packH->SetHorizontal();
28 packH->SetShowTitleBar(
kFALSE);
30 slot = packH->NewSlot();
31 auto pack0 = slot->MakePack();
32 pack0->SetShowTitleBar(
kFALSE);
33 auto slotLeftTop = pack0->NewSlot();
34 auto slotLeftBottom = pack0->NewSlot();
36 slot = packH->NewSlot();
37 auto pack1 = slot->MakePack();
38 pack1->SetShowTitleBar(
kFALSE);
39 auto slotRightTop = pack1->NewSlot();
40 auto slotRightBottom = pack1->NewSlot();
60 gEve->GetBrowser()->GetTabRight()->SetTab(1);
78 data->RefSliceInfo(0).Setup(
"ECAL", 0.3,
kRed);
79 data->RefSliceInfo(1).Setup(
"HCAL", 0.1,
kBlue);
81 auto ax =
h1->GetXaxis();
82 auto ay =
h1->GetYaxis();
84 Int_t xm = 1, xM = ax->GetNbins();
85 Int_t ym = 1, yM = ay->GetNbins();
89 h1->GetMaximumBin(cx, cy, cz);
98 for (
Int_t j=ym; j<=yM; j+=2) {
100 data->AddTower(ax->GetBinLowEdge(
i), ax->GetBinUpEdge(
i),
101 ay->GetBinLowEdge(j), ay->GetBinUpEdge(j));
102 data->FillSlice(0,
h1->GetBinContent(
i, j));
103 data->FillSlice(1,
h2->GetBinContent(
i, j));
105 data->AddTower(ax->GetBinLowEdge(
i),
106 2 * ax->GetBinWidth(
i) + ax->GetBinLowEdge(
i),
107 ay->GetBinLowEdge(j),
108 2 * ay->GetBinWidth(j) + ay->GetBinLowEdge(j));
109 data->FillSlice(0,
h2->GetBinContent(
i, j));
110 data->FillSlice(1,
h2->GetBinContent(
i, j));
115 data->SetEtaBins(ax);
116 data->SetPhiBins(ay);
R__EXTERN TEveManager * gEve
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Visualization of a calorimeter event data in 2D.
Visualization of a calorimeter event data in 3D.
Calo data for universal cell geometry.
Visualization of calorimeter data as eta/phi histogram.
void SetMaxTowerH(Float_t x)
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
static TEveWindowSlot * CreateWindowInTab(TGTab *tab, TEveWindow *eve_parent=nullptr)
Create a new tab in a given tab-widget and populate it with a default window-slot.
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)
Demonstrates usage of EVE calorimetry classes.
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
Short_t Min(Short_t a, Short_t b)
Returns the smallest of a and b.