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 * thetaStaTrack
void analyze(const edm::Event &, const edm::EventSetup &) override
Inizialize parameters for histo binning.
virtual void setCurrentFolder(std::string const &fullpath)
#define DEFINE_FWK_MODULE(type)
MonitorElement * nTracksSta
MonitorElement * chi2OvDFStaTrack
edm::ParameterSet parameters
MonitorElement * nValidHitsStaTrack
MonitorElement * phiVsetaStaTrack
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
example_stream void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * nValidHitsStaTrack_phi
MonitorElement * pStaTrack
MonitorElement * qOverPStaTrack
MonitorElement * qStaTrack
MonitorElement * qOverPStaTrack_p
MonitorElement * probchi2StaTrack
~CosmicMuonRecoAnalyzer() override
Destructor.
MonitorElement * etaStaTrack
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * phiStaTrack
MonitorElement * nValidHitsStaTrack_eta
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
MonitorElement * ptStaTrack
CosmicMuonRecoAnalyzer(const edm::ParameterSet &)
Constructor.
edm::EDGetTokenT< edm::View< reco::Track > > theMuonCollectionLabel_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
int etaBin(const l1t::HGCalMulticluster *cl)
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)