File indexing completed on 2024-04-06 12:04:53
0001 #include "DataFormats/ParticleFlowReco/interface/PreId.h"
0002 #include <iostream>
0003
0004 using namespace reco;
0005
0006 void PreId::setMatching(MatchingType type, bool result, unsigned n) {
0007 if (n < matching_.size()) {
0008 if (result) {
0009 matching_[n] |= (1 << type);
0010 } else {
0011 matching_[n] &= ~(1 << type);
0012 }
0013 } else {
0014 std::cout << " Out of range " << std::endl;
0015 }
0016 }
0017
0018 float PreId::mva(unsigned n) const {
0019 if (n < mva_.size())
0020 return mva_[n];
0021 return -999.;
0022 }