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 ()
 
 FWViewManagerBase (const FWViewManagerBase &)=delete
 
void modelChangesComingSlot ()
 
void modelChangesDoneSlot ()
 
const FWViewManagerBaseoperator= (const FWViewManagerBase &)=delete
 
void setChangeManager (FWModelChangeManager *iCM)
 
void setColorManager (FWColorManager *iCM)
 
virtual void setContext (const fireworks::Context *x)
 
virtual ~FWViewManagerBase ()
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
 FWConfigurable (const FWConfigurable &)=delete
 
const FWConfigurableoperator= (const FWConfigurable &)=delete
 
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)

Definition at line 29 of file FWTriggerTableViewManager.cc.

References buildView(), f, FWViewType::idToName(), FWViewType::kTableHLT, FWViewType::kTableL1, and FWGUIManager::registerViewBuilder().

29  : FWViewManagerBase() {
31  f = std::bind(&FWTriggerTableViewManager::buildView, this, std::placeholders::_1, std::placeholders::_2);
34 }
FWViewBase * buildView(TEveWindowSlot *iParent, const std::string &type)
void registerViewBuilder(const std::string &iName, ViewBuildFunctor &iBuilder)
double f[11][100]
std::function< FWViewBase *(TEveWindowSlot *, const std::string &)> ViewBuildFunctor
Definition: FWGUIManager.h:98
static const std::string & idToName(int)
Definition: FWViewType.cc:72

◆ ~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.

References m_views, and trackerHitRTTI::vector.

Referenced by buildView().

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 }
std::vector< std::shared_ptr< FWTriggerTableView > > m_views

◆ buildView()

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

Definition at line 38 of file FWTriggerTableViewManager.cc.

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

Referenced by FWTriggerTableViewManager().

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 }
std::vector< std::shared_ptr< FWTriggerTableView > > m_views
void beingDestroyed(const FWViewBase *)
FWColorManager & colorManager() const
static std::string sName[kTypeSize]
Definition: FWViewType.h:71
const fireworks::Context & context() const

◆ colorsChanged()

void FWTriggerTableViewManager::colorsChanged ( )
overrideprotectedvirtual

Implements FWViewManagerBase.

Definition at line 65 of file FWTriggerTableViewManager.cc.

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

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 }
std::vector< std::shared_ptr< FWTriggerTableView > > m_views
FWColorManager & colorManager() const

◆ eventEnd()

void FWTriggerTableViewManager::eventEnd ( )
overrideprotectedvirtual

Reimplemented from FWViewManagerBase.

Definition at line 73 of file FWTriggerTableViewManager.cc.

References m_views, and trackerHitRTTI::vector.

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 }
std::vector< std::shared_ptr< FWTriggerTableView > > m_views

◆ 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

◆ updateProcessList()

void FWTriggerTableViewManager::updateProcessList ( )
protected

Definition at line 81 of file FWTriggerTableViewManager.cc.

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

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 }
std::vector< std::shared_ptr< FWTriggerTableView > > m_views
const fireworks::Context & context() const

Member Data Documentation

◆ m_views

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