108 theMuonCollectionLabel_ = consumes<edm::View<reco::Track> >(
parameters.getParameter<
edm::InputTag>(
"MuonCollection"));
139 theFolder =
parameters.getParameter<
string>(
"folder");
148 ibooker.setCurrentFolder(theFolder);
157 etaStaTrack = ibooker.book1D(histname +
"_eta",
"#eta_{STA}",
etaBin,
etaMin,
etaMax);
164 thetaStaTrack->setAxisTitle(
"rad");
168 phiStaTrack = ibooker.book1D(histname +
"_phi",
"#phi_{STA}",
phiBin,
phiMin,
phiMax);
169 phiStaTrack->setAxisTitle(
"rad");
173 chi2OvDFStaTrack = ibooker.book1D(histname +
"_chi2OverDf",
"#chi_{2}OverDF_{STA}",
chi2Bin,
chi2Min,
chi2Max);
177 probchi2StaTrack = ibooker.book1D(histname +
"_probchi",
"Prob #chi_{STA}", 120,
chi2Min, 1.20);
181 pStaTrack = ibooker.book1D(histname +
"_p",
"p_{STA}",
pBin,
pMin,
pMax);
182 pStaTrack->setAxisTitle(
"GeV");
185 qOverPStaTrack->setAxisTitle(
"1/GeV");
192 ptStaTrack = ibooker.book1D(histname +
"_pt",
"pt_{STA}",
ptBin,
ptMin,
pMax);
193 ptStaTrack->setAxisTitle(
"GeV");
197 qStaTrack = ibooker.book1D(histname +
"_q",
"q_{STA}", 5, -2.5, 2.5);
202 phiVsetaStaTrack = ibooker.book2D(
204 phiVsetaStaTrack->setAxisTitle(
"eta", 1);
205 phiVsetaStaTrack->setAxisTitle(
"phi", 2);
208 nValidHitsStaTrack = ibooker.book1D(histname +
"_nValidHits",
"#valid hits (STA)",
hitsBin,
hitsMin,
hitsMax);
210 nValidHitsStaTrack_eta = ibooker.book2D(
213 nValidHitsStaTrack_phi = ibooker.book2D(
219 theService->update(iSetup);
223 iEvent.
getByToken(theMuonCollectionLabel_, muons);
235 etaStaTrack->Fill(
muon->eta());
236 thetaStaTrack->Fill(
muon->theta());
237 phiStaTrack->Fill(
muon->phi());
238 chi2OvDFStaTrack->Fill(
muon->normalizedChi2());
239 probchi2StaTrack->Fill(TMath::Prob(
muon->chi2(),
muon->ndof()));
240 pStaTrack->Fill(
muon->p());
241 ptStaTrack->Fill(
muon->pt());
242 qStaTrack->Fill(
muon->charge());
243 qOverPStaTrack->Fill(
muon->qoverp());
244 qOverPStaTrack_p->Fill(
muon->p(),
muon->qoverp());
245 phiVsetaStaTrack->Fill(
muon->eta(),
muon->phi());
247 nValidHitsStaTrack->Fill(
muon->numberOfValidHits());
248 nValidHitsStaTrack_eta->Fill(
muon->eta(),
muon->numberOfValidHits());
249 nValidHitsStaTrack_phi->Fill(
muon->phi(),
muon->numberOfValidHits());
252 nTracksSta->Fill(nTracks_);
MonitorElement * thetaStaTrack
void analyze(const edm::Event &, const edm::EventSetup &) override
Inizialize parameters for histo binning.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const std::string metname
MonitorElement * nTracksSta
MonitorElement * chi2OvDFStaTrack
edm::ParameterSet parameters
MonitorElement * nValidHitsStaTrack
MonitorElement * phiVsetaStaTrack
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * nValidHitsStaTrack_phi
#define DEFINE_FWK_MODULE(type)
MonitorElement * pStaTrack
MonitorElement * qOverPStaTrack
MonitorElement * qStaTrack
MonitorElement * qOverPStaTrack_p
MonitorElement * probchi2StaTrack
MuonServiceProxy * theService
~CosmicMuonRecoAnalyzer() override
Destructor.
MonitorElement * etaStaTrack
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * phiStaTrack
MonitorElement * nValidHitsStaTrack_eta
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
MonitorElement * ptStaTrack
CosmicMuonRecoAnalyzer(const edm::ParameterSet &)
Constructor.
edm::EDGetTokenT< edm::View< reco::Track > > theMuonCollectionLabel_