CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
FWTriggerTableViewManager Class Reference

#include <FWTriggerTableViewManager.h>

Inheritance diagram for FWTriggerTableViewManager:
FWViewManagerBase FWConfigurable

Public Member Functions

void addTo (FWConfiguration &) const override
 
FWViewBasebuildView (TEveWindowSlot *iParent, const std::string &type)
 
 FWTriggerTableViewManager (FWGUIManager *)
 
void newItem (const FWEventItem *) override
 
void setFrom (const FWConfiguration &) override
 
FWTypeToRepresentations supportedTypesAndRepresentations () const override
 
 ~FWTriggerTableViewManager () override
 
- Public Member Functions inherited from FWViewManagerBase
void colorsChangedSlot ()
 
const fireworks::Contextcontext () const
 
virtual void eventBegin ()
 
void modelChangesComingSlot ()
 
void modelChangesDoneSlot ()
 
void setChangeManager (FWModelChangeManager *iCM)
 
void setColorManager (FWColorManager *iCM)
 
virtual void setContext (const fireworks::Context *x)
 
virtual ~FWViewManagerBase ()
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
virtual ~FWConfigurable ()
 

Protected Member Functions

void colorsChanged () override
 
void eventEnd () override
 
 FWTriggerTableViewManager ()
 
void modelChangesComing () override
 
void modelChangesDone () override
 
void updateProcessList ()
 
- Protected Member Functions inherited from FWViewManagerBase
FWModelChangeManagerchangeManager () const
 
FWColorManagercolorManager () const
 
void * createInstanceOf (const TClass *iBaseClass, const char *iNameOfClass)
 
 FWViewManagerBase ()
 

Protected Attributes

std::vector< std::shared_ptr< FWTriggerTableView > > m_views
 

Private Member Functions

void beingDestroyed (const FWViewBase *)
 
 FWTriggerTableViewManager (const FWTriggerTableViewManager &)
 
const FWTriggerTableViewManageroperator= (const FWTriggerTableViewManager &)
 

Detailed Description

Definition at line 21 of file FWTriggerTableViewManager.h.

Constructor & Destructor Documentation

◆ FWTriggerTableViewManager() [1/3]

FWTriggerTableViewManager::FWTriggerTableViewManager ( FWGUIManager iGUIMgr)

◆ ~FWTriggerTableViewManager()

FWTriggerTableViewManager::~FWTriggerTableViewManager ( )
override

Definition at line 36 of file FWTriggerTableViewManager.cc.

36 {}

◆ FWTriggerTableViewManager() [2/3]

FWTriggerTableViewManager::FWTriggerTableViewManager ( )
protected

◆ FWTriggerTableViewManager() [3/3]

FWTriggerTableViewManager::FWTriggerTableViewManager ( const FWTriggerTableViewManager )
private

Member Function Documentation

◆ addTo()

void FWTriggerTableViewManager::addTo ( FWConfiguration ) const
inlineoverridevirtual

Implements FWConfigurable.

Definition at line 31 of file FWTriggerTableViewManager.h.

31 {}

◆ beingDestroyed()

void FWTriggerTableViewManager::beingDestroyed ( const FWViewBase iView)
private

Definition at line 54 of file FWTriggerTableViewManager.cc.

54  {
55  for (std::vector<std::shared_ptr<FWTriggerTableView> >::iterator it = m_views.begin(), itEnd = m_views.end();
56  it != itEnd;
57  ++it) {
58  if (it->get() == iView) {
59  m_views.erase(it);
60  return;
61  }
62  }
63 }

References m_views, and trackerHitRTTI::vector.

Referenced by buildView().

◆ buildView()

class FWViewBase * FWTriggerTableViewManager::buildView ( TEveWindowSlot *  iParent,
const std::string &  type 
)

Definition at line 38 of file FWTriggerTableViewManager.cc.

38  {
39  std::shared_ptr<FWTriggerTableView> view;
40 
42  view.reset(new FWHLTTriggerTableView(iParent));
43  else
44  view.reset(new FWL1TriggerTableView(iParent));
45 
46  view->setProcessList(&(context().metadataManager()->processNamesInJob()));
47 
48  view->setBackgroundColor(colorManager().background());
49  m_views.push_back(std::shared_ptr<FWTriggerTableView>(view));
50  view->beingDestroyed_.connect(std::bind(&FWTriggerTableViewManager::beingDestroyed, this, std::placeholders::_1));
51  return view.get();
52 }

References beingDestroyed(), FWViewManagerBase::colorManager(), FWViewManagerBase::context(), FWViewType::kTableHLT, m_views, and FWViewType::sName.

Referenced by FWTriggerTableViewManager().

◆ colorsChanged()

void FWTriggerTableViewManager::colorsChanged ( )
overrideprotectedvirtual

Implements FWViewManagerBase.

Definition at line 65 of file FWTriggerTableViewManager.cc.

