15 muPtCut_ =
pset.getUntrackedParameter<
double>(
"MuonPtCut", 3.0);
16 muEtaCut_ =
pset.getUntrackedParameter<
double>(
"MuonEtaCut", 1.9);
27 edm::LogInfo(
"rpcrechitprobability") <<
"[RPCRecHitProbability]: Begin Run ";
51 for (
int i = 0;
i < 6;
i++) {
54 name << (
i + 1) <<
"RecHitMuonEta";
55 title <<
"At least " << (
i + 1) <<
" Cluster vs Eta";
60 name << (
i + 1) <<
"RecHitMuonPhiB";
61 title <<
"At least " << (
i + 1) <<
" Cluster vs Phi-Barrel";
66 name << (
i + 1) <<
"RecHitMuonPtB";
67 title <<
"At least " << (
i + 1) <<
" Cluster vs Pt-Barrel";
72 name << (
i + 1) <<
"RecHitMuonPhiEP";
73 title <<
"At least " << (
i + 1) <<
" Cluster vs Phi-Endcap+";
78 name << (
i + 1) <<
"RecHitMuonPtEP";
79 title <<
"At least " << (
i + 1) <<
" Cluster vs Pt-Endcap+";
84 name << (
i + 1) <<
"RecHitMuonPhiEM";
85 title <<
"At least " << (
i + 1) <<
" Cluster vs Phi-Endcap-";
90 name << (
i + 1) <<
"RecHitMuonPtEM";
91 title <<
"At least " << (
i + 1) <<
" Cluster vs Pt-Endcap-";
103 edm::LogWarning(
"rpcrechitprobability") <<
"[RPCRecHitProbability]: DCS bit OFF";
108 edm::LogInfo(
"rpcrechitprobability") <<
"[RPCRecHitProbability]: Beginning analyzing event " <<
counter;
113 std::map<RPCDetId, std::vector<RPCRecHit> > rechitMuon;
116 int nStaMuons = muonCands->
size();
118 for (
int i = 0;
i < nStaMuons;
i++) {
124 float eta = muCand->
eta();
125 float pt = muCand->
pt();
129 float phi = muCand->
phi();
136 }
else if (
eta < -0.8) {
145 std::vector<TrackingRecHitRef> rpcTrackRecHits;
149 int recHitCounter = 0;
151 if (!(*it)->isValid())
153 int muSubDetId = (*it)->geographicalId().subdetId();
162 while (recHitCounter >=
j + 1 &&
j < 6) {
168 }
else if (
eta < -0.8) {
180 edm::LogError(
"rpcrechitprobability") <<
"[RPCRecHitProbability]: Muons - Product not valid for event" <<
counter;
198 for (
auto& dcsStat : *dcsStatus) {
MonitorElement * RPCRecHitMuonEta_
MonitorElement * NumberOfMuonPhi_EM_
MonitorElement * NumberOfMuonPt_EP_
std::string globalFolder_
double pt() const final
transverse momentum
MonitorElement * NumberOfMuonEta_
virtual void setCurrentFolder(std::string const &fullpath)
MonitorElement * recHitEta_[6]
MonitorElement * NumberOfMuonPt_B_
MonitorElement * NumberOfMuonPt_EM_
MonitorElement * recHitPt_B_[6]
edm::EDGetTokenT< DcsStatusCollection > scalersRawToDigiLabel_
virtual TrackRef outerTrack() const
reference to Track reconstructed in the muon detector only
std::string subsystemFolder_
Log< level::Error, false > LogError
edm::EDGetTokenT< reco::CandidateView > muonLabel_
MonitorElement * recHitPhi_B_[6]
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * recHitPhi_EP_[6]
MonitorElement * recHitPt_EM_[6]
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * NumberOfMuonPhi_EP_
void makeDcsInfo(const edm::Event &)
trackingRecHit_iterator recHitsEnd() const
Iterator to last hit on the track.
MonitorElement * NumberOfMuonPhi_B_
RPCRecHitProbability(const edm::ParameterSet &)
trackingRecHit_iterator recHitsBegin() const
Iterator to first hit on the track.
Log< level::Info, false > LogInfo
MonitorElement * recHitPt_EP_[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 * recHitPhi_EM_[6]
Log< level::Warning, false > LogWarning
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
double phi() const final
momentum azimuthal angle
bool isGlobalMuon() const override
double eta() const final
momentum pseudorapidity