CMS 3D CMS Logo

NanoAODSimpleCrossCleaner.cc
Go to the documentation of this file.
2 
4 public:
7 
10  const edm::View<pat::Electron>& eles,
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 };
PDWG_BPHSkim_cff.muons
muons
Definition: PDWG_BPHSkim_cff.py:47
mps_fire.i
i
Definition: mps_fire.py:428
NanoAODSimpleCrossCleaner::objectSelection
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
Definition: NanoAODSimpleCrossCleaner.cc:8
Tau3MuMonitor_cff.taus
taus
Definition: Tau3MuMonitor_cff.py:7
singleTopDQM_cfi.jets
jets
Definition: singleTopDQM_cfi.py:42
NanoAODSimpleCrossCleaner::NanoAODSimpleCrossCleaner
NanoAODSimpleCrossCleaner(const edm::ParameterSet &p)
Definition: NanoAODSimpleCrossCleaner.cc:5
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:79
NanoAODSimpleCrossCleaner::~NanoAODSimpleCrossCleaner
~NanoAODSimpleCrossCleaner() override
Definition: NanoAODSimpleCrossCleaner.cc:6
analyzePatCleaning_cfg.overlaps
overlaps
Definition: analyzePatCleaning_cfg.py:9
edm::View
Definition: CaloClusterFwd.h:14
edm::ParameterSet
Definition: ParameterSet.h:47
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
NanoAODSimpleCrossCleaner
Definition: NanoAODSimpleCrossCleaner.cc:3
BPHMonitor_cfi.photons
photons
Definition: BPHMonitor_cfi.py:91
NanoAODBaseCrossCleaner
Definition: NanoAODBaseCrossCleaner.h:48
NanoAODBaseCrossCleaner.h