34 edm::LogInfo (
"rpcrechitprobability") <<
"[RPCRecHitProbability]: Begin Run " ;
79 for(
int i = 0 ;
i< 6 ;
i++) {
82 name<<(
i+1)<<
"RecHitMuonEta";
83 title<<
"At least " <<(
i+1)<<
" Cluster vs Eta";
88 name<<(
i+1)<<
"RecHitMuonPhiB";
89 title<<
"At least " <<(
i+1)<<
" Cluster vs Phi-Barrel";
94 name<<(
i+1)<<
"RecHitMuonPtB";
95 title<<
"At least " <<(
i+1)<<
" Cluster vs Pt-Barrel";
100 name<<(
i+1)<<
"RecHitMuonPhiEP";
101 title<<
"At least " <<(
i+1)<<
" Cluster vs Phi-Endcap+";
106 name<<(
i+1)<<
"RecHitMuonPtEP";
107 title<<
"At least " <<(
i+1)<<
" Cluster vs Pt-Endcap+";
112 name<<(
i+1)<<
"RecHitMuonPhiEM";
113 title<<
"At least " <<(
i+1)<<
" Cluster vs Phi-Endcap-";
118 name<<(
i+1)<<
"RecHitMuonPtEM";
119 title<<
"At least " <<(
i+1)<<
" Cluster vs Pt-Endcap-";
140 edm::LogWarning (
"rpcrechitprobability") <<
"[RPCRecHitProbability]: DCS bit OFF" ;
145 edm::LogInfo (
"rpcrechitprobability") <<
"[RPCRecHitProbability]: Beginning analyzing event " <<
counter;
150 std::map<RPCDetId , std::vector<RPCRecHit> > rechitMuon;
154 int nStaMuons = muonCands->size();
156 for(
int i = 0;
i < nStaMuons;
i++ ) {
162 float eta = muCand->
eta();
163 float pt = muCand->
pt();
166 float phi = muCand->
phi();
173 }
else if (eta < -0.8){
182 std::vector<TrackingRecHitRef > rpcTrackRecHits;
186 int recHitCounter = 0;
188 if (!(*it)->isValid ())
continue;
189 int muSubDetId = (*it)->geographicalId().subdetId();
198 while (recHitCounter >= j+1 && j<6){
204 }
else if (eta < -0.8){
218 edm::LogError (
"rpcrechitprobability") <<
"[RPCRecHitProbability]: Muons - Product not valid for event" <<
counter;
240 for (DcsStatusCollection::const_iterator dcsStatusItr = dcsStatus->begin();
241 dcsStatusItr != dcsStatus->end(); ++dcsStatusItr){
MonitorElement * RPCRecHitMuonEta_
void beginRun(const edm::Run &r, const edm::EventSetup &c)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
MonitorElement * NumberOfMuonPhi_EM_
MonitorElement * NumberOfMuonPt_EP_
std::string globalFolder_
MonitorElement * NumberOfMuonEta_
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
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_
virtual void endJob(void)
MonitorElement * recHitPhi_B_[6]
MonitorElement * recHitPhi_EP_[6]
MonitorElement * recHitPt_EM_[6]
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
MonitorElement * NumberOfMuonPhi_EP_
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
void makeDcsInfo(const edm::Event &)
void removeElement(const std::string &name)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
MonitorElement * NumberOfMuonPhi_B_
trackingRecHit_iterator recHitsBegin() const
Iterator to first hit on the track.
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
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 &)
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
MonitorElement * recHitPt_EP_[6]
MonitorElement * recHitPhi_EM_[6]
return(e1-e2)*(e1-e2)+dp *dp
static std::atomic< unsigned int > counter
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
virtual float pt() const GCC11_FINAL
transverse momentum
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
void setCurrentFolder(const std::string &fullpath)
trackingRecHit_iterator recHitsEnd() const
Iterator to last hit on the track.