CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWModelIdFromEveSelector.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Core
4 // Class : FWModelIdFromEveSelector
5 //
6 // Implementation:
7 // [Notes on implementation]
8 //
9 // Original Author: Chris Jones
10 // Created: Wed Oct 28 11:44:16 CET 2009
11 // $Id: FWModelIdFromEveSelector.cc,v 1.1 2009/10/28 14:36:58 chrjones Exp $
12 //
13 
14 // system include files
15 
16 // user include files
19 
20 
21 //
22 // constants, enums and typedefs
23 //
24 
25 //
26 // static data member definitions
27 //
28 
29 //
30 // constructors and destructor
31 //
32 //FWModelIdFromEveSelector::FWModelIdFromEveSelector()
33 //{
34 //}
35 
36 // FWModelIdFromEveSelector::FWModelIdFromEveSelector(const FWModelIdFromEveSelector& rhs)
37 // {
38 // // do actual copying here;
39 // }
40 
41 //FWModelIdFromEveSelector::~FWModelIdFromEveSelector()
42 //{
43 //}
44 
45 //
46 // assignment operators
47 //
48 // const FWModelIdFromEveSelector& FWModelIdFromEveSelector::operator=(const FWModelIdFromEveSelector& rhs)
49 // {
50 // //An exception safe implementation is
51 // FWModelIdFromEveSelector temp(rhs);
52 // swap(rhs);
53 //
54 // return *this;
55 // }
56 
57 //
58 // member functions
59 //
60 void
62 {
63  if( not m_id.item()->modelInfo(m_id.index()).isSelected() ) {
64  m_id.select();
65  }
66 }
67 
68 void
70 {
71  if( m_id.item()->modelInfo(m_id.index()).isSelected() ) {
72  m_id.unselect();
73  }
74 }
75 
76 //
77 // const member functions
78 //
79 
80 //
81 // static member functions
82 //
void unselect() const
Definition: FWModelId.cc:68
int index() const
Definition: FWModelId.h:50
void select() const
Definition: FWModelId.cc:72
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:535
const FWEventItem * item() const
Definition: FWModelId.h:45