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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
#ifndef L1TDTTPG_H
#define L1TDTTPG_H
/*
* \file L1TDTTPG.h
*
* \author J. Berryhill
*
*/
// system include files
#include <fstream>
#include <memory>
#include <unistd.h>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.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"
// L1 containers
#include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambPhContainer.h"
#include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambPhDigi.h"
#include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambThContainer.h"
#include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambThDigi.h"
#include "DataFormats/L1DTTrackFinder/interface/L1MuDTTrackContainer.h"
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
//
// class decleration
//
class L1TDTTPG : public DQMEDAnalyzer {
public:
// Constructor
L1TDTTPG(const edm::ParameterSet& ps);
// Destructor
~L1TDTTPG() override;
protected:
// Analyze
void analyze(const edm::Event& e, const edm::EventSetup& c) override;
// BeginRun
void bookHistograms(DQMStore::IBooker& ibooker, edm::Run const&, edm::EventSetup const&) override;
void dqmBeginRun(edm::Run const&, edm::EventSetup const&) override;
private:
void setMapPhLabel(MonitorElement* me);
void setMapThLabel(MonitorElement* me);
// ----------member data ---------------------------
MonitorElement* dttpgphbx[8];
MonitorElement* dttpgphbxcomp;
MonitorElement* dttpgphwheel[3];
MonitorElement* dttpgphsector[3];
MonitorElement* dttpgphstation[3];
/* MonitorElement* dttpgphphi[3]; */
/* MonitorElement* dttpgphphiB[3]; */
MonitorElement* dttpgphquality[3];
MonitorElement* dttpgphts2tag[3];
/* MonitorElement* dttpgphbxcnt[3]; */
MonitorElement* dttpgphntrack;
MonitorElement* dttpgphmap;
MonitorElement* dttpgphmapbx[3];
MonitorElement* dttpgphmap2nd;
MonitorElement* dttpgphmapcorr;
MonitorElement* dttpgphbestmap;
MonitorElement* dttpgphbestmapcorr;
MonitorElement* dttpgthbx[3];
MonitorElement* dttpgthwheel[3];
MonitorElement* dttpgthsector[3];
MonitorElement* dttpgthstation[3];
MonitorElement* dttpgththeta[3];
MonitorElement* dttpgthquality[3];
MonitorElement* dttpgthntrack;
MonitorElement* dttpgthmap;
MonitorElement* dttpgthmapbx[3];
MonitorElement* dttpgthmaph;
MonitorElement* dttpgthbestmap;
MonitorElement* dttpgthbestmaph;
MonitorElement* dttf_p_phi[3];
MonitorElement* dttf_p_pt[3];
MonitorElement* dttf_p_q[3];
MonitorElement* dttf_p_qual[3];
int nev_; // Number of events processed
std::string outputFile_; //file name for ROOT ouput
bool verbose_;
bool monitorDaemon_;
std::ofstream logFile_;
edm::EDGetTokenT<L1MuDTChambPhContainer> dttpgSourcePhContainer_token_;
edm::EDGetTokenT<L1MuDTChambThContainer> dttpgSourceThContainer_token_;
edm::InputTag dttpgSource_;
std::string trstring_;
edm::EDGetTokenT<L1MuDTTrackContainer> trToken_;
};
#endif
|