|
|
Go to the documentation of this file.
105 theMuonCollectionLabel_ = consumes<edm::View<reco::Track> >(
parameters.getParameter<
edm::InputTag>(
"MuonCollection"));
136 theFolder =
parameters.getParameter<
string>(
"folder");
174 probchi2StaTrack = ibooker.
book1D(histname +
"_probchi",
"Prob #chi_{STA}", 120,
chi2Min, 1.20);
194 qStaTrack = ibooker.
book1D(histname +
"_q",
"q_{STA}", 5, -2.5, 2.5);
199 phiVsetaStaTrack = ibooker.
book2D(
202 phiVsetaStaTrack->setAxisTitle(
"phi", 2);
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_);
MonitorElement * nTracksSta
example_stream void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
int etaBin(const l1t::HGCalMulticluster *cl)
MonitorElement * ptStaTrack
virtual void setCurrentFolder(std::string const &fullpath)
MonitorElement * thetaStaTrack
edm::EDGetTokenT< edm::View< reco::Track > > theMuonCollectionLabel_
void analyze(const edm::Event &, const edm::EventSetup &) override
Inizialize parameters for histo binning.
MonitorElement * nValidHitsStaTrack_phi
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * chi2OvDFStaTrack
#define DEFINE_FWK_MODULE(type)
MonitorElement * nValidHitsStaTrack
edm::ParameterSet parameters
MonitorElement * qOverPStaTrack
MonitorElement * pStaTrack
~CosmicMuonRecoAnalyzer() override
Destructor.
MonitorElement * etaStaTrack
MonitorElement * qStaTrack
MonitorElement * nValidHitsStaTrack_eta
MonitorElement * phiStaTrack
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * qOverPStaTrack_p
MonitorElement * probchi2StaTrack
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
CosmicMuonRecoAnalyzer(const edm::ParameterSet &)
Constructor.
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * phiVsetaStaTrack