CaloOnlineTools
HcalOnlineDb
src
HcalLutGenerator.cc
Go to the documentation of this file.
1
#include "
CaloOnlineTools/HcalOnlineDb/interface/HcalLutGenerator.h
"
2
3
#include "
FWCore/Framework/interface/ESHandle.h
"
4
#include "
DataFormats/HcalDetId/interface/HcalDetId.h
"
5
#include "
CalibFormats/HcalObjects/interface/HcalTPGRecord.h
"
6
#include "
CalibFormats/HcalObjects/interface/HcalTPGCoder.h
"
7
#include "
CaloOnlineTools/HcalOnlineDb/interface/HcalLutManager.h
"
8
#include "
CalibFormats/CaloTPG/interface/CaloTPGRecord.h
"
9
#include "
CondFormats/HcalObjects/interface/HcalElectronicsMap.h
"
10
11
#include "
CaloOnlineTools/HcalOnlineDb/interface/LMap.h
"
12
13
#include <iostream>
14
using
std::cerr
;
15
using
std::cout
;
16
using
std::endl;
17
18
HcalLutGenerator::HcalLutGenerator
(
const
edm::ParameterSet
& iConfig) {
19
_tag
= iConfig.
getParameter
<
std::string
>(
"tag"
);
20
_lin_file
= iConfig.
getParameter
<
std::string
>(
"HO_master_file"
);
21
_status_word_to_mask
= iConfig.
getParameter
<uint32_t>(
"status_word_to_mask"
);
22
}
23
24
HcalLutGenerator::~HcalLutGenerator
() {}
25
26
void
HcalLutGenerator::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup) {
27
edm::ESHandle<HcalTPGCoder>
inputCoder;
28
iSetup.
get
<
HcalTPGRecord
>().
get
(inputCoder);
29
30
edm::ESHandle<CaloTPGTranscoder>
outTranscoder;
31
iSetup.
get
<
CaloTPGRecord
>().
get
(outTranscoder);
32
33
edm::ESHandle<CaloTPGTranscoderULUT>
transcoder;
34
transcoder.
swap
(outTranscoder);
35
36
edm::ESHandle<HcalDbService>
hcalcond;
37
iSetup.
get
<
HcalDbRecord
>().
get
(hcalcond);
38
39
edm::ESHandle<HcalChannelQuality>
hCQ;
40
iSetup.
get
<
HcalChannelQualityRcd
>().
get
(
"withTopo"
, hCQ);
41
const
HcalChannelQuality
* _cq = &(*hCQ);
42
43
HcalLutManager
manager(hcalcond.
product
(), _cq,
_status_word_to_mask
);
44
bool
split_by_crate =
true
;
45
46
manager.
createLutXmlFiles_HBEFFromCoder_HOFromAscii_ZDC
(
_tag
, *inputCoder, *transcoder,
_lin_file
, split_by_crate);
47
}
48
49
void
HcalLutGenerator::endJob
() {}
HcalElectronicsMap.h
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
HcalLutManager::createLutXmlFiles_HBEFFromCoder_HOFromAscii_ZDC
int createLutXmlFiles_HBEFFromCoder_HOFromAscii_ZDC(std::string _tag, const HcalTPGCoder &_coder, const CaloTPGTranscoderULUT &_transcoder, std::string _lin_file, bool split_by_crate=true)
Definition:
HcalLutManager.cc:1672
LMap.h
ESHandle.h
HcalChannelQualityRcd
Definition:
HcalChannelQualityRcd.h:8
HcalTPGRecord
Definition:
HcalTPGRecord.h:25
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
HcalLutGenerator::endJob
void endJob() override
Definition:
HcalLutGenerator.cc:49
HcalChannelQuality
Definition:
HcalChannelQuality.h:17
HcalTPGRecord.h
HcalLutGenerator::~HcalLutGenerator
~HcalLutGenerator() override
Definition:
HcalLutGenerator.cc:24
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:80
edm::ESHandle
Definition:
DTSurvey.h:22
HcalLutGenerator.h
HcalLutGenerator::_tag
std::string _tag
Definition:
HcalLutGenerator.h:17
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:47
CaloTPGRecord
Definition:
CaloTPGRecord.h:26
HcalDetId.h
HcalLutGenerator::_lin_file
std::string _lin_file
Definition:
HcalLutGenerator.h:18
iEvent
int iEvent
Definition:
GenABIO.cc:224
edm::EventSetup
Definition:
EventSetup.h:57
CaloTPGRecord.h
get
#define get
HcalLutManager
Various manipulations with trigger Lookup Tables.
Definition:
HcalLutManager.h:39
HcalLutGenerator::HcalLutGenerator
HcalLutGenerator(const edm::ParameterSet &)
Definition:
HcalLutGenerator.cc:18
HcalLutGenerator::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
HcalLutGenerator.cc:26
HcalLutGenerator::_status_word_to_mask
uint32_t _status_word_to_mask
Definition:
HcalLutGenerator.h:19
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:303
edm::ESHandleBase::swap
void swap(ESHandleBase &iOther)
Definition:
ESHandle.h:52
HcalDbRecord
Definition:
HcalDbRecord.h:30
edm::Event
Definition:
Event.h:73
EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.cerr
cerr
Definition:
EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.py:8
HcalTPGCoder.h
HcalLutManager.h
Generated for CMSSW Reference Manual by
1.8.16