-
Notifications
You must be signed in to change notification settings - Fork 496
Expand file tree
/
Copy pathEventManager.cxx
More file actions
570 lines (479 loc) · 20.6 KB
/
EventManager.cxx
File metadata and controls
570 lines (479 loc) · 20.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
///
/// \file EventManager.cxx
/// \author Jeremi Niedziela
/// \author Julian Myrcha
/// \author Michal Chwesiuk
/// \author Piotr Nowakowski
#include <unordered_map>
#include "EventVisualisationView/EventManager.h"
#include "EventVisualisationView/EventManagerFrame.h"
#include "EventVisualisationView/MultiView.h"
#include "EventVisualisationView/Options.h"
#include "EventVisualisationDataConverter/VisualisationEvent.h"
#include "EventVisualisationDataConverter/VisualisationEventJSONSerializer.h"
#include <EventVisualisationBase/DataSourceOnline.h>
#include "EventVisualisationBase/ConfigurationManager.h"
#include "DataFormatsParameters/ECSDataAdapters.h"
#include <TEveManager.h>
#include <TEveTrack.h>
#include <TEveTrackPropagator.h>
#include <TEveElement.h>
#include <TGListTree.h>
#include <TEveCalo.h>
#include <fairlogger/Logger.h>
#include <rapidjson/document.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>
#include <gsl/span>
#define elemof(e) (unsigned int)(sizeof(e) / sizeof(e[0]))
using namespace std;
using namespace rapidjson;
namespace o2
{
namespace event_visualisation
{
EventManager* EventManager::instance = nullptr;
EventManager& EventManager::getInstance()
{
if (instance == nullptr) {
instance = new EventManager();
}
return *instance;
}
EventManager::EventManager() : TEveEventManager("Event", "")
{
LOGF(info, "Initializing TEveManager");
ConfigurationManager::getInstance().getConfig(settings);
vizSettings.firstEvent = true;
for (int i = 0; i < NvisualisationGroups; i++) {
vizSettings.trackVisibility[i] = true;
vizSettings.trackColor[i] = settings.GetValue("tracks.byType.unknown", kMagenta);
vizSettings.trackStyle[i] = 1;
vizSettings.trackWidth[i] = 1;
vizSettings.clusterVisibility[i] = true;
vizSettings.clusterColor[i] = settings.GetValue("clusters.byType.unknown", kBlue);
vizSettings.clusterStyle[i] = 20;
vizSettings.clusterSize[i] = 1.0f;
}
}
void EventManager::displayCurrentEvent()
{
auto start = std::chrono::high_resolution_clock::now();
const auto multiView = MultiView::getInstance();
const auto dataSource = getDataSource();
if (dataSource->getEventCount() > 0) {
if (!vizSettings.firstEvent) {
saveVisualisationSettings();
}
multiView->destroyAllEvents();
int no = dataSource->getCurrentEvent();
for (int i = 0; i < EVisualisationDataType::NdataTypes; ++i) {
dataTypeLists[i] = new TEveElementList(gDataTypeNames[i].c_str());
dataTypeListsPhi[i] = new TEveElementList(gDataTypeNames[i].c_str());
}
VisualisationEvent event; // collect calorimeters in one drawing step
auto displayList = dataSource->getVisualisationList(no,
EventManagerFrame::getInstance().getMinTimeFrameSliderValue(),
EventManagerFrame::getInstance().getMaxTimeFrameSliderValue(),
EventManagerFrame::MaxRange);
for (auto it = displayList.begin(); it != displayList.end(); ++it) {
if (it->second == EVisualisationGroup::EMC || it->second == EVisualisationGroup::PHS) {
displayCalorimeters(it->first, gVisualisationGroupName[it->second]);
} else {
displayVisualisationEvent(it->first, gVisualisationGroupName[it->second]);
}
}
multiView->registerElements(dataTypeLists, dataTypeListsPhi);
if (vizSettings.firstEvent) {
ifstream s(TEMP_SETTINGS_PATH);
if (s.good()) {
restoreVisualisationSettings();
} else {
saveVisualisationSettings();
}
vizSettings.firstEvent = false;
} else {
restoreVisualisationSettings();
}
if (dataSource->getRunNumber() != -1) {
if (this->mShowDate) {
std::string creationTime = dataSource->getCreationTimeAsString();
multiView->getAnnotationTop()->SetText(
TString::Format("Run %d %s\n%s", dataSource->getRunNumber(),
std::string(parameters::GRPECS::RunTypeNames[dataSource->getRunType()]).c_str(),
creationTime.c_str()));
} else {
multiView->getAnnotationTop()->SetText(TString::Format("Run %d", dataSource->getRunNumber()));
}
auto detectors = detectors::DetID::getNames(dataSource->getDetectorsMask());
multiView->getAnnotationBottom()->SetText(
TString::Format("TFOrbit: %d\nDetectors: %s", dataSource->getFirstTForbit(), detectors.c_str()));
} else {
multiView->getAnnotationTop()->SetText("No Available Data to Display");
}
}
multiView->redraw3D();
auto stop = std::chrono::high_resolution_clock::now();
auto duration = std::chrono::duration_cast<std::chrono::microseconds>(stop - start);
}
void EventManager::GotoEvent(Int_t no)
{
if (getDataSource()->getEventCount() > 0) {
if (no == -1) {
no = getDataSource()->getEventCount() - 1;
}
this->getDataSource()->setCurrentEvent(no);
displayCurrentEvent();
}
}
void EventManager::NextEvent()
{
if (getDataSource()->getEventCount() > 0) {
if (this->getDataSource()->getCurrentEvent() < getDataSource()->getEventCount() - 1) {
Int_t event = (this->getDataSource()->getCurrentEvent() + 1) % getDataSource()->getEventCount();
GotoEvent(event);
}
}
}
void EventManager::PrevEvent()
{
if (getDataSource()->getEventCount() > 0) {
if (this->getDataSource()->getCurrentEvent() > 0) {
GotoEvent(this->getDataSource()->getCurrentEvent() - 1);
}
}
}
void EventManager::CurrentEvent()
{
if (getDataSource()->getEventCount() > 0) {
GotoEvent(this->getDataSource()->getCurrentEvent());
}
}
void EventManager::Close()
{
delete this->dataSource;
this->dataSource = nullptr;
}
void EventManager::AfterNewEventLoaded()
{
TEveEventManager::AfterNewEventLoaded();
}
void EventManager::AddNewEventCommand(const TString& cmd)
{
TEveEventManager::AddNewEventCommand(cmd);
}
void EventManager::RemoveNewEventCommand(const TString& cmd)
{
TEveEventManager::RemoveNewEventCommand(cmd);
}
void EventManager::ClearNewEventCommands()
{
TEveEventManager::ClearNewEventCommands();
}
EventManager::~EventManager()
{
instance = nullptr;
}
void EventManager::DropEvent()
{
DestroyElements();
}
void EventManager::displayVisualisationEvent(VisualisationEvent& event, const std::string& detectorName)
{
double eta = 0.1;
size_t trackCount = event.getTrackCount();
// tracks
auto* list = new TEveTrackList(detectorName.c_str());
list->IncDenyDestroy();
// clusters
size_t clusterCount = 0;
auto* point_list = new TEvePointSet(detectorName.c_str());
point_list->IncDenyDestroy(); // don't delete if zero parent
point_list->SetMarkerColor(settings.GetValue("clusters.byType.unknown", kBlue));
for (size_t i = 0; i < trackCount; ++i) {
VisualisationTrack track = event.getTrack(i);
TEveRecTrackD t;
t.fSign = track.getCharge() > 0 ? 1 : -1;
auto* vistrack = new TEveTrack(&t, &TEveTrackPropagator::fgDefault);
vistrack->SetLineColor(settings.GetValue("tracks.byType.unknown", kMagenta));
vistrack->SetName(track.getGIDAsString().c_str());
size_t pointCount = track.getPointCount();
vistrack->Reset(pointCount);
int points = 0;
for (size_t j = 0; j < pointCount; ++j) {
auto point = track.getPoint(j);
if (point[2] > eta || point[2] < -1 * eta) {
vistrack->SetNextPoint(point[0], point[1], point[2]);
points++;
}
}
if (points > 0) {
list->AddElement(vistrack);
}
// clusters connected with track
for (size_t i = 0; i < track.getClusterCount(); ++i) {
VisualisationCluster cluster = track.getCluster(i);
if (cluster.Z() > eta || cluster.Z() < -1 * eta) { // temporary remove eta=0 artefacts
point_list->SetNextPoint(cluster.X(), cluster.Y(), cluster.Z());
clusterCount++;
}
}
}
if (trackCount != 0) {
dataTypeLists[EVisualisationDataType::Tracks]->AddElement(list);
if (detectorName != "MCH" && detectorName != "MFT" && detectorName != "MID") {
dataTypeListsPhi[EVisualisationDataType::Tracks]->AddElement(list);
}
}
// global clusters (with no connection information)
for (size_t i = 0; i < event.getClusterCount(); ++i) {
VisualisationCluster cluster = event.getCluster(i);
if (cluster.Z() > eta || cluster.Z() < -1 * eta) { // temporary remove eta=0 artefacts
point_list->SetNextPoint(cluster.X(), cluster.Y(), cluster.Z());
clusterCount++;
}
}
if (clusterCount != 0) {
dataTypeLists[EVisualisationDataType::Clusters]->AddElement(point_list);
if (detectorName != "MCH" && detectorName != "MFT" && detectorName != "MID") {
dataTypeListsPhi[EVisualisationDataType::Clusters]->AddElement(point_list);
}
}
LOGF(info, "tracks: ", trackCount, " detector: ", detectorName, ":",
dataTypeLists[EVisualisationDataType::Tracks]->NumChildren());
LOGF(info, "clusters: ", clusterCount, " detector: ", detectorName, ":",
dataTypeLists[EVisualisationDataType::Clusters]->NumChildren());
}
void EventManager::displayCalorimeters(VisualisationEvent& event, const std::string& detectorName)
{
if (event.getCaloCount() > 0) {
struct CaloInfo {
std::string name;
std::string configColor;
int defaultColor;
std::string configSizeEta;
float sizeEta;
std::string configSizePhi;
float sizePhi;
std::string configNoise;
float defaultNoise;
std::string configTransparency;
int defaultTransparency;
std::string configBarrelRadius;
int defaultBarrelRadius;
std::string configTowerMaxHeight;
float defaultTowerMaxHeight;
std::string configMaxValAbs;
float defaultMaxValAbs;
};
// TODO: calculate values based on info available in O2
static const std::unordered_map<o2::dataformats::GlobalTrackID::Source, CaloInfo> caloInfos =
{
{o2::dataformats::GlobalTrackID::EMC, {"emcal", "emcal.tower.color", kYellow, "emcal.tower.size.eta", 0.0143, "emcal.tower.size.phi", 0.0143, "emcal.tower.noise", 0, "emcal.tower.transparency", 101, "emcal.barrel.radius", 500, "emcal.tower.max.height", 80, "emcal.tower.max.val.abs", 100}},
{o2::dataformats::GlobalTrackID::PHS, {"phos", "phos.tower.color", kYellow, "phos.tower.size.eta", 0.0046, "phos.tower.size.phi", 0.00478, "phos.tower.noise", 200, "phos.tower.transparency", 101, "phos.barrel.radius", 550, "phos.tower.max.height", 80, "phos.tower.max.val.abs", 100}},
};
auto data = new TEveCaloDataVec(1);
data->IncDenyDestroy();
auto key = detectorName == "EMC" ? o2::dataformats::GlobalTrackID::EMC : o2::dataformats::GlobalTrackID::PHS;
const CaloInfo& info = caloInfos.at(key);
data->RefSliceInfo(0).Setup(info.name.c_str(),
settings.GetValue(info.configNoise.c_str(), info.defaultNoise),
settings.GetValue(info.configColor.c_str(), info.defaultColor),
settings.GetValue(info.configTransparency.c_str(), info.defaultTransparency));
const auto dEta = settings.GetValue(info.configSizeEta.c_str(), info.sizeEta) / 2.0;
const auto dPhi = settings.GetValue(info.configSizePhi.c_str(), info.sizePhi) / 2.0;
const float barrelRadius = settings.GetValue(info.configBarrelRadius.c_str(), info.defaultBarrelRadius);
struct pair_hash {
std::size_t operator()(const std::pair<float, float>& pair) const
{
return std::hash<float>()(pair.first + 1000.0 * pair.second);
}
};
std::unordered_map<std::pair<float, float>, float, pair_hash> map; // sum up entries for the same tower
for (const auto& calo : event.getCalorimetersSpan()) {
map[std::make_pair(calo.getEta(), calo.getPhi())] += calo.getEnergy();
}
for (const auto& entry : map) {
auto [eta, phi] = entry.first;
data->AddTower(eta - dEta, eta + dEta, phi - dPhi, phi + dPhi);
data->FillSlice(0, entry.second);
}
// remove artefacts
data->AddTower(-0.5, 0.5, -1.574 - 0.1, -1.574 + 0.1);
data->AddTower(-0.5, 0.5, 1.574 - 0.1, 1.574 + 0.1);
data->AddTower(-0.5, 0.5, -0.593 - 0.1, -0.593 + 0.1);
data->AddTower(-0.5, 0.5, -0.726 - 0.1, -0.726 + 0.1);
data->AddTower(-0.5, 0.5, -3.028 - 0.1, -3.028 + 0.1);
data->AddTower(-0.5, 0.5, -1.915 - 0.1, -1.915 + 0.1);
data->DataChanged();
data->SetAxisFromBins();
auto calo3d = new TEveCalo3D(data);
calo3d->SetName(detectorName.c_str());
calo3d->SetScaleAbs(kTRUE);
calo3d->SetMaxTowerH(settings.GetValue(info.configTowerMaxHeight.c_str(), info.defaultTowerMaxHeight));
calo3d->SetMaxValAbs(settings.GetValue(info.configMaxValAbs.c_str(), info.defaultMaxValAbs));
// calo3d->SetAutoRange(kTRUE);
calo3d->SetBarrelRadius(barrelRadius);
calo3d->SetEndCapPos(barrelRadius);
calo3d->SetRnrFrame(false, false); // do not draw barrel grid
dataTypeLists[EVisualisationDataType::Calorimeters]->AddElement(calo3d);
dataTypeListsPhi[EVisualisationDataType::Calorimeters]->AddElement(calo3d);
}
}
void EventManager::saveVisualisationSettings()
{
const auto& tracks = *dataTypeLists[EVisualisationDataType::Tracks];
for (auto elm : tracks.RefChildren()) {
auto trackList = static_cast<TEveTrackList*>(elm);
int i = findGroupIndex(trackList->GetElementName());
if (i != -1) {
vizSettings.trackVisibility[i] = trackList->GetRnrSelf();
vizSettings.trackColor[i] = trackList->GetLineColor();
vizSettings.trackStyle[i] = trackList->GetLineStyle();
vizSettings.trackWidth[i] = trackList->GetLineWidth();
}
}
const auto& clusters = *dataTypeLists[EVisualisationDataType::Clusters];
for (auto elm : clusters.RefChildren()) {
auto clusterSet = static_cast<TEvePointSet*>(elm);
int i = findGroupIndex(clusterSet->GetElementName());
if (i != -1) {
vizSettings.clusterVisibility[i] = clusterSet->GetRnrSelf();
vizSettings.clusterColor[i] = clusterSet->GetMarkerColor();
vizSettings.clusterStyle[i] = clusterSet->GetMarkerStyle();
vizSettings.clusterSize[i] = clusterSet->GetMarkerSize();
}
}
ofstream settings(TEMP_SETTINGS_PATH);
if (settings.good()) {
Document d;
d.SetObject();
auto& allocator = d.GetAllocator();
auto jsonArray = [](const auto& array, auto& allocator) {
Value arr(kArrayType);
for (const auto& value : array) {
arr.PushBack(value, allocator);
}
return arr;
};
std::string version = std::to_string(o2_eve_version / 100.0);
d.AddMember("version", rapidjson::Value().SetString(version.c_str(), version.length()), allocator); // obsolete
d.AddMember("trackVisibility", jsonArray(vizSettings.trackVisibility, allocator), allocator);
d.AddMember("trackColor", jsonArray(vizSettings.trackColor, allocator), allocator);
d.AddMember("trackStyle", jsonArray(vizSettings.trackStyle, allocator), allocator);
d.AddMember("trackWidth", jsonArray(vizSettings.trackWidth, allocator), allocator);
d.AddMember("clusterVisibility", jsonArray(vizSettings.clusterVisibility, allocator), allocator);
d.AddMember("clusterColor", jsonArray(vizSettings.clusterColor, allocator), allocator);
d.AddMember("clusterStyle", jsonArray(vizSettings.clusterStyle, allocator), allocator);
d.AddMember("clusterSize", jsonArray(vizSettings.clusterSize, allocator), allocator);
auto jsonCamera = [&jsonArray](MultiView::EViews view, auto& allocator) {
Value obj(kObjectType);
auto& camera = MultiView::getInstance()->getView(view)->GetGLViewer()->CurrentCamera();
const gsl::span baseSpan(camera.RefCamBase().CArr(), 16);
obj.AddMember("base", jsonArray(baseSpan, allocator), allocator);
const gsl::span transSpan(camera.GetCamTrans().CArr(), 16);
obj.AddMember("trans", jsonArray(transSpan, allocator), allocator);
if (camera.IsOrthographic()) {
obj.AddMember("zoom", dynamic_cast<TGLOrthoCamera&>(camera).GetZoom(), allocator);
} else if (camera.IsPerspective()) {
obj.AddMember("fov", dynamic_cast<TGLPerspectiveCamera&>(camera).GetFOV(), allocator);
}
return obj;
};
d.AddMember("camera3d", jsonCamera(MultiView::View3d, allocator), allocator);
d.AddMember("cameraRphi", jsonCamera(MultiView::ViewRphi, allocator), allocator);
d.AddMember("cameraZY", jsonCamera(MultiView::ViewZY, allocator), allocator);
StringBuffer strbuf;
Writer<StringBuffer> writer(strbuf);
d.Accept(writer);
settings << strbuf.GetString();
}
}
void EventManager::restoreVisualisationSettings()
{
ifstream settings(TEMP_SETTINGS_PATH);
if (settings.good()) {
string json((istreambuf_iterator<char>(settings)), istreambuf_iterator<char>());
Document d;
d.Parse(json.c_str());
std::string version = std::to_string(o2_eve_version / 100.0);
if (VisualisationEventJSONSerializer::getStringOrDefault(d, "version", "0.0") != version) {
LOGF(info, "visualisation settings has wrong version and was not restored");
return;
}
auto updateArray = [](auto& array, const auto& document, const char* name, const auto& accessor) {
for (size_t i = 0; i < elemof(array); ++i) {
array[i] = accessor(document[name][i]);
}
};
auto getBool = [](const GenericValue<UTF8<char>>& v) { return v.GetBool(); };
auto getUint = [](const GenericValue<UTF8<char>>& v) { return v.GetUint(); };
auto getFloat = [](const GenericValue<UTF8<char>>& v) { return v.GetFloat(); };
updateArray(vizSettings.trackVisibility, d, "trackVisibility", getBool);
updateArray(vizSettings.trackColor, d, "trackColor", getUint);
updateArray(vizSettings.trackStyle, d, "trackStyle", getUint);
updateArray(vizSettings.trackWidth, d, "trackWidth", getUint);
updateArray(vizSettings.clusterVisibility, d, "clusterVisibility", getBool);
updateArray(vizSettings.clusterColor, d, "clusterColor", getUint);
updateArray(vizSettings.clusterStyle, d, "clusterStyle", getUint);
updateArray(vizSettings.clusterSize, d, "clusterSize", getFloat);
auto updateCamera = [getFloat](MultiView::EViews view, const auto& document, const char* name) {
auto& camera = MultiView::getInstance()->getView(view)->GetGLViewer()->CurrentCamera();
std::array<Double_t, 16> values;
for (size_t i = 0; i < values.size(); ++i) {
values[i] = getFloat(document[name]["base"][i]);
}
camera.RefCamBase() = TGLMatrix(values.data());
for (size_t i = 0; i < values.size(); ++i) {
values[i] = getFloat(document[name]["trans"][i]);
}
camera.RefCamTrans() = TGLMatrix(values.data());
if (camera.IsOrthographic()) {
dynamic_cast<TGLOrthoCamera&>(camera).SetZoom(getFloat(document[name]["zoom"]));
} else if (camera.IsPerspective()) {
dynamic_cast<TGLPerspectiveCamera&>(camera).SetFOV(getFloat(document[name]["fov"]));
}
camera.IncTimeStamp();
};
updateCamera(MultiView::View3d, d, "camera3d");
updateCamera(MultiView::ViewRphi, d, "cameraRphi");
updateCamera(MultiView::ViewZY, d, "cameraZY");
}
const auto& tracks = *dataTypeLists[EVisualisationDataType::Tracks];
for (auto elm : tracks.RefChildren()) {
auto trackList = static_cast<TEveTrackList*>(elm);
int i = findGroupIndex(trackList->GetElementName());
if (i != -1) {
const auto viz = vizSettings.trackVisibility[i];
trackList->SetRnrSelfChildren(viz, viz);
trackList->SetLineColor(vizSettings.trackColor[i]);
trackList->SetLineStyle(vizSettings.trackStyle[i]);
trackList->SetLineWidth(vizSettings.trackWidth[i]);
}
}
const auto& clusters = *dataTypeLists[EVisualisationDataType::Clusters];
for (auto elm : clusters.RefChildren()) {
auto clusterSet = static_cast<TEvePointSet*>(elm);
int i = findGroupIndex(clusterSet->GetElementName());
if (i != -1) {
const auto viz = vizSettings.clusterVisibility[i];
clusterSet->SetRnrSelfChildren(viz, viz);
clusterSet->SetMarkerColor(vizSettings.clusterColor[i]);
clusterSet->SetMarkerStyle(vizSettings.clusterStyle[i]);
clusterSet->SetMarkerSize(vizSettings.clusterSize[i]);
}
}
MultiView::getInstance()->redraw3D();
}
} // namespace event_visualisation
} // namespace o2