CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TGCT.h
Go to the documentation of this file.
1 // -*-C++-*-
2 #ifndef L1TGCT_H
3 #define L1TGCT_H
4 
5 /*
6  * \file L1TGCT.h
7  *
8  * \author J. Berryhill
9  *
10  * Revision 1.23 2010/05/30 10:01:58 tapper
11  * Added one histogram, correlation of sum ET and HT and changed a few labels for the better.
12  *
13  * Revision 1.22 2009/11/19 14:33:13 puigh
14  * modify beginJob
15  *
16  * Revision 1.21 2009/11/02 17:00:04 tapper
17  * Changes to L1TdeGCT (to include energy sums), to L1TDEMON (should not make any difference now) and L1TGCT to add multiple BXs.
18  *
19  * Revision 1.20 2009/06/23 09:48:55 tapper
20  * Added missing occupancy plot for central and forward jets.
21  *
22  * Revision 1.19 2009/06/22 15:58:20 tapper
23  * Added MET vs MHT correlation plots (both for magnitude and phi). Still untested!
24  *
25  * Revision 1.18 2009/06/22 15:47:04 tapper
26  * Removed rank difference histograms and added MHT. Untested so far!
27  *
28  * Revision 1.17 2009/05/27 21:49:26 jad
29  * updated Total and Missing Energy histograms and added Overlow plots
30  *
31  * Revision 1.16 2008/11/11 13:20:31 tapper
32  * A whole list of house keeping:
33  * 1. New shifter histogram with central and forward jets together.
34  * 2. Relabelled Ring 0 and Ring 1 to Ring 1 and Ring 2 for HF rings.
35  * 3. Tidied up some histograms names to make all consistent.
36  * 4. Switched eta and phi in 2D plots to match RCT.
37  * 5. Removed 1D eta and phi plots. Will not be needed for Qtests in future.
38  *
39  * Revision 1.15 2008/09/21 14:33:12 jad
40  * updated HF Sums & Counts and added individual Jet Candidates and differences
41  *
42  * Revision 1.14 2008/06/09 11:08:05 tapper
43  * Removed electron sub-folders with histograms per eta and phi bin.
44  *
45  * Revision 1.13 2008/06/02 11:08:58 tapper
46  * Added HF ring histograms....
47  *
48  * Revision 1.12 2008/04/28 09:23:07 tapper
49  * Added 1D eta and phi histograms for electrons and jets as input to Q tests.
50  *
51  * Revision 1.11 2008/04/25 15:40:21 tapper
52  * Added histograms to EventInfo//errorSummarySegments.
53  *
54  * Revision 1.10 2008/03/01 00:40:00 lat
55  * DQM core migration.
56  *
57  * Revision 1.9 2008/02/20 19:24:24 tapper
58  * Removed noisy include.
59  *
60  * Revision 1.8 2008/02/20 18:59:29 tapper
61  * Ported GCTMonitor histograms into L1TGCT
62  *
63  * Revision 1.7 2007/09/04 02:54:21 wittich
64  * - fix dupe ME in RCT
65  * - put in rank>0 req in GCT
66  * - various small other fixes
67  *
68  * Revision 1.6 2007/08/31 18:14:20 wittich
69  * update GCT packages to reflect GctRawToDigi, and move to raw plots
70  *
71  * Revision 1.5 2007/08/31 11:02:55 wittich
72  * cerr -> LogInfo
73  *
74  * Revision 1.4 2007/02/22 19:43:52 berryhil
75  *
76  *
77  *
78  * InputTag parameters added for all modules
79  *
80  * Revision 1.3 2007/02/19 22:49:53 wittich
81  * - Add RCT monitor
82  *
83  * Revision 1.2 2007/02/19 21:11:23 wittich
84  * - Updates for integrating GCT monitor.
85  * + Adapted right now only the L1E elements thereof.
86  * + added DataFormats/L1Trigger to build file.
87  *
88  *
89 */
90 
91 // system include files
92 #include <memory>
93 #include <unistd.h>
94 
95 
96 #include <iostream>
97 #include <fstream>
98 #include <vector>
99 
100 
101 // user include files
104 
107 
109 
111 
112 // DQM
117 
118 
119 
120 //
121 // class declaration
122 //
123 
124 class L1TGCT : public DQMEDAnalyzer {
125 
126 public:
127 
128 // Constructor
129  L1TGCT(const edm::ParameterSet& ps);
130 
131 // Destructor
132  virtual ~L1TGCT();
133 
134 protected:
135 // Analyze
136  void analyze(const edm::Event& e, const edm::EventSetup& c);
137 
138  virtual void dqmBeginRun(const edm::Run&, const edm::EventSetup&);
139  virtual void bookHistograms(DQMStore::IBooker &ibooker, edm::Run const&, edm::EventSetup const&) override ;
140  virtual void beginLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&);
141 
142 private:
143  // ----------member data ---------------------------
144 
146 
147  // trigger type information
149 
150  // Jet and EM stuff
158 
166 
173 
176 
177  // Energy sums stuff
195 
196  // HF Rings stuff
215 
216  int nev_; // Number of events processed
217  std::string outputFile_; //file name for ROOT ouput
218  bool verbose_;
220  std::ofstream logFile_;
221 
229 
233 
234  //define Token(-s)
247 
248 };
249 
250 #endif
std::ofstream logFile_
Definition: L1TGCT.h:220
MonitorElement * l1GctHtMiss_
Definition: L1TGCT.h:182
MonitorElement * l1GctEtHad_
Definition: L1TGCT.h:191
MonitorElement * l1GctHtMissPhi_
Definition: L1TGCT.h:183
edm::InputTag gctEnergySumsSource_
Definition: L1TGCT.h:226
MonitorElement * l1GctHFRing2TowerCountNegEta_
Definition: L1TGCT.h:204
bool monitorDaemon_
Definition: L1TGCT.h:219
MonitorElement * l1GctEtMissOccBx_
Definition: L1TGCT.h:181
MonitorElement * l1GctCenJetsRank_
Definition: L1TGCT.h:167
MonitorElement * l1GctHFRing1ETSumNegEta_
Definition: L1TGCT.h:206
MonitorElement * l1GctEtTotalEtHadCorr_
Definition: L1TGCT.h:194
MonitorElement * l1GctHFRing1TowerCountPosEta_
Definition: L1TGCT.h:201
MonitorElement * l1GctTauJetsEtEtaPhi_
Definition: L1TGCT.h:154
MonitorElement * l1GctHFRingETSumOccBx_
Definition: L1TGCT.h:211
MonitorElement * l1GctNonIsoEmRank_
Definition: L1TGCT.h:172
MonitorElement * l1GctEtMiss_
Definition: L1TGCT.h:178
std::string monitorDir_
Definition: L1TGCT.h:145
MonitorElement * l1GctHFRing2ETSumNegEta_
Definition: L1TGCT.h:208
MonitorElement * l1GctAllEmOccRankBx_
Definition: L1TGCT.h:175
edm::EDGetTokenT< L1GctJetCandCollection > gctCenJetsSourceToken_
Definition: L1TGCT.h:237
MonitorElement * l1GctEtTotal_
Definition: L1TGCT.h:188
MonitorElement * l1GctHtMissOf_
Definition: L1TGCT.h:184
edm::EDGetTokenT< L1GctHtMissCollection > l1HtMissToken_
Definition: L1TGCT.h:244
MonitorElement * l1GctIsoTauJetsEtEtaPhi_
Definition: L1TGCT.h:155
MonitorElement * l1GctEtHadOccBx_
Definition: L1TGCT.h:193
MonitorElement * l1GctEtTotalOccBx_
Definition: L1TGCT.h:190
edm::InputTag gctIsoTauJetsSource_
Definition: L1TGCT.h:225
edm::EDGetTokenT< L1GctEtTotalCollection > l1EtTotalToken_
Definition: L1TGCT.h:246
MonitorElement * l1GctHFRingTowerCountOccBx_
Definition: L1TGCT.h:212
MonitorElement * l1GctForJetsRank_
Definition: L1TGCT.h:168
MonitorElement * l1GctTauJetsRank_
Definition: L1TGCT.h:169
MonitorElement * l1GctHFRing2ETSumPosEta_
Definition: L1TGCT.h:207
virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
Definition: L1TGCT.cc:228
edm::InputTag gctCenJetsSource_
Definition: L1TGCT.h:222
L1TGCT(const edm::ParameterSet &ps)
Definition: L1TGCT.cc:60
MonitorElement * l1GctEtMissPhi_
Definition: L1TGCT.h:179
MonitorElement * l1GctCenJetsEtEtaPhi_
Definition: L1TGCT.h:152
virtual void dqmBeginRun(const edm::Run &, const edm::EventSetup &)
Definition: L1TGCT.cc:224
edm::InputTag gctTauJetsSource_
Definition: L1TGCT.h:224
edm::EDGetTokenT< L1GctEmCandCollection > gctIsoEmSourceToken_
Definition: L1TGCT.h:235
MonitorElement * l1GctAllJetsEtEtaPhi_
Definition: L1TGCT.h:151
MonitorElement * l1GctHFRing1ETSumPosEta_
Definition: L1TGCT.h:205
edm::EDGetTokenT< L1GctJetCandCollection > gctTauJetsSourceToken_
Definition: L1TGCT.h:239
edm::EDGetTokenT< L1GctHFBitCountsCollection > l1HFCountsToken_
Definition: L1TGCT.h:242
MonitorElement * l1GctHFRingRatioNegEta_
Definition: L1TGCT.h:210
MonitorElement * l1GctCenJetsOccEtaPhi_
Definition: L1TGCT.h:160
MonitorElement * l1GctIsoTauJetsRank_
Definition: L1TGCT.h:170
MonitorElement * l1GctEtMissOf_
Definition: L1TGCT.h:180
MonitorElement * l1GctForJetsEtEtaPhi_
Definition: L1TGCT.h:153
MonitorElement * l1GctIsoEmRank_
Definition: L1TGCT.h:171
MonitorElement * l1GctHtMissOccBx_
Definition: L1TGCT.h:185
void analyze(const edm::Event &e, const edm::EventSetup &c)
Definition: L1TGCT.cc:232
edm::EDGetTokenT< L1GctEmCandCollection > gctNonIsoEmSourceToken_
Definition: L1TGCT.h:236
MonitorElement * runId_
Definition: L1TGCT.h:213
MonitorElement * l1GctHFRing2TowerCountPosEta_
Definition: L1TGCT.h:203
edm::EDGetTokenT< L1GctEtHadCollection > l1EtHadToken_
Definition: L1TGCT.h:245
MonitorElement * l1GctHFRing2TowerCountPosEtaNegEta_
Definition: L1TGCT.h:200
edm::InputTag gctIsoEmSource_
Definition: L1TGCT.h:227
MonitorElement * triggerType_
Definition: L1TGCT.h:148
MonitorElement * l1GctEtMissHtMissCorrPhi_
Definition: L1TGCT.h:187
MonitorElement * l1GctNonIsoEmOccEtaPhi_
Definition: L1TGCT.h:165
int filterTriggerType_
Definition: L1TGCT.h:232
MonitorElement * lumisecId_
Definition: L1TGCT.h:214
edm::InputTag gctForJetsSource_
Definition: L1TGCT.h:223
MonitorElement * l1GctNonIsoEmRankEtaPhi_
Definition: L1TGCT.h:157
int nev_
Definition: L1TGCT.h:216
MonitorElement * l1GctIsoTauJetsOccEtaPhi_
Definition: L1TGCT.h:163
Definition: L1TGCT.h:124
bool m_stage1_layer2_
filter TriggerType
Definition: L1TGCT.h:231
MonitorElement * l1GctHFRing1PosEtaNegEta_
Definition: L1TGCT.h:197
virtual ~L1TGCT()
Definition: L1TGCT.cc:107
edm::EDGetTokenT< L1GctHFRingEtSumsCollection > gctEnergySumsSourceToken_
Definition: L1TGCT.h:241
MonitorElement * l1GctAllJetsOccEtaPhi_
Definition: L1TGCT.h:159
edm::EDGetTokenT< L1GctJetCandCollection > gctIsoTauJetsSourceToken_
Definition: L1TGCT.h:240
MonitorElement * l1GctHFRingRatioPosEta_
Definition: L1TGCT.h:209
virtual void bookHistograms(DQMStore::IBooker &ibooker, edm::Run const &, edm::EventSetup const &) override
Definition: L1TGCT.cc:111
MonitorElement * l1GctIsoEmRankEtaPhi_
Definition: L1TGCT.h:156
MonitorElement * l1GctHFRing1TowerCountPosEtaNegEta_
Definition: L1TGCT.h:199
edm::EDGetTokenT< L1GctJetCandCollection > gctForJetsSourceToken_
Definition: L1TGCT.h:238
MonitorElement * l1GctEtHadOf_
Definition: L1TGCT.h:192
std::string outputFile_
Definition: L1TGCT.h:217
MonitorElement * l1GctForJetsOccEtaPhi_
Definition: L1TGCT.h:161
MonitorElement * l1GctHFRing1TowerCountNegEta_
Definition: L1TGCT.h:202
edm::EDGetTokenT< L1GctEtMissCollection > l1EtMissToken_
Definition: L1TGCT.h:243
bool verbose_
Definition: L1TGCT.h:218
MonitorElement * l1GctEtTotalOf_
Definition: L1TGCT.h:189
MonitorElement * l1GctAllJetsOccRankBx_
Definition: L1TGCT.h:174
MonitorElement * l1GctEtMissHtMissCorr_
Definition: L1TGCT.h:186
MonitorElement * l1GctHFRing2PosEtaNegEta_
Definition: L1TGCT.h:198
edm::InputTag gctNonIsoEmSource_
Definition: L1TGCT.h:228
MonitorElement * l1GctTauJetsOccEtaPhi_
Definition: L1TGCT.h:162
Definition: Run.h:41
MonitorElement * l1GctIsoEmOccEtaPhi_
Definition: L1TGCT.h:164