34 edm::LogInfo (
"rpcrechitprobability") <<
"[RPCRecHitProbability]: Begin Run " ;
54 for(
int i = 0 ;
i< 6 ;
i++) {
57 name<<(
i+1)<<
"RecHitMuonEta";
58 title<<
"At least " <<(
i+1)<<
" Cluster vs Eta";
63 name<<(
i+1)<<
"RecHitMuonPhiB";
64 title<<
"At least " <<(
i+1)<<
" Cluster vs Phi-Barrel";
69 name<<(
i+1)<<
"RecHitMuonPtB";
70 title<<
"At least " <<(
i+1)<<
" Cluster vs Pt-Barrel";
75 name<<(
i+1)<<
"RecHitMuonPhiEP";
76 title<<
"At least " <<(
i+1)<<
" Cluster vs Phi-Endcap+";
81 name<<(
i+1)<<
"RecHitMuonPtEP";
82 title<<
"At least " <<(
i+1)<<
" Cluster vs Pt-Endcap+";
87 name<<(
i+1)<<
"RecHitMuonPhiEM";
88 title<<
"At least " <<(
i+1)<<
" Cluster vs Phi-Endcap-";
93 name<<(
i+1)<<
"RecHitMuonPtEM";
94 title<<
"At least " <<(
i+1)<<
" Cluster vs Pt-Endcap-";
108 edm::LogWarning (
"rpcrechitprobability") <<
"[RPCRecHitProbability]: DCS bit OFF" ;
113 edm::LogInfo (
"rpcrechitprobability") <<
"[RPCRecHitProbability]: Beginning analyzing event " <<
counter;
118 std::map<RPCDetId , std::vector<RPCRecHit> > rechitMuon;
122 int nStaMuons = muonCands->size();
124 for(
int i = 0;
i < nStaMuons;
i++ ) {
130 float eta = muCand->
eta();
131 float pt = muCand->
pt();
134 float phi = muCand->
phi();
141 }
else if (eta < -0.8){
150 std::vector<TrackingRecHitRef > rpcTrackRecHits;
154 int recHitCounter = 0;
156 if (!(*it)->isValid ())
continue;
157 int muSubDetId = (*it)->geographicalId().subdetId();
166 while (recHitCounter >= j+1 && j<6){
172 }
else if (eta < -0.8){
186 edm::LogError (
"rpcrechitprobability") <<
"[RPCRecHitProbability]: Muons - Product not valid for event" <<
counter;
208 for (DcsStatusCollection::const_iterator dcsStatusItr = dcsStatus->begin();
209 dcsStatusItr != dcsStatus->end(); ++dcsStatusItr){
MonitorElement * RPCRecHitMuonEta_
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * NumberOfMuonPhi_EM_
MonitorElement * NumberOfMuonPt_EP_
std::string globalFolder_
MonitorElement * NumberOfMuonEta_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * recHitEta_[6]
MonitorElement * NumberOfMuonPt_B_
MonitorElement * NumberOfMuonPt_EM_
bool isGlobalMuon() const
MonitorElement * recHitPt_B_[6]
edm::EDGetTokenT< DcsStatusCollection > scalersRawToDigiLabel_
std::string subsystemFolder_
edm::EDGetTokenT< reco::CandidateView > muonLabel_
MonitorElement * recHitPhi_B_[6]
virtual double eta() const
momentum pseudorapidity
virtual double pt() const
transverse momentum
MonitorElement * recHitPhi_EP_[6]
MonitorElement * recHitPt_EM_[6]
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * NumberOfMuonPhi_EP_
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
void makeDcsInfo(const edm::Event &)
MonitorElement * book1D(Args &&...args)
MonitorElement * NumberOfMuonPhi_B_
trackingRecHit_iterator recHitsBegin() const
Iterator to first hit on the track.
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
RPCRecHitProbability(const edm::ParameterSet &)
virtual TrackRef outerTrack() const
reference to Track reconstructed in the muon detector only
virtual void analyze(const edm::Event &, const edm::EventSetup &)
MonitorElement * recHitPt_EP_[6]
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
MonitorElement * recHitPhi_EM_[6]
static std::atomic< unsigned int > counter
virtual double phi() const
momentum azimuthal angle
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
TrackingRecHitCollection::base::const_iterator trackingRecHit_iterator
iterator over a vector of reference to TrackingRecHit in the same collection
trackingRecHit_iterator recHitsEnd() const
Iterator to last hit on the track.