Main Page
Namespaces
Classes
Package Documentation
CVS Directory
WorkBook
Offline Guide
Release schedule
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
}
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
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:111
type
type
Definition:
SiPixelVCal_PayloadInspector.cc:39
mps_fire.result
tuple result
Definition:
mps_fire.py:311
gainCalibHelper::gainCalibPI::type
type
Definition:
SiPixelGainCalibHelper.h:40
reco::PreId::mva_
std::vector< float > mva_
Definition:
PreId.h:114
reco::PreId::mva
float mva(unsigned n=0) const
Definition:
PreId.cc:18
reco::PreId::MatchingType
MatchingType
Definition:
PreId.h:15
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:144
dqmiodumpmetadata.n
int n
Definition:
dqmiodumpmetadata.py:28
Generated for CMSSW Reference Manual by
1.8.5