DQMOffline
Hcal
interface
HcalRecHitsDQMClient.h
Go to the documentation of this file.
1
#ifndef _DQMOFFLINE_HCAL_HCALRECHITSDQMCLIENT_H_
2
#define _DQMOFFLINE_HCAL_HCALRECHITSDQMCLIENT_H_
3
4
// -*- C++ -*-
5
//
6
//
7
/*
8
Description: This is a RecHits client meant to plot rechits quantities
9
*/
10
11
//
12
// Originally create by: Hongxuan Liu
13
// May 2010
14
//
15
16
#include "
DQMServices/Core/interface/DQMEDAnalyzer.h
"
17
#include "
DQMServices/Core/interface/DQMEDHarvester.h
"
18
#include "
DQMServices/Core/interface/DQMStore.h
"
19
#include "
DataFormats/Common/interface/Handle.h
"
20
#include "
DataFormats/Math/interface/LorentzVector.h
"
21
#include "
FWCore/Framework/interface/Event.h
"
22
#include "
FWCore/Framework/interface/EventSetup.h
"
23
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
24
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
25
#include "
FWCore/ServiceRegistry/interface/Service.h
"
26
#include <
FWCore/Framework/interface/EDAnalyzer.h
>
27
#include "
FWCore/Utilities/interface/ESGetToken.h
"
28
#include <memory>
29
#include <unistd.h>
30
31
#include "
DataFormats/DetId/interface/DetId.h
"
32
#include "
DataFormats/HcalDetId/interface/HcalDetId.h
"
33
#include "
DataFormats/HcalDigi/interface/HcalDigiCollections.h
"
34
#include "
Geometry/CaloGeometry/interface/CaloCellGeometry.h
"
35
#include "
Geometry/CaloGeometry/interface/CaloGeometry.h
"
36
#include "
Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h
"
37
#include "
Geometry/CaloTopology/interface/HcalTopology.h
"
38
#include "
Geometry/Records/interface/CaloGeometryRecord.h
"
39
#include "
Geometry/Records/interface/HcalRecNumberingRecord.h
"
40
#include "
Geometry/HcalCommonData/interface/HcalDDDRecConstants.h
"
41
42
#include <fstream>
43
#include <iostream>
44
#include <vector>
45
46
class
HcalRecHitsDQMClient
:
public
DQMEDHarvester
{
47
private
:
48
std::string
outputFile_
;
49
edm::ParameterSet
conf_
;
50
51
bool
verbose_
;
52
bool
debug_
;
53
54
std::string
dirName_
;
55
std::string
dirNameJet_
;
56
std::string
dirNameMET_
;
57
58
edm::ESGetToken<HcalDDDRecConstants, HcalRecNumberingRecord>
hcalDDDRecConstantsToken_
;
59
edm::ESGetToken<CaloGeometry, CaloGeometryRecord>
caloGeometryRunToken_
;
60
int
maxDepthHB_
,
maxDepthHE_
,
maxDepthHO_
,
maxDepthHF_
,
maxDepthAll_
;
61
62
int
nChannels_
[5];
// 0:any, 1:HB, 2:HE, 3:HO, 4: HF
63
64
public
:
65
explicit
HcalRecHitsDQMClient
(
const
edm::ParameterSet
&);
66
~HcalRecHitsDQMClient
()
override
;
67
68
void
beginJob
(
void
)
override
;
69
void
beginRun
(
edm::Run
const
&,
edm::EventSetup
const
&)
override
;
70
void
dqmEndJob
(
DQMStore::IBooker
&,
71
DQMStore::IGetter
&)
override
;
// performed in the endJob
72
73
int
HcalRecHitsEndjob
(
const
std::vector<MonitorElement *> &hcalMEs);
74
75
float
phifactor
(
int
ieta
);
76
};
77
78
#endif // _DQMOFFLINE_HCAL_HCALRECHITSDQMCLIENT_H_
DQMEDHarvester.h
HcalRecHitsDQMClient::~HcalRecHitsDQMClient
~HcalRecHitsDQMClient() override
Definition:
HcalRecHitsDQMClient.cc:23
Handle.h
MessageLogger.h
HcalRecHitsDQMClient::dirNameMET_
std::string dirNameMET_
Definition:
HcalRecHitsDQMClient.h:56
HcalRecHitsDQMClient::maxDepthHF_
int maxDepthHF_
Definition:
HcalRecHitsDQMClient.h:60
HcalRecHitsDQMClient::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition:
HcalRecHitsDQMClient.cc:63
edm::Run
Definition:
Run.h:45
HcalRecHitsDQMClient
Definition:
HcalRecHitsDQMClient.h:46
DQMStore.h
HcalRecNumberingRecord.h
EDAnalyzer.h
ESGetToken.h
HcalRecHitsDQMClient::maxDepthHO_
int maxDepthHO_
Definition:
HcalRecHitsDQMClient.h:60
HcalRecHitsDQMClient::hcalDDDRecConstantsToken_
edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > hcalDDDRecConstantsToken_
Definition:
HcalRecHitsDQMClient.h:58
HcalRecHitsDQMClient::beginJob
void beginJob(void) override
Definition:
HcalRecHitsDQMClient.cc:25
HcalRecHitsDQMClient::maxDepthHE_
int maxDepthHE_
Definition:
HcalRecHitsDQMClient.h:60
Service.h
HcalDigiCollections.h
HcalRecHitsDQMClient::nChannels_
int nChannels_[5]
Definition:
HcalRecHitsDQMClient.h:62
HcalRecHitsDQMClient::phifactor
float phifactor(int ieta)
Definition:
HcalRecHitsDQMClient.cc:361
HcalRecHitsDQMClient::maxDepthHB_
int maxDepthHB_
Definition:
HcalRecHitsDQMClient.h:60
DQMEDAnalyzer.h
CaloGeometryRecord.h
HcalRecHitsDQMClient::outputFile_
std::string outputFile_
Definition:
HcalRecHitsDQMClient.h:48
LEDCalibrationChannels.ieta
ieta
Definition:
LEDCalibrationChannels.py:63
CaloSubdetectorGeometry.h
HcalRecHitsDQMClient::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition:
HcalRecHitsDQMClient.cc:27
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
HcalDetId.h
HcalRecHitsDQMClient::verbose_
bool verbose_
Definition:
HcalRecHitsDQMClient.h:51
LorentzVector.h
edm::EventSetup
Definition:
EventSetup.h:58
edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
HcalRecHitsDQMClient::maxDepthAll_
int maxDepthAll_
Definition:
HcalRecHitsDQMClient.h:60
DQMEDHarvester
Definition:
DQMEDHarvester.py:1
HcalTopology.h
CaloCellGeometry.h
DetId.h
HcalRecHitsDQMClient::dirNameJet_
std::string dirNameJet_
Definition:
HcalRecHitsDQMClient.h:55
dqm::implementation::IGetter
Definition:
DQMStore.h:484
CaloGeometry.h
HcalDDDRecConstants.h
HcalRecHitsDQMClient::caloGeometryRunToken_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryRunToken_
Definition:
HcalRecHitsDQMClient.h:59
HcalRecHitsDQMClient::HcalRecHitsDQMClient
HcalRecHitsDQMClient(const edm::ParameterSet &)
Definition:
HcalRecHitsDQMClient.cc:13
EventSetup.h
HcalRecHitsDQMClient::debug_
bool debug_
Definition:
HcalRecHitsDQMClient.h:52
dqm::implementation::IBooker
Definition:
DQMStore.h:43
HcalRecHitsDQMClient::conf_
edm::ParameterSet conf_
Definition:
HcalRecHitsDQMClient.h:49
ParameterSet.h
HcalRecHitsDQMClient::dirName_
std::string dirName_
Definition:
HcalRecHitsDQMClient.h:54
HcalRecHitsDQMClient::HcalRecHitsEndjob
int HcalRecHitsEndjob(const std::vector< MonitorElement * > &hcalMEs)
Definition:
HcalRecHitsDQMClient.cc:98
Generated for CMSSW Reference Manual by
1.8.16