CondTools
Hcal
interface
HcalPedestalWidthsCheck.h
Go to the documentation of this file.
1
#ifndef HcalPedestalWidthsCheck_h
2
#define HcalPedestalWidthsCheck_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
HcalPedestalWidthsCheck
:
public
edm::EDAnalyzer
{
43
public
:
44
HcalPedestalWidthsCheck
(
edm::ParameterSet
const
& ps);
45
46
~HcalPedestalWidthsCheck
()
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
checkemapflag
;
55
bool
validateflag
;
56
double
epsilon
;
57
edm::ESGetToken<HcalPedestalWidths, HcalPedestalWidthsRcd>
m_tok1
;
58
edm::ESGetToken<HcalPedestalWidths, HcalPedestalWidthsRcd>
m_tok2
;
59
edm::ESGetToken<HcalElectronicsMap, HcalElectronicsMapRcd>
m_tokmap
;
60
// vecDetId getMissingDetIds(std::vector<HcalPedestalWidths> &);
61
};
62
#endif
HcalElectronicsMap.h
HcalPedestalWidthsCheck::checkemapflag
bool checkemapflag
Definition:
HcalPedestalWidthsCheck.h:54
HcalPedestalWidthsCheck::dumpupdate
std::string dumpupdate
Definition:
HcalPedestalWidthsCheck.h:53
HcalPedestalWidthsCheck
Definition:
HcalPedestalWidthsCheck.h:42
HcalPedestalWidthsCheck::m_tokmap
edm::ESGetToken< HcalElectronicsMap, HcalElectronicsMapRcd > m_tokmap
Definition:
HcalPedestalWidthsCheck.h:59
HcalPedestalWidthsCheck::~HcalPedestalWidthsCheck
~HcalPedestalWidthsCheck() override
Definition:
HcalPedestalWidthsCheck.cc:15
HcalPedestalWidthsCheck::validateflag
bool validateflag
Definition:
HcalPedestalWidthsCheck.h:55
HcalElectronicsMapRcd.h
HcalGenericDetId.h
HcalPedestals.h
EDAnalyzer.h
HcalGeometry.h
edm::EDAnalyzer
Definition:
EDAnalyzer.h:28
HcalGainWidthsRcd.h
MakerMacros.h
HcalPedestalWidthsCheck::outfile
std::string outfile
Definition:
HcalPedestalWidthsCheck.h:51
HcalPedestalWidthsCheck::epsilon
double epsilon
Definition:
HcalPedestalWidthsCheck.h:56
HcalPedestalsRcd.h
HcalPedestalWidthsCheck::m_tok2
edm::ESGetToken< HcalPedestalWidths, HcalPedestalWidthsRcd > m_tok2
Definition:
HcalPedestalWidthsCheck.h:58
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
edm::EventSetup
Definition:
EventSetup.h:58
HcalGains.h
HcalPedestalWidths.h
edm::ESGetToken< HcalPedestalWidths, HcalPedestalWidthsRcd >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
HcalPedestalWidthsCheck::analyze
void analyze(const edm::Event &ev, const edm::EventSetup &es) override
Definition:
HcalPedestalWidthsCheck.cc:17
HcalGainsRcd.h
HcalGainWidths.h
HcalDbASCIIIO.h
DetId.h
HcalPedestalWidthsCheck::HcalPedestalWidthsCheck
HcalPedestalWidthsCheck(edm::ParameterSet const &ps)
Definition:
HcalPedestalWidthsCheck.cc:3
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:97
EventSetup.h
HcalPedestalWidthsCheck::m_tok1
edm::ESGetToken< HcalPedestalWidths, HcalPedestalWidthsRcd > m_tok1
Definition:
HcalPedestalWidthsCheck.h:57
ParameterSet.h
HcalPedestalWidthsCheck::dumprefs
std::string dumprefs
Definition:
HcalPedestalWidthsCheck.h:52
edm::Event
Definition:
Event.h:73
HcalPedestalWidthsRcd.h
Generated for CMSSW Reference Manual by
1.8.16