CondTools
Hcal
interface
HcalPedestalsCheck.h
Go to the documentation of this file.
1
#ifndef HcalPedestalsCheck_h
2
#define HcalPedestalsCheck_h
3
4
//
5
// R.Ofierzynski 9.12.2007
6
//
7
// Code to check pedestals for completeness and to compare to previous pedestals
8
9
#include <string>
10
#include <iostream>
11
#include <fstream>
12
#include <sstream>
13
#include <map>
14
#include <vector>
15
#include <algorithm>
16
17
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
18
#include "
FWCore/Framework/interface/Event.h
"
19
#include "
FWCore/Framework/interface/MakerMacros.h
"
20
21
#include "
FWCore/Framework/interface/EventSetup.h
"
22
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
23
24
#include "
CondFormats/HcalObjects/interface/HcalPedestals.h
"
25
#include "
CondFormats/HcalObjects/interface/HcalPedestalWidths.h
"
26
#include "
CondFormats/HcalObjects/interface/HcalGains.h
"
27
#include "
CondFormats/HcalObjects/interface/HcalGainWidths.h
"
28
#include "
CondFormats/HcalObjects/interface/HcalElectronicsMap.h
"
29
30
#include "
DataFormats/HcalDetId/interface/HcalGenericDetId.h
"
31
#include "
DataFormats/DetId/interface/DetId.h
"
32
33
#include "
CondFormats/DataRecord/interface/HcalPedestalsRcd.h
"
34
#include "
CondFormats/DataRecord/interface/HcalPedestalWidthsRcd.h
"
35
#include "
CondFormats/DataRecord/interface/HcalGainsRcd.h
"
36
#include "
CondFormats/DataRecord/interface/HcalGainWidthsRcd.h
"
37
#include "
CondFormats/DataRecord/interface/HcalElectronicsMapRcd.h
"
38
39
#include "
CalibCalorimetry/HcalAlgos/interface/HcalDbASCIIIO.h
"
40
#include "
Geometry/HcalTowerAlgo/interface/HcalGeometry.h
"
41
42
class
HcalPedestalsCheck
:
public
edm::EDAnalyzer
{
43
public
:
44
HcalPedestalsCheck
(
edm::ParameterSet
const
& ps);
45
46
~HcalPedestalsCheck
()
override
;
47
48
void
analyze
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& es)
override
;
49
50
private
:
51
std::string
outfile
;
52
std::string
dumprefs
;
53
std::string
dumpupdate
;
54
bool
validatepedestalsflag
;
55
bool
checkemapflag
;
56
double
epsilon
;
57
edm::ESGetToken<HcalPedestals, HcalPedestalsRcd>
m_tok1
;
58
edm::ESGetToken<HcalPedestals, HcalPedestalsRcd>
m_tok2
;
59
edm::ESGetToken<HcalElectronicsMap, HcalElectronicsMapRcd>
m_tokmap
;
60
// vecDetId getMissingDetIds(std::vector<HcalPedestals> &);
61
};
62
#endif
HcalElectronicsMap.h
HcalPedestalsCheck::outfile
std::string outfile
Definition:
HcalPedestalsCheck.h:51
HcalElectronicsMapRcd.h
HcalPedestalsCheck::validatepedestalsflag
bool validatepedestalsflag
Definition:
HcalPedestalsCheck.h:54
HcalPedestalsCheck::m_tokmap
edm::ESGetToken< HcalElectronicsMap, HcalElectronicsMapRcd > m_tokmap
Definition:
HcalPedestalsCheck.h:59
HcalGenericDetId.h
HcalPedestals.h
EDAnalyzer.h
HcalPedestalsCheck::dumprefs
std::string dumprefs
Definition:
HcalPedestalsCheck.h:52
HcalGeometry.h
edm::EDAnalyzer
Definition:
EDAnalyzer.h:28
HcalGainWidthsRcd.h
MakerMacros.h
HcalPedestalsCheck::~HcalPedestalsCheck
~HcalPedestalsCheck() override
Definition:
HcalPedestalsCheck.cc:15
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
HcalPedestalsRcd.h
edm::ParameterSet
Definition:
ParameterSet.h:47
HcalPedestalsCheck::m_tok2
edm::ESGetToken< HcalPedestals, HcalPedestalsRcd > m_tok2
Definition:
HcalPedestalsCheck.h:58
Event.h
HcalPedestalsCheck
Definition:
HcalPedestalsCheck.h:42
edm::EventSetup
Definition:
EventSetup.h:58
HcalPedestalsCheck::epsilon
double epsilon
Definition:
HcalPedestalsCheck.h:56
HcalPedestalsCheck::HcalPedestalsCheck
HcalPedestalsCheck(edm::ParameterSet const &ps)
Definition:
HcalPedestalsCheck.cc:3
HcalPedestalsCheck::m_tok1
edm::ESGetToken< HcalPedestals, HcalPedestalsRcd > m_tok1
Definition:
HcalPedestalsCheck.h:57
HcalGains.h
HcalPedestalWidths.h
edm::ESGetToken< HcalPedestals, HcalPedestalsRcd >
HcalGainsRcd.h
HcalGainWidths.h
HcalPedestalsCheck::analyze
void analyze(const edm::Event &ev, const edm::EventSetup &es) override
Definition:
HcalPedestalsCheck.cc:17
HcalDbASCIIIO.h
DetId.h
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
EventSetup.h
HcalPedestalsCheck::checkemapflag
bool checkemapflag
Definition:
HcalPedestalsCheck.h:55
ParameterSet.h
edm::Event
Definition:
Event.h:73
HcalPedestalsCheck::dumpupdate
std::string dumpupdate
Definition:
HcalPedestalsCheck.h:53
HcalPedestalWidthsRcd.h
Generated for CMSSW Reference Manual by
1.8.16