65  {
66  for (std::vector<std::shared_ptr<FWTriggerTableView> >::iterator it = m_views.begin(), itEnd = m_views.end();
67  it != itEnd;
68  ++it) {
69  (*it)->setBackgroundColor(colorManager().background());
70  }
71 }

References FWViewManagerBase::colorManager(), m_views, and trackerHitRTTI::vector.

◆ eventEnd()

void FWTriggerTableViewManager::eventEnd ( )
overrideprotectedvirtual

Reimplemented from FWViewManagerBase.

Definition at line 73 of file FWTriggerTableViewManager.cc.

73  {
74  for (std::vector<std::shared_ptr<FWTriggerTableView> >::iterator it = m_views.begin(), itEnd = m_views.end();
75  it != itEnd;
76  ++it) {
77  (*it)->dataChanged();
78  }
79 }

References m_views, and trackerHitRTTI::vector.

◆ modelChangesComing()

void FWTriggerTableViewManager::modelChangesComing ( )
inlineoverrideprotectedvirtual

called when models have changed and so the display must be updated

Implements FWViewManagerBase.

Definition at line 40 of file FWTriggerTableViewManager.h.

40 {}

◆ modelChangesDone()

void FWTriggerTableViewManager::modelChangesDone ( )
inlineoverrideprotectedvirtual

Implements FWViewManagerBase.

Definition at line 41 of file FWTriggerTableViewManager.h.

41 {}

◆ newItem()

void FWTriggerTableViewManager::newItem ( const FWEventItem )
inlineoverridevirtual

Implements FWViewManagerBase.

Definition at line 28 of file FWTriggerTableViewManager.h.

28 {}

◆ operator=()

const FWTriggerTableViewManager& FWTriggerTableViewManager::operator= ( const FWTriggerTableViewManager )
private

◆ setFrom()

void FWTriggerTableViewManager::setFrom ( const FWConfiguration )
inlineoverridevirtual

Implements FWConfigurable.

Definition at line 32 of file FWTriggerTableViewManager.h.

32 {}

◆ supportedTypesAndRepresentations()

FWTypeToRepresentations FWTriggerTableViewManager::supportedTypesAndRepresentations ( ) const
inlineoverridevirtual

Implements FWViewManagerBase.

Definition at line 27 of file FWTriggerTableViewManager.h.

27 { return FWTypeToRepresentations(); }

◆ updateProcessList()

void FWTriggerTableViewManager::updateProcessList ( )
protected

Definition at line 81 of file FWTriggerTableViewManager.cc.

81  {
82  // printf("FWTriggerTableViewManager::updateProcessLi\n");
83  for (std::vector<std::shared_ptr<FWTriggerTableView> >::iterator it = m_views.begin(), itEnd = m_views.end();
84  it != itEnd;
85  ++it) {
86  (*it)->setProcessList(&(context().metadataManager()->processNamesInJob()));
87  (*it)->resetCombo();
88  }
89 }

References FWViewManagerBase::context(), m_views, and trackerHitRTTI::vector.

Member Data Documentation

◆ m_views

std::vector<std::shared_ptr<FWTriggerTableView> > FWTriggerTableViewManager::m_views
protected
FWHLTTriggerTableView
Definition: FWHLTTriggerTableView.h:30
FWViewType::idToName
static const std::string & idToName(int)
Definition: FWViewType.cc:72
FWGUIManager::registerViewBuilder
void registerViewBuilder(const std::string &iName, ViewBuildFunctor &iBuilder)
Definition: FWGUIManager.cc:273
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
FWViewManagerBase::colorManager
FWColorManager & colorManager() const
Definition: FWViewManagerBase.cc:123
FWTriggerTableViewManager::m_views
std::vector< std::shared_ptr< FWTriggerTableView > > m_views
Definition: FWTriggerTableViewManager.h:48
FWViewType::kTableL1
Definition: FWViewType.h:40
FWViewType::sName
static std::string sName[kTypeSize]
Definition: FWViewType.h:71
FWTriggerTableViewManager::beingDestroyed
void beingDestroyed(const FWViewBase *)
Definition: FWTriggerTableViewManager.cc:54
FWViewManagerBase::FWViewManagerBase
FWViewManagerBase()
Definition: FWViewManagerBase.cc:36
FWGUIManager::ViewBuildFunctor
std::function< FWViewBase *(TEveWindowSlot *, const std::string &)> ViewBuildFunctor
Definition: FWGUIManager.h:98
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
FWViewType::kTableHLT
Definition: FWViewType.h:41
FWTypeToRepresentations
Definition: FWTypeToRepresentations.h:33
FWTriggerTableViewManager::buildView
FWViewBase * buildView(TEveWindowSlot *iParent, const std::string &type)
Definition: FWTriggerTableViewManager.cc:38
FWViewManagerBase::context
const fireworks::Context & context() const
Definition: FWViewManagerBase.h:69
FWL1TriggerTableView
Definition: FWL1TriggerTableView.h:25