Main Page
Namespaces
Classes
Package Documentation
RecoBTag
FeatureTools
src
sorting_modules.cc
Go to the documentation of this file.
1
2
#include "
RecoBTag/FeatureTools/interface/sorting_modules.h
"
3
#include "
FWCore/Utilities/interface/Exception.h
"
4
#include <iostream>
5
6
namespace
btagbtvdeep
{
7
8
std::vector<std::size_t>
invertSortingVector
(
const
std::vector<
SortingClass<std::size_t>
> &
in
){
9
std::size_t
max
=0;
10
for
(
const
auto
&
s
:
in
){
11
if
(
s
.get()>
max
)max=
s
.get();
12
}
13
14
std::vector<std::size_t>
out
(max+1,0);
15
for
(std::size_t
i
=0;
i
<in.size();
i
++){
16
out.at(in[
i
].
get
())=
i
;
17
}
18
19
return
out
;
20
}
21
22
}
mps_fire.i
i
Definition:
mps_fire.py:338
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
sorting_modules.h
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
SiStripPI::max
Definition:
SiStripPayloadInspectorHelper.h:178
Exception.h
MillePedeFileConverter_cfg.out
out
Definition:
MillePedeFileConverter_cfg.py:31
btagbtvdeep::invertSortingVector
std::vector< std::size_t > invertSortingVector(const std::vector< SortingClass< std::size_t > > &in)
Definition:
sorting_modules.cc:8
btagbtvdeep::SortingClass
Definition:
sorting_modules.h:18
btagbtvdeep
Definition:
BoostedDoubleSVTagInfoFeatures.h:4
Generated for CMSSW Reference Manual by
1.8.11