Definition at line 76 of file MuonWithPFIsoProducer.cc.
References reco::Muon::clone(), DEFINE_FWK_MODULE, PbPb_ZMuSkimMuonDPG_cff::deltaR, reco::PFCandidate::e, reco::PFCandidate::egamma_HF, reco::MuonIsolation::emEt, reco::MuonIsolation::emVetoEt, reco::PFCandidate::gamma, gammaIsoVeto_, edm::Event::getByToken(), reco::PFCandidate::h, reco::PFCandidate::h0, reco::PFCandidate::h_HF, reco::MuonIsolation::hadEt, reco::MuonIsolation::hadVetoEt, mps_fire::i, reco::Muon::innerTrack(), edm::Ref< C, T, F >::isNonnull(), dqmiolumiharvest::j, reco::LeafCandidate::momentum(), eostools::move(), amptDefaultParameters_cff::mu, reco::PFCandidate::mu, pdwgLeptonRecoSkim_cfi::muonCollection, muonToken_, neutralHadronIsoVeto_, MuonAlignmentFromReference_cff::newmuons, reco::MuonIsolation::nTracks, reco::PFCandidate::particleId(), packedPFCandidateRefMixer_cfi::pf, pfToken_, reco::LeafCandidate::pt(), edm::Event::put(), reco::Muon::setIsolation(), reco::MuonIsolation::sumPt, reco::MuonIsolation::trackerVetoPt, trackIsoVeto_, reco::PFCandidate::trackRef(), and usePfMuonsOnly_.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
83 edm::LogError(
"") <<
">>> Muon collection does not exist !!!";
91 edm::LogError(
"") <<
">>> PFCandidate collection does not exist !!!";
102 unsigned int muonCollectionSize = muonCollection->size();
103 unsigned int pfCollectionSize = pfCollection->size();
104 for (
unsigned int i = 0;
i < muonCollectionSize;
i++) {
108 bool muonFound =
false;
118 for (
unsigned int j = 0;
j < pfCollectionSize;
j++) {
122 bool thisIsTheMuon =
false;
124 thisIsTheMuon =
true;
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool isNonnull() const
Checks for non-null.
float sumPt
sum-pt of tracks
virtual TrackRef innerTrack() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
float hadVetoEt
hcal sum-et in the veto region in r-phi
double pt() const final
transverse momentum
std::vector< Muon > MuonCollection
collection of Muon objects
reco::TrackRef trackRef() const
Vector momentum() const final
spatial momentum vector
int nTracks
number of tracks in the cone (excluding veto region)
float emVetoEt
ecal sum-et in the veto region in r-phi
edm::EDGetTokenT< edm::View< reco::PFCandidate > > pfToken_
double neutralHadronIsoVeto_
void setIsolation(const MuonIsolation &isoR03, const MuonIsolation &isoR05)
virtual ParticleType particleId() const
edm::EDGetTokenT< edm::View< reco::Muon > > muonToken_
Muon * clone() const override
create a clone
float trackerVetoPt
(sum-)pt inside the veto region in r-phi