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 <memory>
28
#include <unistd.h>
29
30
#include "
DataFormats/DetId/interface/DetId.h
"
31
#include "
DataFormats/HcalDetId/interface/HcalDetId.h
"
32
#include "
DataFormats/HcalDigi/interface/HcalDigiCollections.h
"
33
#include "
FWCore/Framework/interface/ESHandle.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
41
#include <fstream>
42
#include <iostream>
43
#include <vector>
44
45
class
HcalRecHitsDQMClient
:
public
DQMEDHarvester
{
46
private
:
47
std::string
outputFile_
;
48
edm::ParameterSet
conf_
;
49
50
bool
verbose_
;
51
bool
debug_
;
52
53
std::string
dirName_
;
54
std::string
dirNameJet_
;
55
std::string
dirNameMET_
;
56
57
const
HcalDDDRecConstants
*
hcons
;
58
int
maxDepthHB_
,
maxDepthHE_
,
maxDepthHO_
,
maxDepthHF_
,
maxDepthAll_
;
59
60
int
nChannels_
[5];
// 0:any, 1:HB, 2:HE, 3:HO, 4: HF
61
62
public
:
63
explicit
HcalRecHitsDQMClient
(
const
edm::ParameterSet
&);
64
~HcalRecHitsDQMClient
()
override
;
65
66
void
beginJob
(
void
)
override
;
67
void
beginRun
(
edm::Run
const
&,
edm::EventSetup
const
&)
override
;
68
void
dqmEndJob
(
DQMStore::IBooker
&,
69
DQMStore::IGetter
&)
override
;
// performed in the endJob
70
71
int
HcalRecHitsEndjob
(
const
std::vector<MonitorElement *> &hcalMEs);
72
73
float
phifactor
(
int
ieta
);
74
};
75
76
#endif // _DQMOFFLINE_HCAL_HCALRECHITSDQMCLIENT_H_
DQMEDHarvester.h
HcalRecHitsDQMClient::~HcalRecHitsDQMClient
~HcalRecHitsDQMClient() override
Definition:
HcalRecHitsDQMClient.cc:18
Handle.h
MessageLogger.h
HcalRecHitsDQMClient::dirNameMET_
std::string dirNameMET_
Definition:
HcalRecHitsDQMClient.h:55
HcalRecHitsDQMClient::maxDepthHF_
int maxDepthHF_
Definition:
HcalRecHitsDQMClient.h:58
ESHandle.h
HcalRecHitsDQMClient::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition:
HcalRecHitsDQMClient.cc:63
edm::Run
Definition:
Run.h:45
HcalRecHitsDQMClient
Definition:
HcalRecHitsDQMClient.h:45
DQMStore.h
HcalRecNumberingRecord.h
EDAnalyzer.h
HcalRecHitsDQMClient::maxDepthHO_
int maxDepthHO_
Definition:
HcalRecHitsDQMClient.h:58
HcalRecHitsDQMClient::hcons
const HcalDDDRecConstants * hcons
Definition:
HcalRecHitsDQMClient.h:57
HcalRecHitsDQMClient::beginJob
void beginJob(void) override
Definition:
HcalRecHitsDQMClient.cc:20
HcalRecHitsDQMClient::maxDepthHE_
int maxDepthHE_
Definition:
HcalRecHitsDQMClient.h:58
Service.h
HcalDigiCollections.h
HcalRecHitsDQMClient::nChannels_
int nChannels_[5]
Definition:
HcalRecHitsDQMClient.h:60
HcalRecHitsDQMClient::phifactor
float phifactor(int ieta)
Definition:
HcalRecHitsDQMClient.cc:361
HcalRecHitsDQMClient::maxDepthHB_
int maxDepthHB_
Definition:
HcalRecHitsDQMClient.h:58
DQMEDAnalyzer.h
CaloGeometryRecord.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
HcalRecHitsDQMClient::outputFile_
std::string outputFile_
Definition:
HcalRecHitsDQMClient.h:47
LEDCalibrationChannels.ieta
ieta
Definition:
LEDCalibrationChannels.py:63
CaloSubdetectorGeometry.h
HcalRecHitsDQMClient::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition:
HcalRecHitsDQMClient.cc:22
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
HcalDetId.h
HcalRecHitsDQMClient::verbose_
bool verbose_
Definition:
HcalRecHitsDQMClient.h:50
LorentzVector.h
edm::EventSetup
Definition:
EventSetup.h:57
HcalRecHitsDQMClient::maxDepthAll_
int maxDepthAll_
Definition:
HcalRecHitsDQMClient.h:58
DQMEDHarvester
Definition:
DQMEDHarvester.py:1
HcalTopology.h
CaloCellGeometry.h
DetId.h
HcalRecHitsDQMClient::dirNameJet_
std::string dirNameJet_
Definition:
HcalRecHitsDQMClient.h:54
dqm::implementation::IGetter
Definition:
DQMStore.h:484
CaloGeometry.h
HcalRecHitsDQMClient::HcalRecHitsDQMClient
HcalRecHitsDQMClient(const edm::ParameterSet &)
Definition:
HcalRecHitsDQMClient.cc:11
EventSetup.h
HcalRecHitsDQMClient::debug_
bool debug_
Definition:
HcalRecHitsDQMClient.h:51
dqm::implementation::IBooker
Definition:
DQMStore.h:43
HcalDDDRecConstants
Definition:
HcalDDDRecConstants.h:23
HcalRecHitsDQMClient::conf_
edm::ParameterSet conf_
Definition:
HcalRecHitsDQMClient.h:48
ParameterSet.h
HcalRecHitsDQMClient::dirName_
std::string dirName_
Definition:
HcalRecHitsDQMClient.h:53
HcalRecHitsDQMClient::HcalRecHitsEndjob
int HcalRecHitsEndjob(const std::vector< MonitorElement * > &hcalMEs)
Definition:
HcalRecHitsDQMClient.cc:98
Generated for CMSSW Reference Manual by
1.8.16