Skip to content

Commit

Permalink
Merge pull request #46991 from smuzaffar/visualization-code-checks1
Browse files Browse the repository at this point in the history
[VISUALIZATION] Apply code checks/format
  • Loading branch information
cmsbuild authored Jan 6, 2025
2 parents a5c2d46 + 1da3c10 commit 46d2171
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
13 changes: 7 additions & 6 deletions Fireworks/Core/src/FWEveViewManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// system include files

#include <functional>
#include <memory>

// user include files
#include "TEveManager.h"
Expand Down Expand Up @@ -278,25 +279,25 @@ FWViewBase* FWEveViewManager::buildView(TEveWindowSlot* iParent, const std::stri
std::shared_ptr<FWEveView> view;
switch (type) {
case FWViewType::k3D:
view.reset(new FW3DView(iParent, type));
view = std::make_shared<FW3DView>(iParent, type);
break;
case FWViewType::kISpy:
view.reset(new FWISpyView(iParent, type));
view = std::make_shared<FWISpyView>(iParent, type);
break;
case FWViewType::kRhoPhi:
case FWViewType::kRhoZ:
case FWViewType::kRhoPhiPF:
view.reset(new FWRPZView(iParent, type));
view = std::make_shared<FWRPZView>(iParent, type);
break;
case FWViewType::kLego:
case FWViewType::kLegoPFECAL:
view.reset(new FWEveLegoView(iParent, type));
view = std::make_shared<FWEveLegoView>(iParent, type);
break;
case FWViewType::kLegoHF:
view.reset(new FWHFView(iParent, type));
view = std::make_shared<FWHFView>(iParent, type);
break;
case FWViewType::kGlimpse:
view.reset(new FWGlimpseView(iParent, type));
view = std::make_shared<FWGlimpseView>(iParent, type);
break;
default:
break;
Expand Down
5 changes: 3 additions & 2 deletions Fireworks/Core/src/FWGeometryTableViewManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
//

#include <functional>
#include <memory>

#include "TFile.h"
#include "TSystem.h"
Expand Down Expand Up @@ -48,9 +49,9 @@ FWViewBase* FWGeometryTableViewManager::buildView(TEveWindowSlot* iParent, const
FWViewType::EType typeId =
(type == FWViewType::sName[FWViewType::kGeometryTable]) ? FWViewType::kGeometryTable : FWViewType::kOverlapTable;
if (typeId == FWViewType::kGeometryTable)
view.reset(new FWGeometryTableView(iParent, &colorManager()));
view = std::make_shared<FWGeometryTableView>(iParent, &colorManager());
else
view.reset(new FWOverlapTableView(iParent, &colorManager()));
view = std::make_shared<FWOverlapTableView>(iParent, &colorManager());

view->setBackgroundColor();
m_views.push_back(std::shared_ptr<FWGeometryTableViewBase>(view));
Expand Down
7 changes: 4 additions & 3 deletions Fireworks/Core/src/FWTriggerTableViewManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@

// system include files
#include <cassert>
#include <iostream>
#include <functional>
#include <iostream>
#include <memory>

// user include files

Expand All @@ -39,9 +40,9 @@ class FWViewBase* FWTriggerTableViewManager::buildView(TEveWindowSlot* iParent,
std::shared_ptr<FWTriggerTableView> view;

if (type == FWViewType::sName[FWViewType::kTableHLT])
view.reset(new FWHLTTriggerTableView(iParent));
view = std::make_shared<FWHLTTriggerTableView>(iParent);
else
view.reset(new FWL1TriggerTableView(iParent));
view = std::make_shared<FWL1TriggerTableView>(iParent);

view->setProcessList(&(context().metadataManager()->processNamesInJob()));

Expand Down

0 comments on commit 46d2171

Please sign in to comment.