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 28 of file FWDigitSetProxyBuilder.cc.

Constructor & Destructor Documentation

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

Definition at line 31 of file FWDigitSetProxyBuilder.cc.

31 : m_selected(s), m_item(i) {}
const TEveSecondarySelectable::SelectionSet_t & m_selected
FWSecondarySelectableSelector::~FWSecondarySelectableSelector ( )
inlineoverride

Definition at line 32 of file FWDigitSetProxyBuilder.cc.

32 {}

Member Function Documentation

void FWSecondarySelectableSelector::doSelect ( )
inlineoverridevirtual

Implements FWFromEveSelectorBase.

Definition at line 34 of file FWDigitSetProxyBuilder.cc.

References syncSelection().

void FWSecondarySelectableSelector::doUnselect ( )
inlineoverridevirtual

Implements FWFromEveSelectorBase.

Definition at line 39 of file FWDigitSetProxyBuilder.cc.

References syncSelection().

const FWEventItem* FWSecondarySelectableSelector::item ( ) const
inline
void FWSecondarySelectableSelector::syncSelection ( )
inlineprivate

Definition at line 50 of file FWDigitSetProxyBuilder.cc.

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

Referenced by doSelect(), and doUnselect().

51  {
52  size_t size = m_item->size();
53  for (size_t i = 0; i < size; ++i)
54  {
56  TEveSecondarySelectable::SelectionSet_ci si = m_selected.find(i);
57  if ((si != m_selected.end()) != modelInfo.isSelected() )
58  {
59  if (si != m_selected.end())
60  m_item->select(i);
61  else
62  m_item->unselect(i);
63  }
64  }
65  }
size
Write out results.
bool isSelected() const
Definition: FWEventItem.h:71
void unselect(int iIndex) const
Definition: FWEventItem.cc:241
size_t size() const
Definition: FWEventItem.cc:550
const TEveSecondarySelectable::SelectionSet_t & m_selected
void select(int iIndex) const
Definition: FWEventItem.cc:252
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:537

Member Data Documentation

const FWEventItem* FWSecondarySelectableSelector::m_item
private

Definition at line 48 of file FWDigitSetProxyBuilder.cc.

Referenced by item().

const TEveSecondarySelectable::SelectionSet_t& FWSecondarySelectableSelector::m_selected
private

Definition at line 47 of file FWDigitSetProxyBuilder.cc.