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
|
#ifndef DTScalerInfoTask_H
#define DTScalerInfoTask_H
/*
* \file DTScalerInfoTask.h
*
* \author C. Battilana - CIEMAT
*
*/
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/LuminosityBlock.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/DQMOneEDAnalyzer.h"
#include "DataFormats/DTDigi/interface/DTLocalTriggerCollection.h"
#include "DataFormats/Luminosity/interface/LumiDetails.h"
#include "DataFormats/Scalers/interface/LumiScalers.h"
#include <vector>
#include <string>
#include <map>
class DTTimeEvolutionHisto;
class DTScalerInfoTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
friend class DTMonitorModule;
public:
/// Constructor
DTScalerInfoTask(const edm::ParameterSet& ps);
/// Destructor
~DTScalerInfoTask() override;
protected:
// Book the histograms
void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
///Beginrun
void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
/// Analyze
void analyze(const edm::Event& e, const edm::EventSetup& c) override;
/// To reset the MEs
void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override;
/// Perform trend plot operations
void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override;
private:
int nEvents;
int nEventsInLS;
edm::ParameterSet theParams;
edm::EDGetTokenT<LumiScalersCollection> scalerToken_;
std::map<std::string, DTTimeEvolutionHisto*> trendHistos;
MonitorElement* nEventMonitor;
};
#endif
/* Local Variables: */
/* show-trailing-whitespace: t */
/* truncate-lines: t */
/* End: */
|