Implements edm::EDAnalyzer.
Definition at line 59 of file GlbMuQualityCutsAnalysis.cc.
63 cout <<
">> entries in " <<
src_ <<
": " <<
src->size() << endl;
68 if (dau1 ==
nullptr || dau2 ==
nullptr)
72 const pat::Muon* mu1 = dynamic_cast<const pat::Muon*>(
c1);
73 std::cout <<
" dimuon mass " <<
i->mass() << std::endl;
74 std::cout <<
"dau1.pt() " << dau1->
pt() << std::endl;
75 std::cout <<
"dau2.pt() " << dau2->
pt() << std::endl;
92 <<
"first of two daughter is neither a pat::Muon not pat::GenericParticle\n";
96 const pat::Muon* mu2 = dynamic_cast<const pat::Muon*>(c2);
104 <<
"first of two daughter is neither a pat::Muon not pat::GenericParticle\n";
107 int nOfHit_1 = 0, nOfHit_tk_1 = 0, nOfHit_2 = 0, nOfHit_tk_2 = 0;
110 std::cout <<
"n of hit of GlbMu1: " << nOfHit_1 << std::endl;
112 nOfHit_tk_1 = mu1->
innerTrack()->numberOfValidHits();
113 std::cout <<
"n of hit of TrkMu1: " << nOfHit_tk_1 << std::endl;
116 std::cout <<
"n of hit of GlbMu2: " << nOfHit_2 << std::endl;
118 nOfHit_tk_2 = mu2->
innerTrack()->numberOfValidHits();
119 std::cout <<
"n of hit of TrkMu2: " << nOfHit_tk_2 << std::endl;
124 double nChi2_1 = 0, nChi2_2 = 0;
127 std::cout <<
"chi2 of GlbMu1: " << nChi2_1 << std::endl;
130 std::cout <<
"chi2 of GlbMu2: " << nChi2_2 << std::endl;
133 double dxy_1 = mu1->
dB();
134 double dxy_2 = mu2->
dB();
139 std::cout <<
"found a GlbMuon with nOfHit " << nOfHit_tk_1 <<
", it has eta: " << mu1->
eta() << std::endl;
142 std::cout <<
"found a GlbMuon with nOfHit " << nOfHit_tk_2 <<
", it has eta: " << mu2->
eta() << std::endl;
145 std::cout <<
"found a GlbMuon with chi2 " << nChi2_1
146 <<
", it has chi2 of track: " << mu1->
innerTrack()->normalizedChi2()
147 <<
", and chi2 of Sta: " << mu1->
outerTrack()->normalizedChi2() <<
", eta: " << mu1->
eta()
148 <<
",pt: " << mu1->
pt() << std::endl;
151 std::cout <<
"found a GlbMuon with chi2 " << nChi2_2
152 <<
", it has chi2 of track: " << mu2->
innerTrack()->normalizedChi2()
153 <<
", and chi2 of Sta: " << mu2->
outerTrack()->normalizedChi2() <<
", eta: " << mu2->
eta()
154 <<
",pt: " << mu2->
pt() << std::endl;
References alignmentValidation::c1, reco::Candidate::charge(), chi2Cut_, gather_cfg::cout, pat::Muon::dB(), reco::LeafCandidate::eta(), Exception, edm::RefToBase< T >::get(), edm::Event::getByToken(), h_GlbMuChi2_, h_GlbMuDxy_, h_GlbMuNofHitsGlbMu_, h_TrkMuNofHitsGlbMu_, mps_fire::i, pat::Muon::innerTrack(), edm::errors::InvalidReference, reco::Candidate::isGlobalMuon(), reco::Muon::isGlobalMuon(), reco::Candidate::isStandAloneMuon(), reco::Candidate::isTrackerMuon(), reco::Muon::isTrackerMuon(), dqmiolumiharvest::j, reco::Candidate::masterClone(), nHitCut_, pat::Muon::normChi2(), pat::Muon::numberOfValidHits(), pat::Muon::outerTrack(), reco::Candidate::pt(), reco::LeafCandidate::pt(), TrackRefitter_38T_cff::src, src_, and srcToken_.