CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DataFormats/ParticleFlowReco/src/PreId.cc

Go to the documentation of this file.
00001 #include "DataFormats/ParticleFlowReco/interface/PreId.h"
00002 #include <iostream>
00003 
00004 using namespace reco;
00005 
00006 void PreId::setMatching(MatchingType type,bool result,unsigned n)
00007 {
00008   if(n<matching_.size())
00009     {
00010       if(result)
00011         {
00012           matching_[n] |= (1 << type);
00013         }
00014       else
00015         {
00016           matching_[n] &= ~(1 <<type);
00017         }
00018     }
00019   else
00020     {
00021       std::cout << " Out of range " << std::endl;
00022     }
00023 }
00024 
00025 float PreId::mva(unsigned n) const
00026 {
00027   if(n<mva_.size())
00028     return mva_[n];
00029   return -999.;
00030 }