105 theMuonCollectionLabel_ = consumes<edm::View<reco::Track> >(
parameters.getParameter<
edm::InputTag>(
"MuonCollection"));
136 theFolder =
parameters.getParameter<
string>(
"folder");
145 ibooker.setCurrentFolder(theFolder);
154 etaStaTrack = ibooker.book1D(histname +
"_eta",
"#eta_{STA}",
etaBin,
etaMin,
etaMax);
161 thetaStaTrack->setAxisTitle(
"rad");
165 phiStaTrack = ibooker.book1D(histname +
"_phi",
"#phi_{STA}",
phiBin,
phiMin,
phiMax);
166 phiStaTrack->setAxisTitle(
"rad");
170 chi2OvDFStaTrack = ibooker.book1D(histname +
"_chi2OverDf",
"#chi_{2}OverDF_{STA}",
chi2Bin,
chi2Min,
chi2Max);
174 probchi2StaTrack = ibooker.book1D(histname +
"_probchi",
"Prob #chi_{STA}", 120,
chi2Min, 1.20);
178 pStaTrack = ibooker.book1D(histname +
"_p",
"p_{STA}",
pBin,
pMin,
pMax);
179 pStaTrack->setAxisTitle(
"GeV");
182 qOverPStaTrack->setAxisTitle(
"1/GeV");
189 ptStaTrack = ibooker.book1D(histname +
"_pt",
"pt_{STA}",
ptBin,
ptMin,
pMax);
190 ptStaTrack->setAxisTitle(
"GeV");
194 qStaTrack = ibooker.book1D(histname +
"_q",
"q_{STA}", 5, -2.5, 2.5);
199 phiVsetaStaTrack = ibooker.book2D(
201 phiVsetaStaTrack->setAxisTitle(
"eta", 1);
202 phiVsetaStaTrack->setAxisTitle(
"phi", 2);
205 nValidHitsStaTrack = ibooker.book1D(histname +
"_nValidHits",
"#valid hits (STA)",
hitsBin,
hitsMin,
hitsMax);
207 nValidHitsStaTrack_eta = ibooker.book2D(
210 nValidHitsStaTrack_phi = ibooker.book2D(
215 LogTrace(
"CosmicMuon") <<
"[MuonRecoAnalyzer] Analyze the mu";
223 if (!
muons.isValid())
231 etaStaTrack->Fill(
muon->eta());
232 thetaStaTrack->Fill(
muon->theta());
233 phiStaTrack->Fill(
muon->phi());
234 chi2OvDFStaTrack->Fill(
muon->normalizedChi2());
235 probchi2StaTrack->Fill(TMath::Prob(
muon->chi2(),
muon->ndof()));
236 pStaTrack->Fill(
muon->p());
237 ptStaTrack->Fill(
muon->pt());
238 qStaTrack->Fill(
muon->charge());
239 qOverPStaTrack->Fill(
muon->qoverp());
240 qOverPStaTrack_p->Fill(
muon->p(),
muon->qoverp());
241 phiVsetaStaTrack->Fill(
muon->eta(),
muon->phi());
243 nValidHitsStaTrack->Fill(
muon->numberOfValidHits());
244 nValidHitsStaTrack_eta->Fill(
muon->eta(),
muon->numberOfValidHits());
245 nValidHitsStaTrack_phi->Fill(
muon->phi(),
muon->numberOfValidHits());
248 nTracksSta->Fill(nTracks_);