CMS 3D CMS Logo

PreId.cc
Go to the documentation of this file.
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::mva
float mva(unsigned n=0) const
Definition: PreId.cc:18
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
reco::PreId::setMatching
void setMatching(MatchingType type, bool result, unsigned n=0)
Definition: PreId.cc:6
gather_cfg.cout
cout
Definition: gather_cfg.py:144
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::PreId::MatchingType
MatchingType
Definition: PreId.h:15
PreId.h
reco::PreId::mva_
std::vector< float > mva_
Definition: PreId.h:114
type
type
Definition: HCALResponse.h:21
reco::PreId::matching_
std::vector< int > matching_
Definition: PreId.h:120
mps_fire.result
result
Definition: mps_fire.py:303