Main Page
Namespaces
Classes
Package Documentation
DataFormats
Common
src
ThinnedAssociation.cc
Go to the documentation of this file.
1
#include "
DataFormats/Common/interface/ThinnedAssociation.h
"
2
3
#include <algorithm>
4
5
namespace
edm
{
6
7
ThinnedAssociation::ThinnedAssociation
() {
8
}
9
10
bool
11
ThinnedAssociation::hasParentIndex
(
unsigned
int
parentIndex,
12
unsigned
int
& thinnedIndex)
const
{
13
auto
iter =
std::lower_bound
(
indexesIntoParent_
.begin(),
indexesIntoParent_
.end(), parentIndex);
14
if
(iter !=
indexesIntoParent_
.end() && *iter == parentIndex) {
15
thinnedIndex = iter -
indexesIntoParent_
.begin();
16
return
true
;
17
}
18
return
false
;
19
}
20
}
edm::ThinnedAssociation::ThinnedAssociation
ThinnedAssociation()
Definition:
ThinnedAssociation.cc:7
ThinnedAssociation.h
pfDeepBoostedJetPreprocessParams_cfi.lower_bound
lower_bound
Definition:
pfDeepBoostedJetPreprocessParams_cfi.py:15
edm::ThinnedAssociation::indexesIntoParent_
std::vector< unsigned int > indexesIntoParent_
Definition:
ThinnedAssociation.h:40
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::ThinnedAssociation::hasParentIndex
bool hasParentIndex(unsigned int parentIndex, unsigned int &thinnedIndex) const
Definition:
ThinnedAssociation.cc:11
Generated for CMSSW Reference Manual by
1.8.11