Definition at line 242 of file WMuNuSelector.cc.
References edm::HLTGlobalStatus::accept(), reco::WMuNuCandidate::acop(), acopCut_, beamSpotToken_, reco::LeafCandidate::charge(), DEFINE_FWK_MODULE, PVValHelper::dxy, eJetMin_, reco::MuonIsolation::emEt, reco::WMuNuCandidate::eT(), reco::LeafCandidate::et(), PVValHelper::eta, reco::LeafCandidate::eta(), etaCut_, edm::Event::getByToken(), reco::WMuNuCandidate::getMuon(), reco::WMuNuCandidate::getNeutrino(), muon::GlobalMuonPromptTight, reco::Muon::globalTrack(), h1_, h2_, reco::MuonIsolation::hadEt, mps_fire::i, isCombinedIso_, reco::Muon::isGlobalMuon(), muon::isGoodMuon(), isoCut03_, reco::Muon::isolationR03(), isRelativeIso_, reco::Muon::isTrackerMuon(), metsig::jet, jetfilter_cfi::jetCollection, jetToken_, LogTrace, reco::WMuNuCandidate::massT(), BTaggingMonitor_cfi::met, metMax_, mtMax_, amptDefaultParameters_cff::mu, pdwgLeptonRecoSkim_cfi::muonCollection, muonToken_, muonTrig_, nacop, nall, ncharge, nid, niso, nJetMax_, BTaggingMonitoring_cff::njets, nkin, TrackCollections2monitor_cff::normalizedChi2, normalizedChi2Cut_, npresel, nsel, ntrig, plotHistograms_, reco::BeamSpot::position(), DiDispStaMuonMonitor_cfi::pt, reco::LeafCandidate::pt(), ptCut_, ptThrForZ1_, ptThrForZ2_, reco::LeafCandidate::px(), reco::LeafCandidate::py(), selectByCharge_, reco::MuonIsolation::sumPt, trackerHitsCut_, edm::TriggerNames::triggerIndex(), L1TEGammaOffline_cfi::triggerNames, edm::Event::triggerNames(), triggerResults, trigToken_, and WMuNuCollectionToken_.
Referenced by Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filter(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setDataAccessor(), and Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView().
249 LogError(
"") <<
">>> Muon collection does not exist !!!";
252 unsigned int muonCollectionSize = muonCollection->size();
257 LogError(
"") <<
">>> TRIGGER collection does not exist !!!";
261 bool trigger_fired =
false;
263 if (triggerResults->
accept(itrig1))
264 trigger_fired =
true;
265 LogTrace(
"") <<
">>> Trigger bit: " << trigger_fired <<
" (" <<
muonTrig_ <<
")";
268 unsigned int nmuonsForZ1 = 0;
269 unsigned int nmuonsForZ2 = 0;
270 for (
unsigned int i = 0;
i < muonCollectionSize;
i++) {
271 const Muon&
mu = muonCollection->at(
i);
286 LogError(
"") <<
">>> JET collection does not exist !!!";
289 unsigned int jetCollectionSize = jetCollection->size();
291 for (
unsigned int i = 0;
i < jetCollectionSize;
i++) {
292 const Jet&
jet = jetCollection->at(
i);
296 LogTrace(
"") <<
">>> Total number of jets: " << jetCollectionSize;
302 LogTrace(
"") <<
">>> No beam spot found !!!";
310 LogTrace(
"") <<
">>> WMuNu not found !!!";
314 if (WMuNuCollection->empty()) {
315 LogTrace(
"") <<
"No WMuNu Candidates in the Event!";
318 if (WMuNuCollection->size() > 1) {
319 LogTrace(
"") <<
"This event contains more than one W Candidate";
324 LogTrace(
"") <<
"> WMuNu Candidate with: ";
332 h1_[
"hNWCand_sel"]->Fill(WMuNuCollection->size());
337 if (!trigger_fired) {
338 LogTrace(
"") <<
"Event did not fire the Trigger";
343 if (nmuonsForZ1 >= 1 && nmuonsForZ2 >= 2) {
348 LogTrace(
"") <<
"NJets > threshold";
371 LogTrace(
"") <<
"\t... Muon pt, eta: " << pt <<
" [GeV], " <<
eta;
373 h1_[
"hPtMu_sel"]->Fill(pt);
378 h1_[
"hEtaMu_sel"]->Fill(eta);
389 double trackerHits = gm->hitPattern().numberOfValidTrackerHits();
390 LogTrace(
"") <<
"\t... Muon dxy, normalizedChi2, trackerHits, isTrackerMuon?: " << dxy <<
" [cm], " << normalizedChi2
394 h1_[
"hd0_sel"]->Fill(dxy);
399 h1_[
"hNormChi2_sel"]->Fill(normalizedChi2);
404 h1_[
"hNHits_sel"]->Fill(trackerHits);
417 double acop = WMuNu.
acop();
418 LogTrace(
"") <<
"\t... acoplanarity: " << acop;
422 double isovar = SumPt;
427 h1_[
"hPtSum_sel"]->Fill(SumPt);
428 h1_[
"hPtSumN_sel"]->Fill(SumPt / pt);
429 h1_[
"hCal_sel"]->Fill(Cal);
430 h1_[
"hIsoTot_sel"]->Fill((SumPt + Cal));
431 h1_[
"hIsoTotN_sel"]->Fill((SumPt + Cal) / pt);
437 LogTrace(
"") <<
"\t... isolation value" << isovar <<
", isolated? " << iso;
439 double met_et = met.
pt();
442 double massT = WMuNu.
massT();
443 double w_et = WMuNu.
eT();
445 LogTrace(
"") <<
"\t... W mass, W_et, W_px, W_py: " << massT <<
", " << w_et <<
", " << WMuNu.
px() <<
", " 446 << WMuNu.
py() <<
" [GeV]";
450 h2_[
"hTMass_PtSum_inclusive"]->Fill(SumPt, massT);
451 h2_[
"hTMass_PtSumNorm_inclusive"]->Fill(SumPt / pt, massT);
452 h2_[
"hTMass_TotIsoNorm_inclusive"]->Fill((SumPt + Cal) / pt, massT);
453 h2_[
"hMET_PtSum_inclusive"]->Fill(SumPt, met_et);
454 h2_[
"hMET_PtSumNorm_inclusive"]->Fill(SumPt / pt, met_et);
455 h2_[
"hMET_TotIsoNorm_inclusive"]->Fill((SumPt + Cal) / pt, met_et);
464 h1_[
"hAcop_sel"]->Fill(acop);
472 h1_[
"hMET_sel"]->Fill(met_et);
473 h1_[
"hTMass_sel"]->Fill(massT);
476 if (massT <= mtMin_ || massT >=
mtMax_)
478 if (met_et <= metMin_ || met_et >=
metMax_)
481 LogTrace(
"") <<
">>>> Event ACCEPTED";
const std::string muonTrig_
double eta() const final
momentum pseudorapidity
edm::EDGetTokenT< edm::View< reco::Muon > > muonToken_
float sumPt
sum-pt of tracks
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< edm::TriggerResults > trigToken_
double px() const final
x coordinate of momentum vector
bool accept() const
Has at least one path accepted the event?
double pt() const final
transverse momentum
int charge() const final
electric charge
edm::EDGetTokenT< edm::View< reco::Jet > > jetToken_
bool isTrackerMuon() const override
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
unsigned int triggerIndex(std::string const &name) const
double et() const final
transverse energy
bool isGlobalMuon() const override
static std::string const triggerResults
bool isGoodMuon(const reco::Muon &muon, SelectionType type, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
main GoodMuon wrapper call
double py() const final
y coordinate of momentum vector
std::map< std::string, TH2D * > h2_
edm::EDGetTokenT< reco::WMuNuCandidateCollection > WMuNuCollectionToken_
const Point & position() const
position
std::map< std::string, TH1D * > h1_
double normalizedChi2Cut_
const reco::Muon & getMuon() const
const reco::MET & getNeutrino() const
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
const MuonIsolation & isolationR03() const
virtual TrackRef globalTrack() const
reference to Track reconstructed in both tracked and muon detector