|
|
Go to the documentation of this file.
19 muPtCut_ =
pset.getUntrackedParameter<
double>(
"MuonPtCut", 3.0);
20 muEtaCut_ =
pset.getUntrackedParameter<
double>(
"MuonEtaCut", 1.9);
33 edm::LogInfo(
"rpcrechitprobability") <<
"[RPCRecHitProbability]: Begin Run ";
57 for (
int i = 0;
i < 6;
i++) {
60 name << (
i + 1) <<
"RecHitMuonEta";
61 title <<
"At least " << (
i + 1) <<
" Cluster vs Eta";
66 name << (
i + 1) <<
"RecHitMuonPhiB";
67 title <<
"At least " << (
i + 1) <<
" Cluster vs Phi-Barrel";
72 name << (
i + 1) <<
"RecHitMuonPtB";
73 title <<
"At least " << (
i + 1) <<
" Cluster vs Pt-Barrel";
78 name << (
i + 1) <<
"RecHitMuonPhiEP";
79 title <<
"At least " << (
i + 1) <<
" Cluster vs Phi-Endcap+";
84 name << (
i + 1) <<
"RecHitMuonPtEP";
85 title <<
"At least " << (
i + 1) <<
" Cluster vs Pt-Endcap+";
90 name << (
i + 1) <<
"RecHitMuonPhiEM";
91 title <<
"At least " << (
i + 1) <<
" Cluster vs Phi-Endcap-";
96 name << (
i + 1) <<
"RecHitMuonPtEM";
97 title <<
"At least " << (
i + 1) <<
" Cluster vs Pt-Endcap-";
109 edm::LogWarning(
"rpcrechitprobability") <<
"[RPCRecHitProbability]: DCS bit OFF";
114 edm::LogInfo(
"rpcrechitprobability") <<
"[RPCRecHitProbability]: Beginning analyzing event " <<
counter;
119 std::map<RPCDetId, std::vector<RPCRecHit> > rechitMuon;
122 int nStaMuons = muonCands->
size();
124 for (
int i = 0;
i < nStaMuons;
i++) {
126 const reco::Muon* muCand = dynamic_cast<const reco::Muon*>(&goodMuon);
130 float eta = muCand->
eta();
131 float pt = muCand->
pt();
135 float phi = muCand->
phi();
142 }
else if (
eta < -0.8) {
151 std::vector<TrackingRecHitRef> rpcTrackRecHits;
155 int recHitCounter = 0;
157 if (!(*it)->isValid())
159 int muSubDetId = (*it)->geographicalId().subdetId();
168 while (recHitCounter >=
j + 1 &&
j < 6) {
174 }
else if (
eta < -0.8) {
186 edm::LogError(
"rpcrechitprobability") <<
"[RPCRecHitProbability]: Muons - Product not valid for event" <<
counter;
204 for (DcsStatusCollection::const_iterator dcsStatusItr = dcsStatus->begin(); dcsStatusItr != dcsStatus->end();
std::string globalFolder_
~RPCRecHitProbability() override
MonitorElement * NumberOfMuonPhi_EM_
trackingRecHit_iterator recHitsBegin() const
Iterator to first hit on the track.
MonitorElement * recHitPhi_EP_[6]
edm::EDGetTokenT< reco::CandidateView > muonLabel_
virtual void setCurrentFolder(std::string const &fullpath)
RPCRecHitProbability(const edm::ParameterSet &)
double pt() const final
transverse momentum
MonitorElement * recHitPt_EP_[6]
trackingRecHit_iterator recHitsEnd() const
Iterator to last hit on the track.
virtual TrackRef outerTrack() const
reference to Track reconstructed in the muon detector only
std::string subsystemFolder_
MonitorElement * NumberOfMuonPt_EP_
bool isGlobalMuon() const override
double eta() const final
momentum pseudorapidity
MonitorElement * RPCRecHitMuonEta_
MonitorElement * recHitEta_[6]
MonitorElement * recHitPhi_EM_[6]
edm::EDGetTokenT< DcsStatusCollection > scalersRawToDigiLabel_
MonitorElement * NumberOfMuonPt_EM_
MonitorElement * NumberOfMuonPhi_EP_
MonitorElement * NumberOfMuonPt_B_
double phi() const final
momentum azimuthal angle
MonitorElement * recHitPt_B_[6]
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
MonitorElement * recHitPt_EM_[6]
MonitorElement * NumberOfMuonPhi_B_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * NumberOfMuonEta_
void makeDcsInfo(const edm::Event &)
MonitorElement * recHitPhi_B_[6]
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())