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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
#ifndef TrackingAnalyser_H
#define TrackingAnalyser_H
#include "FWCore/Utilities/interface/EDGetToken.h"
#include "DQMServices/Core/interface/DQMEDHarvester.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/LuminosityBlock.h"
#include "FWCore/Framework/interface/Run.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/ESWatcher.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <map>
class SiStripFedCabling;
class SiStripDetCabling;
class TrackingActionExecutor;
class FEDRawDataCollection;
class SiStripFedCablingRcd;
class SiStripDetCablingRcd;
class TrackingAnalyser : public DQMEDHarvester {
public:
/// Constructor
TrackingAnalyser(const edm::ParameterSet& ps);
/// Destructor
~TrackingAnalyser() override;
private:
/// BeginJob
void beginJob() override;
/// BeginRun
void beginRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
/// Begin Luminosity Block
void dqmBeginLuminosityBlock(DQMStore::IBooker& ibooker_,
DQMStore::IGetter& igetter_,
edm::LuminosityBlock const& lumiSeg,
edm::EventSetup const& eSetup);
/// End Luminosity Block
void dqmEndLuminosityBlock(DQMStore::IBooker& ibooker_,
DQMStore::IGetter& igetter_,
edm::LuminosityBlock const& lumiSeg,
edm::EventSetup const& eSetup) override;
/// Endjob
void dqmEndJob(DQMStore::IBooker& ibooker_, DQMStore::IGetter& igetter_) override;
private:
bool verbose_;
void checkTrackerFEDsInLS(DQMStore::IGetter& igetter, double iLS);
void checkTrackerFEDsWdataInLS(DQMStore::IGetter& igetter, double iLS);
int fileSaveFrequency_;
int staticUpdateFrequency_;
int globalStatusFilling_;
int shiftReportFrequency_;
edm::EDGetTokenT<FEDRawDataCollection> rawDataToken_;
std::string outputFilePath_;
std::string outputFileName_;
edm::ParameterSet tkMapPSet_;
edm::ESGetToken<SiStripFedCabling, SiStripFedCablingRcd> fedCablingToken_;
edm::ESGetToken<SiStripDetCabling, SiStripDetCablingRcd> detCablingToken_;
edm::ESWatcher<SiStripFedCablingRcd> fedCablingWatcher_;
const SiStripFedCabling* fedCabling_;
const SiStripDetCabling* detCabling_;
TrackingActionExecutor* actionExecutor_;
unsigned long long m_cacheID_;
int nLumiSecs_;
bool trackerFEDsFound_;
bool trackerFEDsWdataFound_;
std::ostringstream html_out_;
std::string nFEDinfoDir_;
std::string nFEDinVsLSname_;
std::string nFEDinWdataVsLSname_;
};
#endif
|