Fireworks
Calo
src
FWFromSliceSelector.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: Calo
4
// Class : FWFromSliceSelectorBase
5
//
6
// Implementation:
7
// [Notes on implementation]
8
//
9
// Original Author:
10
// Created: Wed Jun 2 17:30:49 CEST 2010
11
//
12
13
// system include files
14
15
// user include files
16
#include "
Fireworks/Calo/src/FWFromSliceSelector.h
"
17
#include "
Fireworks/Core/interface/FWEventItem.h
"
18
19
//
20
// constants, enums and typedefs
21
//
22
23
//
24
// static data member definitions
25
//
26
27
//
28
// constructors and destructor
29
//
30
FWFromSliceSelector::FWFromSliceSelector
(
const
FWEventItem
* iItem) : m_item(iItem) {}
31
32
FWFromSliceSelector::~FWFromSliceSelector
() {}
33
34
//
35
// member functions
36
//
37
38
void
FWFromSliceSelector::clear
() {
39
if
(!
m_item
)
40
return
;
41
42
int
size
= static_cast<int>(
m_item
->
size
());
43
for
(
int
index
= 0;
index
<
size
; ++
index
) {
44
if
(
m_item
->
modelInfo
(
index
).
m_displayProperties
.
isVisible
() &&
m_item
->
modelInfo
(
index
).
isSelected
()) {
45
m_item
->
unselect
(
index
);
46
}
47
}
48
}
49
50
void
FWFromSliceSelector::reset
() {
m_item
=
nullptr
; }
51
52
//
53
// const member functions
54
//
55
FWModelChangeManager
*
FWFromSliceSelector::changeManager
()
const
{
return
m_item
->
changeManager
(); }
56
57
//
58
// static member functions
59
//
FWEventItem::modelInfo
ModelInfo modelInfo(int iIndex) const
Definition:
FWEventItem.cc:446
FWDisplayProperties::isVisible
bool isVisible() const
Definition:
FWDisplayProperties.h:51
FWFromSliceSelector::reset
void reset()
Definition:
FWFromSliceSelector.cc:50
FWFromSliceSelector.h
FWFromSliceSelector::~FWFromSliceSelector
virtual ~FWFromSliceSelector()
Definition:
FWFromSliceSelector.cc:32
FWModelChangeManager
Definition:
FWModelChangeManager.h:33
FWEventItem::changeManager
FWModelChangeManager * changeManager() const
Definition:
FWEventItem.h:123
FWFromSliceSelector::clear
void clear()
Definition:
FWFromSliceSelector.cc:38
FWEventItem::unselect
void unselect(int iIndex) const
Definition:
FWEventItem.cc:215
FWEventItem::ModelInfo::isSelected
bool isSelected() const
Definition:
FWEventItem.h:65
FWFromSliceSelector::m_item
const FWEventItem * m_item
Definition:
FWFromSliceSelector.h:49
FWEventItem.h
FWFromSliceSelector::changeManager
FWModelChangeManager * changeManager() const
Definition:
FWFromSliceSelector.cc:55
FWEventItem
Definition:
FWEventItem.h:56
FWEventItem::ModelInfo::m_displayProperties
FWDisplayProperties m_displayProperties
Definition:
FWEventItem.h:59
AlignmentPI::index
index
Definition:
AlignmentPayloadInspectorHelper.h:46
FWFromSliceSelector::FWFromSliceSelector
FWFromSliceSelector(const FWEventItem *)
Definition:
FWFromSliceSelector.cc:30
FWEventItem::size
size_t size() const
Definition:
FWEventItem.cc:457
findQualityFiles.size
size
Write out results.
Definition:
findQualityFiles.py:443
Generated for CMSSW Reference Manual by
1.8.16