CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 }
void setMatching(MatchingType type, bool result, unsigned n=0)
Definition: PreId.cc:6
std::vector< int > matching_
Definition: PreId.h:120
tuple result
Definition: mps_fire.py:311
std::vector< float > mva_
Definition: PreId.h:114
float mva(unsigned n=0) const
Definition: PreId.cc:18
MatchingType
Definition: PreId.h:15
tuple cout
Definition: gather_cfg.py:144