Definition at line 62 of file DimuonStatistics.cc.
References edm::View< T >::begin(), alignmentValidation::c1, gather_cfg::cout, DEFINE_FWK_MODULE, edm::View< T >::end(), reco::Candidate::eta(), etaMax_, etaMin_, Exception, pat::PATObject< ObjectType >::genParticleRef(), edm::RefToBase< T >::get(), edm::Event::getByToken(), mps_fire::i, edm::errors::InvalidReference, edm::Ref< C, T, F >::isNonnull(), dqmiolumiharvest::j, dqmdumpme::k, massMax_, massMin_, reco::Candidate::masterClone(), muonTagProbeFilters_cff::matched, matched_, maxEntries, reco::Candidate::pt(), ptMin_, edm::View< T >::size(), TrackRefitter_38T_cff::src, src_, srcToken_, pat::Muon::trackIso(), trkIso_, and unMatched_.
65 double trackIso1 = -1;
66 double trackIso2 = -1;
68 unsigned int matched = 0, unMatched = 0;
69 cout <<
">> entries in " <<
src_ <<
": " << src->
size() << endl;
74 if (dau1 ==
nullptr || dau2 ==
nullptr)
87 <<
"first of two daughter is neither a pat::Muon not pat::GenericParticle\n";
101 <<
"first of two daughter is neither a pat::Muon not pat::GenericParticle\n";
106 cout <<
"DimuonStatistics> mc1: " << mc1->pdgId() <<
", mc2: " << mc2->pdgId() << endl;
110 mc1 = mc1->numberOfMothers() > 0 ? mc1->motherRef() :
GenParticleRef();
111 mc2 = mc2->numberOfMothers() > 0 ? mc2->motherRef() :
GenParticleRef();
122 cout <<
"dimuon mass " <<
i->mass() << endl;
129 cout <<
"matched: " << matched <<
", unmatched: " << unMatched << endl;
value_type const * get() const
edm::EDGetTokenT< reco::CandidateView > srcToken_
bool isNonnull() const
Checks for non-null.
reco::GenParticleRef genParticleRef(size_t idx=0) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const unsigned int maxEntries
std::vector< unsigned int > unMatched_
std::vector< unsigned int > matched_
Analysis-level Generic Particle class (e.g. for hadron or muon not fully reconstructed) ...
const_iterator begin() const
virtual const CandidateBaseRef & masterClone() const =0
virtual double eta() const =0
momentum pseudorapidity
virtual double pt() const =0
transverse momentum
edm::Ref< edm::HepMCProduct, HepMC::GenParticle > GenParticleRef
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
const_iterator end() const
Analysis-level muon class.