CMS 3D CMS Logo

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