src
DataFormats
ParticleFlowReco
src
PreId.cc
Go to the documentation of this file.
1
#include "
DataFormats/ParticleFlowReco/interface/PreId.h
"
2
#include <iostream>
3
4
using namespace
reco
;
5
6
void
PreId::setMatching
(
MatchingType
type
,
bool
result
,
unsigned
n
) {
7
if
(
n
<
matching_
.size()) {
8
if
(
result
) {
9
matching_
[
n
] |= (1 <<
type
);
10
}
else
{
11
matching_
[
n
] &= ~(1 <<
type
);
12
}
13
}
else
{
14
std::cout
<<
" Out of range "
<< std::endl;
15
}
16
}
17
18
float
PreId::mva
(
unsigned
n
)
const
{
19
if
(
n
<
mva_
.size())
20
return
mva_
[
n
];
21
return
-999.;
22
}
mps_fire.result
result
Definition:
mps_fire.py:311
reco::PreId::setMatching
void setMatching(MatchingType type, bool result, unsigned n=0)
Definition:
PreId.cc:6
reco::PreId::matching_
std::vector< int > matching_
Definition:
PreId.h:120
PreId.h
type
type
Definition:
SiPixelVCal_PayloadInspector.cc:39
reco::PreId::mva
float mva(unsigned n=0) const
Definition:
PreId.cc:18
gainCalibHelper::gainCalibPI::type
type
Definition:
SiPixelGainCalibHelper.h:40
create_idmaps.n
n
Definition:
create_idmaps.py:21
reco::PreId::mva_
std::vector< float > mva_
Definition:
PreId.h:114
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
reco::PreId::MatchingType
MatchingType
Definition:
PreId.h:15
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
Generated for CMSSW Reference Manual by
1.8.14