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
|
#ifndef DTSegmentsTask_H
#define DTSegmentsTask_H
/** \class DTSegmentsTask
* DQM Analysis of 4D DT segments
*
* \author G. Mila - INFN Torino
*/
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
//RecHit
#include "DataFormats/DTRecHit/interface/DTRecSegment4DCollection.h"
#include "CondFormats/DataRecord/interface/DTStatusFlagRcd.h"
#include "CondFormats/DTObjects/interface/DTStatusFlag.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
#include <string>
#include <vector>
class DTSegmentsTask : public DQMEDAnalyzer {
public:
/// Constructor
DTSegmentsTask(const edm::ParameterSet &pset);
/// Destructor
~DTSegmentsTask() override;
/// book the histos
void analyze(const edm::Event &, const edm::EventSetup &) override;
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
protected:
private:
// Switch for verbosity
bool debug;
bool checkNoisyChannels;
edm::ParameterSet parameters;
const edm::ESGetToken<DTStatusFlag, DTStatusFlagRcd> statusMapToken_;
// the histos
std::vector<MonitorElement *> phiHistos;
std::vector<MonitorElement *> thetaHistos;
// Label of 4D segments in the event
edm::EDGetTokenT<DTRecSegment4DCollection> theRecHits4DLabel_;
};
#endif
|