Skip to content

Commit 0b98ed0

Browse files
authored
Merge pull request cms-sw#34614 from quark2/GEM-onlineDQMForNewDAQStatus-12_0_0_pre3
Updates on GEM onlineDQM due to the updates of DAQ dataformat
2 parents 51de5a6 + 9da52a3 commit 0b98ed0

File tree

14 files changed

+983
-636
lines changed

14 files changed

+983
-636
lines changed
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
#ifndef DQM_GEM_INTERFACE_GEMDAQStatusSource_h
2+
#define DQM_GEM_INTERFACE_GEMDAQStatusSource_h
3+
4+
#include "FWCore/Framework/interface/ESHandle.h"
5+
#include "FWCore/Framework/interface/MakerMacros.h"
6+
#include "FWCore/PluginManager/interface/ModuleDef.h"
7+
#include "FWCore/Framework/interface/Event.h"
8+
#include "FWCore/Framework/interface/EventSetup.h"
9+
#include "FWCore/ParameterSet/interface/ParameterSet.h"
10+
#include "FWCore/Utilities/interface/InputTag.h"
11+
#include "FWCore/MessageLogger/interface/MessageLogger.h"
12+
13+
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
14+
#include "DQMServices/Core/interface/DQMStore.h"
15+
#include "DQMServices/Core/interface/MonitorElement.h"
16+
17+
#include "Validation/MuonGEMHits/interface/GEMValidationUtils.h"
18+
19+
#include "DataFormats/GEMDigi/interface/GEMDigiCollection.h"
20+
#include "DataFormats/GEMDigi/interface/GEMVFATStatusCollection.h"
21+
#include "DataFormats/GEMDigi/interface/GEMOHStatusCollection.h"
22+
#include "DataFormats/GEMDigi/interface/GEMAMCStatusCollection.h"
23+
#include "DataFormats/GEMDigi/interface/GEMAMC13StatusCollection.h"
24+
25+
#include "DQM/GEM/interface/GEMDQMBase.h"
26+
27+
#include <string>
28+
29+
//----------------------------------------------------------------------------------------------------
30+
31+
class GEMDAQStatusSource : public GEMDQMBase {
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+
56+
edm::EDGetToken tagVFAT_;
57+
edm::EDGetToken tagOH_;
58+
edm::EDGetToken tagAMC_;
59+
edm::EDGetToken tagAMC13_;
60+
61+
MonitorElement *h2AMC13Status_;
62+
MonitorElement *h2AMCStatusPos_;
63+
MonitorElement *h2AMCStatusNeg_;
64+
65+
MEMap3Inf mapStatusOH_;
66+
MEMap3Inf mapStatusVFAT_;
67+
68+
MEMap3Inf mapStatusWarnVFATPerLayer_;
69+
MEMap3Inf mapStatusErrVFATPerLayer_;
70+
MEMap4Inf mapStatusVFATPerCh_;
71+
72+
MonitorElement *h2SummaryStatusWarning;
73+
MonitorElement *h2SummaryStatusError;
74+
75+
Int_t nBXMin_, nBXMax_;
76+
77+
std::map<UInt_t, int> mapFEDIdToRe_;
78+
Int_t nAMCSlots_;
79+
80+
int nBitAMC13_ = 10;
81+
int nBitAMC_ = 12;
82+
int nBitOH_ = 17;
83+
int nBitVFAT_ = 7;
84+
};
85+
86+
#endif // DQM_GEM_INTERFACE_GEMDAQStatusSource_h

0 commit comments

Comments
 (0)