test
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 //
12 
13 // system include files
14 
15 // user include files
18 
19 
20 //
21 // constants, enums and typedefs
22 //
23 
24 //
25 // static data member definitions
26 //
27 
28 //
29 // constructors and destructor
30 //
31 //FWModelIdFromEveSelector::FWModelIdFromEveSelector()
32 //{
33 //}
34 
35 // FWModelIdFromEveSelector::FWModelIdFromEveSelector(const FWModelIdFromEveSelector& rhs)
36 // {
37 // // do actual copying here;
38 // }
39 
40 //FWModelIdFromEveSelector::~FWModelIdFromEveSelector()
41 //{
42 //}
43 
44 //
45 // assignment operators
46 //
47 // const FWModelIdFromEveSelector& FWModelIdFromEveSelector::operator=(const FWModelIdFromEveSelector& rhs)
48 // {
49 // //An exception safe implementation is
50 // FWModelIdFromEveSelector temp(rhs);
51 // swap(rhs);
52 //
53 // return *this;
54 // }
55 
56 //
57 // member functions
58 //
59 void
61 {
62  if( not m_id.item()->modelInfo(m_id.index()).isSelected() ) {
63  m_id.select();
64  }
65 }
66 
67 void
69 {
70  if( m_id.item()->modelInfo(m_id.index()).isSelected() ) {
71  m_id.unselect();
72  }
73 }
74 
75 //
76 // const member functions
77 //
78 
79 //
80 // static member functions
81 //
void unselect() const
Definition: FWModelId.cc:67
int index() const
Definition: FWModelId.h:49
void select() const
Definition: FWModelId.cc:71
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:537
const FWEventItem * item() const
Definition: FWModelId.h:44