CMS 3D CMS Logo

NanoAODSimpleCrossCleaner.cc
Go to the documentation of this file.
2 
4 public:
7 
13  std::vector<uint8_t>& jetBits,
14  std::vector<uint8_t>& muonBits,
15  std::vector<uint8_t>& eleBits,
16  std::vector<uint8_t>& tauBits,
17  std::vector<uint8_t>& photonBits) override {
18  for (size_t i = 0; i < jets.size(); i++) {
19  for (const auto& m : jets[i].overlaps("muons")) {
20  if (muonBits[m.key()])
21  jetBits[i] = 0; //prefer muons
22  }
23  for (const auto& m : jets[i].overlaps("electrons")) {
24  if (eleBits[m.key()])
25  jetBits[i] = 0; //prefer electrons
26  }
27  }
28  }
29 };
NanoAODSimpleCrossCleaner(const edm::ParameterSet &p)
void objectSelection(const edm::View< pat::Jet > &jets, const edm::View< pat::Muon > &muons, const edm::View< pat::Electron > &eles, const edm::View< pat::Tau > &taus, const edm::View< pat::Photon > &photons, std::vector< uint8_t > &jetBits, std::vector< uint8_t > &muonBits, std::vector< uint8_t > &eleBits, std::vector< uint8_t > &tauBits, std::vector< uint8_t > &photonBits) override
muons
the two sets of parameters below are mutually exclusive, depending if RECO or ALCARECO is used the us...
Definition: DiMuonV_cfg.py:212
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16