1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
#ifndef DTDataIntegrity_Test_H
#define DTDataIntegrity_Test_H
/** \class DTDataIntegrityTest
* *
* DQM Client to check the data integrity
*
* \author S. Bolognesi - INFN TO
*
* threadsafe version (//-) oct/nov 2014 - WATWanAbdullah ncpp-um-my
*
*
*/
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/LuminosityBlock.h"
#include "DataFormats/DTDigi/interface/DTuROSControlData.h"
#include "CondFormats/DataRecord/interface/DTReadOutMappingRcd.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/DQMEDHarvester.h"
class DTReadOutMapping;
class DTDataIntegrityTest : public DQMEDHarvester {
public:
/// Constructor
DTDataIntegrityTest(const edm::ParameterSet &ps);
/// Destructor
~DTDataIntegrityTest() override;
protected:
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
/// Get the ME name
std::string getMEName(std::string histoType, int FEDId);
/// DQM Client Diagnostic
void dqmEndLuminosityBlock(DQMStore::IBooker &,
DQMStore::IGetter &,
edm::LuminosityBlock const &,
edm::EventSetup const &) override;
private:
int readOutToGeometry(int dduId, int rosNumber, int &wheel, int §or);
int getROS(int uROS, int link);
//Number of onUpdates
int nupdates;
// prescale on the # of LS to update the test
int prescaleFactor;
//Counter between 0 and nTimeBin
int counter;
int nevents;
unsigned int nLumiSegs;
int run;
bool bookingdone;
edm::ESGetToken<DTReadOutMapping, DTReadOutMappingRcd> mappingToken_;
const DTReadOutMapping *mapping;
// Monitor Elements
MonitorElement *summaryHisto;
MonitorElement *summaryTDCHisto;
MonitorElement *glbSummaryHisto;
};
#endif
|