CMS 3D CMS Logo

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

#include <Fireworks/Core/interface/FWModelIdFromEveSelector.h>

Inheritance diagram for FWModelIdFromEveSelector:
FWFromEveSelectorBase

Public Member Functions

void doSelect () override
 
void doUnselect () override
 
 FWModelIdFromEveSelector (const FWModelId &iId=FWModelId())
 
const FWModelIdid () const
 
 operator FWModelId () const
 
- Public Member Functions inherited from FWFromEveSelectorBase
 FWFromEveSelectorBase ()
 
virtual ~FWFromEveSelectorBase ()
 

Private Attributes

FWModelId m_id
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 29 of file FWModelIdFromEveSelector.h.

Constructor & Destructor Documentation

◆ FWModelIdFromEveSelector()

FWModelIdFromEveSelector::FWModelIdFromEveSelector ( const FWModelId iId = FWModelId())
inline

Definition at line 31 of file FWModelIdFromEveSelector.h.

31 : m_id(iId) {}

Member Function Documentation

◆ doSelect()

void FWModelIdFromEveSelector::doSelect ( )
overridevirtual

Implements FWFromEveSelectorBase.

Definition at line 58 of file FWModelIdFromEveSelector.cc.

References FWModelId::index(), isSelected(), FWModelId::item(), m_id, FWEventItem::modelInfo(), and FWModelId::select().

58  {
59  if (not m_id.item()->modelInfo(m_id.index()).isSelected()) {
60  m_id.select();
61  }
62 }
void select() const
Definition: FWModelId.cc:70
int index() const
Definition: FWModelId.h:41
const FWEventItem * item() const
Definition: FWModelId.h:39
bool isSelected(const std::vector< L1HPSPFTauQualityCut > &qualityCuts, const l1t::PFCandidate &pfCand, float_t primaryVertexZ)
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:446

◆ doUnselect()

void FWModelIdFromEveSelector::doUnselect ( )
overridevirtual

Implements FWFromEveSelectorBase.

Definition at line 64 of file FWModelIdFromEveSelector.cc.

References FWModelId::index(), isSelected(), FWModelId::item(), m_id, FWEventItem::modelInfo(), and FWModelId::unselect().

64  {
65  if (m_id.item()->modelInfo(m_id.index()).isSelected()) {
66  m_id.unselect();
67  }
68 }
int index() const
Definition: FWModelId.h:41
const FWEventItem * item() const
Definition: FWModelId.h:39
void unselect() const
Definition: FWModelId.cc:65
bool isSelected(const std::vector< L1HPSPFTauQualityCut > &qualityCuts, const l1t::PFCandidate &pfCand, float_t primaryVertexZ)
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:446

◆ id()

const FWModelId& FWModelIdFromEveSelector::id ( void  ) const
inline

Definition at line 36 of file FWModelIdFromEveSelector.h.

References m_id.

36 { return m_id; }

◆ operator FWModelId()

FWModelIdFromEveSelector::operator FWModelId ( ) const
inline

Definition at line 34 of file FWModelIdFromEveSelector.h.

References m_id.

34 { return m_id; }

Member Data Documentation

◆ m_id

FWModelId FWModelIdFromEveSelector::m_id
private

Definition at line 50 of file FWModelIdFromEveSelector.h.

Referenced by doSelect(), doUnselect(), id(), and operator FWModelId().