CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GEMDAQStatusSource.h
Go to the documentation of this file.
1 #ifndef DQM_GEM_INTERFACE_GEMDAQStatusSource_h
2 #define DQM_GEM_INTERFACE_GEMDAQStatusSource_h
3 
12 
16 
18 
24 
26 
27 #include <string>
28 
29 //----------------------------------------------------------------------------------------------------
30 
32 public:
33  explicit GEMDAQStatusSource(const edm::ParameterSet &cfg);
34  ~GEMDAQStatusSource() override{};
35  static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
36 
37 protected:
38  void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override{};
39  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
40  void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override;
41 
42  void FillWithRiseErr(MonitorElement *h, Int_t nX, Int_t nY, Bool_t &bErr) {
43  h->Fill(nX, nY);
44  bErr = true;
45  };
46 
47 private:
48  int ProcessWithMEMap3(BookingHelper &bh, ME3IdsKey key) override;
49  int ProcessWithMEMap3WithChamber(BookingHelper &bh, ME4IdsKey key) override;
50 
51  void SetLabelAMC13Status(MonitorElement *h2Status);
52  void SetLabelAMCStatus(MonitorElement *h2Status);
53  void SetLabelOHStatus(MonitorElement *h2Status);
54  void SetLabelVFATStatus(MonitorElement *h2Status);
55 
60 
64 
67 
71 
75 
76  Int_t nBXMin_, nBXMax_;
77 
78  std::map<UInt_t, int> mapFEDIdToRe_;
79  Int_t nAMCSlots_;
80 
81  int nBitAMC13_ = 10;
82  int nBitAMC_ = 12;
83  int nBitOH_ = 17;
84  int nBitVFAT_ = 7;
85 };
86 
87 #endif // DQM_GEM_INTERFACE_GEMDAQStatusSource_h
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
int ProcessWithMEMap3WithChamber(BookingHelper &bh, ME4IdsKey key) override
GEMDAQStatusSource(const edm::ParameterSet &cfg)
tuple cfg
Definition: looper.py:296
void FillWithRiseErr(MonitorElement *h, Int_t nX, Int_t nY, Bool_t &bErr)
edm::EDGetToken tagAMC13_
MonitorElement * h2AMCStatusNeg_
MEMapInfT< MEMap3Ids, ME3IdsKey > MEMap3Inf
Definition: GEMDQMBase.h:456
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
MonitorElement * h2AMC13Status_
std::tuple< Int_t, Int_t, Int_t, Int_t > ME4IdsKey
std::map< UInt_t, int > mapFEDIdToRe_
edm::EDGetToken tagVFAT_
void Fill(long long x)
MEMap3Inf mapStatusWarnVFATPerLayer_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::EDGetToken tagOH_
MonitorElement * h2SummaryStatusError
MEMap3Inf mapStatusErrVFATPerLayer_
void SetLabelAMCStatus(MonitorElement *h2Status)
tuple key
prepare the HTCondor submission files and eventually submit them
void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override
void SetLabelAMC13Status(MonitorElement *h2Status)
~GEMDAQStatusSource() override
MonitorElement * h2SummaryStatusAll
void SetLabelVFATStatus(MonitorElement *h2Status)
void SetLabelOHStatus(MonitorElement *h2Status)
int ProcessWithMEMap3(BookingHelper &bh, ME3IdsKey key) override
std::tuple< Int_t, Int_t, Int_t > ME3IdsKey
MonitorElement * h2SummaryStatusWarning
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
Definition: Run.h:45
MonitorElement * h2AMCStatusPos_
edm::EDGetToken tagAMC_