Main Page
Namespaces
Classes
Package Documentation
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
{
8
if
(n<
matching_
.size())
9
{
10
if
(result)
11
{
12
matching_
[
n
] |= (1 <<
type
);
13
}
14
else
15
{
16
matching_
[
n
] &= ~(1 <<
type
);
17
}
18
}
19
else
20
{
21
std::cout
<<
" Out of range "
<< std::endl;
22
}
23
}
24
25
float
PreId::mva
(
unsigned
n
)
const
26
{
27
if
(n<
mva_
.size())
28
return
mva_
[n];
29
return
-999.;
30
}
type
type
Definition:
HCALResponse.h:21
mps_fire.result
result
Definition:
mps_fire.py:234
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:133
PreId.h
reco::PreId::mva_
std::vector< float > mva_
Definition:
PreId.h:127
reco::PreId::mva
float mva(unsigned n=0) const
Definition:
PreId.cc:25
gen::n
int n
Definition:
Cascade2Hadronizer.cc:79
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:43
reco::PreId::MatchingType
MatchingType
Definition:
PreId.h:16
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
Generated for CMSSW Reference Manual by
1.8.11