105 theMuonCollectionLabel_ = consumes<edm::View<reco::Track> >(
parameters.getParameter<
edm::InputTag>(
"MuonCollection"));
107 nTrkBin =
parameters.getParameter<
int>(
"nTrkBin");
108 nTrkMax =
parameters.getParameter<
int>(
"nTrkMax");
109 nTrkMin =
parameters.getParameter<
int>(
"nTrkMin");
110 ptBin =
parameters.getParameter<
int>(
"ptBin");
115 pMax =
parameters.getParameter<
double>(
"pMax");
116 chi2Bin =
parameters.getParameter<
int>(
"chi2Bin");
117 chi2Min =
parameters.getParameter<
double>(
"chi2Min");
119 phiBin =
parameters.getParameter<
int>(
"phiBin");
122 thetaBin =
parameters.getParameter<
int>(
"thetaBin");
123 thetaMin =
parameters.getParameter<
double>(
"thetaMin");
124 thetaMax =
parameters.getParameter<
double>(
"thetaMax");
128 pResBin =
parameters.getParameter<
int>(
"pResBin");
129 pResMin =
parameters.getParameter<
double>(
"pResMin");
130 pResMax =
parameters.getParameter<
double>(
"pResMax");
132 hitsBin =
parameters.getParameter<
int>(
"hitsBin");
133 hitsMin =
parameters.getParameter<
int>(
"hitsMin");
134 hitsMax =
parameters.getParameter<
int>(
"hitsMax");
136 theFolder =
parameters.getParameter<
string>(
"folder");
152 nTracksSta = ibooker.
book1D(histname +
"_traks",
"#tracks", nTrkBin, nTrkMin, nTrkMax);
160 thetaStaTrack = ibooker.
book1D(histname +
"_theta",
"#theta_{STA}", thetaBin, thetaMin, thetaMax);
165 phiStaTrack = ibooker.
book1D(histname +
"_phi",
"#phi_{STA}", phiBin,
phiMin,
phiMax);
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);
181 qOverPStaTrack = ibooker.
book1D(histname +
"_qoverp",
"qoverp_{STA}", pResBin, pResMin, pResMax);
185 ibooker.
book2D(histname +
"_qoverp_p",
"qoverp_p_{STA}", pBin,
pMin, pMax, pResBin, pResMin, pResMax);
189 ptStaTrack = ibooker.
book1D(histname +
"_pt",
"pt_{STA}", ptBin,
ptMin, pMax);
194 qStaTrack = ibooker.
book1D(histname +
"_q",
"q_{STA}", 5, -2.5, 2.5);
199 phiVsetaStaTrack = ibooker.
book2D(
202 phiVsetaStaTrack->setAxisTitle(
"phi", 2);
205 nValidHitsStaTrack = ibooker.
book1D(histname +
"_nValidHits",
"#valid hits (STA)", hitsBin, hitsMin, hitsMax);
207 nValidHitsStaTrack_eta = ibooker.
book2D(
208 histname +
"_nValidHits_eta",
"#valid hits vs eta (STA)",
etaBin,
etaMin,
etaMax, hitsBin, hitsMin, hitsMax);
210 nValidHitsStaTrack_phi = ibooker.
book2D(
211 histname +
"_nValidHits_phi",
"#valid hits vs phi (STA)", phiBin,
phiMin,
phiMax, hitsBin, hitsMin, hitsMax);
215 LogTrace(
"CosmicMuon") <<
"[MuonRecoAnalyzer] Analyze the mu";
219 iEvent.
getByToken(theMuonCollectionLabel_, muons);
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.
__device__ WorkSpace float chi2Max
virtual void setCurrentFolder(std::string const &fullpath)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#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)