CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PreId.cc
Go to the documentation of this file.
2 #include <iostream>
3 
4 using namespace reco;
5 
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
Definition: HCALResponse.h:21
void setMatching(MatchingType type, bool result, unsigned n=0)
Definition: PreId.cc:6
std::vector< int > matching_
Definition: PreId.h:133
tuple result
Definition: query.py:137
std::vector< float > mva_
Definition: PreId.h:127
float mva(unsigned n=0) const
Definition: PreId.cc:25
MatchingType
Definition: PreId.h:16
tuple cout
Definition: gather_cfg.py:145