Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
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
{
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
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
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:107
query.result
tuple result
Definition:
query.py:137
n
int n
Definition:
DTDataIntegrityTask.cc:30
reco::PreId::mva_
std::vector< float > mva_
Definition:
PreId.h:127
reco::PreId::mva
float mva(unsigned n=0) const
Definition:
PreId.cc:25
reco::PreId::MatchingType
MatchingType
Definition:
PreId.h:16
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:121
Generated for CMSSW Reference Manual by
1.8.5