1 |
#ifndef UserCode_L1RpcTriggerAnalysis_SynchroCountsGrabber_H
|
2 |
#define UserCode_L1RpcTriggerAnalysis_SynchroCountsGrabber_H
|
3 |
|
4 |
#include "DQM/RPCMonitorClient/interface/RPCLinkSynchroStat.h"
|
5 |
#include "CondFormats/RPCObjects/interface/LinkBoardElectronicIndex.h"
|
6 |
#include "DataFormats/RPCDigi/interface/RPCRawSynchro.h"
|
7 |
#include "FWCore/Framework/interface/ESWatcher.h"
|
8 |
#include "CondFormats/DataRecord/interface/RPCEMapRcd.h"
|
9 |
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
10 |
#include "UserCode/L1RpcTriggerAnalysis/interface/SynchroSelectorMuon.h"
|
11 |
|
12 |
|
13 |
namespace edm { class Event; class EventSetup; class Run;}
|
14 |
namespace reco { class Muon; }
|
15 |
|
16 |
class TObjArray;
|
17 |
|
18 |
class SynchroCountsGrabber {
|
19 |
public:
|
20 |
SynchroCountsGrabber(const edm::ParameterSet& cfg);
|
21 |
~SynchroCountsGrabber();
|
22 |
RPCRawSynchro::ProdItem counts(const edm::Event &ev, const edm::EventSetup &es);
|
23 |
void setMuon(const reco::Muon *aMuon) { theMuon = aMuon; }
|
24 |
void initHistos(TObjArray & histos) {theSelector.initHistos(histos); }
|
25 |
private:
|
26 |
edm::ESWatcher<RPCEMapRcd> theMapWatcher;
|
27 |
RPCReadOutMapping * theCabling;
|
28 |
const reco::Muon * theMuon;
|
29 |
SynchroSelectorMuon theSelector;
|
30 |
bool deltaR_MuonToDetUnit_cutoff, checkInside;
|
31 |
bool theNoSynchroWarning;
|
32 |
};
|
33 |
#endif
|