CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
FWSecondarySelectableSelector Class Reference
Inheritance diagram for FWSecondarySelectableSelector:
FWFromEveSelectorBase

Public Member Functions

void doSelect () override
 
void doUnselect () override
 
 FWSecondarySelectableSelector (const TEveSecondarySelectable::SelectionSet_t &s, const FWEventItem *i)
 
const FWEventItemitem () const
 
 ~FWSecondarySelectableSelector () override
 
- Public Member Functions inherited from FWFromEveSelectorBase
 FWFromEveSelectorBase ()
 
virtual ~FWFromEveSelectorBase ()
 

Private Member Functions

void syncSelection ()
 

Private Attributes

const FWEventItemm_item
 
const TEveSecondarySelectable::SelectionSet_t & m_selected
 

Detailed Description

Definition at line 27 of file FWDigitSetProxyBuilder.cc.

Constructor & Destructor Documentation

◆ FWSecondarySelectableSelector()

FWSecondarySelectableSelector::FWSecondarySelectableSelector ( const TEveSecondarySelectable::SelectionSet_t &  s,
const FWEventItem i 
)
inline

Definition at line 29 of file FWDigitSetProxyBuilder.cc.

30  : m_selected(s), m_item(i) {}

◆ ~FWSecondarySelectableSelector()

FWSecondarySelectableSelector::~FWSecondarySelectableSelector ( )
inlineoverride

Definition at line 31 of file FWDigitSetProxyBuilder.cc.

31 {}

Member Function Documentation

◆ doSelect()

void FWSecondarySelectableSelector::doSelect ( )
inlineoverridevirtual

Implements FWFromEveSelectorBase.

Definition at line 33 of file FWDigitSetProxyBuilder.cc.

33 { syncSelection(); }

References syncSelection().

◆ doUnselect()

void FWSecondarySelectableSelector::doUnselect ( )
inlineoverridevirtual

Implements FWFromEveSelectorBase.

Definition at line 35 of file FWDigitSetProxyBuilder.cc.

35 { syncSelection(); }

References syncSelection().

◆ item()

const FWEventItem* FWSecondarySelectableSelector::item ( ) const
inline

Definition at line 37 of file FWDigitSetProxyBuilder.cc.

37 { return m_item; }

References m_item.

◆ syncSelection()

void FWSecondarySelectableSelector::syncSelection ( )
inlineprivate

Definition at line 43 of file FWDigitSetProxyBuilder.cc.

43  {
44  size_t size = m_item->size();
45  for (size_t i = 0; i < size; ++i) {
47  TEveSecondarySelectable::SelectionSet_ci si = m_selected.find(i);
48  if ((si != m_selected.end()) != modelInfo.isSelected()) {
49  if (si != m_selected.end())
50  m_item->select(i);
51  else
52  m_item->unselect(i);
53  }
54  }
55  }

References mps_fire::i, FWEventItem::ModelInfo::isSelected(), m_item, m_selected, FWEventItem::modelInfo(), FWEventItem::select(), FWEventItem::size(), findQualityFiles::size, and FWEventItem::unselect().

Referenced by doSelect(), and doUnselect().

Member Data Documentation

◆ m_item

const FWEventItem* FWSecondarySelectableSelector::m_item
private

Definition at line 41 of file FWDigitSetProxyBuilder.cc.

Referenced by item(), and syncSelection().

◆ m_selected

const TEveSecondarySelectable::SelectionSet_t& FWSecondarySelectableSelector::m_selected
private

Definition at line 40 of file FWDigitSetProxyBuilder.cc.

Referenced by syncSelection().

FWEventItem::modelInfo
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:446
mps_fire.i
i
Definition: mps_fire.py:355
FWEventItem::select
void select(int iIndex) const
Definition: FWEventItem.cc:224
FWEventItem::ModelInfo
Definition: FWEventItem.h:58
alignCSCRings.s
s
Definition: alignCSCRings.py:92
FWEventItem::unselect
void unselect(int iIndex) const
Definition: FWEventItem.cc:215
FWEventItem::ModelInfo::isSelected
bool isSelected() const
Definition: FWEventItem.h:65
FWSecondarySelectableSelector::m_selected
const TEveSecondarySelectable::SelectionSet_t & m_selected
Definition: FWDigitSetProxyBuilder.cc:40
FWSecondarySelectableSelector::syncSelection
void syncSelection()
Definition: FWDigitSetProxyBuilder.cc:43
FWSecondarySelectableSelector::m_item
const FWEventItem * m_item
Definition: FWDigitSetProxyBuilder.cc:41
FWEventItem::size
size_t size() const
Definition: FWEventItem.cc:457
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443