Main Page
Namespaces
Classes
Package Documentation
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
14
#include <iostream>
15
using
std::cerr
;
16
using
std::cout
;
17
using
std::endl;
18
19
HcalLutGenerator::HcalLutGenerator
(
const
edm::ParameterSet
& iConfig)
20
{
21
_tag
= iConfig.
getParameter
<
std::string
>(
"tag"
);
22
_lin_file
= iConfig.
getParameter
<
std::string
>(
"HO_master_file"
);
23
_status_word_to_mask
= iConfig.
getParameter
<uint32_t>(
"status_word_to_mask"
);
24
}
25
26
HcalLutGenerator::~HcalLutGenerator
()
27
{
28
}
29
30
void
HcalLutGenerator::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup)
31
{
32
33
edm::ESHandle<HcalTPGCoder>
inputCoder;
34
iSetup.
get
<
HcalTPGRecord
>().
get
(inputCoder);
35
36
edm::ESHandle<CaloTPGTranscoder>
outTranscoder;
37
iSetup.
get
<
CaloTPGRecord
>().
get
(outTranscoder);
38
39
edm::ESHandle<CaloTPGTranscoderULUT>
transcoder;
40
transcoder.
swap
(outTranscoder);
41
42
edm::ESHandle<HcalDbService>
hcalcond;
43
iSetup.
get
<
HcalDbRecord
>().
get
(hcalcond);
44
45
edm::ESHandle<HcalChannelQuality>
hCQ;
46
iSetup.
get
<
HcalChannelQualityRcd
>().
get
(
"withTopo"
,hCQ);
47
const
HcalChannelQuality
* _cq = &(*hCQ);
48
49
HcalLutManager
manager(hcalcond.
product
(), _cq,
_status_word_to_mask
);
50
bool
split_by_crate =
true
;
51
52
manager.
createLutXmlFiles_HBEFFromCoder_HOFromAscii_ZDC
(
_tag
, *inputCoder, *transcoder,
_lin_file
, split_by_crate );
53
}
54
55
56
void
HcalLutGenerator::endJob
() {}
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
HcalLutGenerator::endJob
void endJob()
Definition:
HcalLutGenerator.cc:56
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:1630
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
HcalChannelQualityRcd
Definition:
HcalChannelQualityRcd.h:8
HcalLutManager
Various manipulations with trigger Lookup Tables.
Definition:
HcalLutManager.h:43
MessageLogger_cfi.cerr
cerr
Definition:
MessageLogger_cfi.py:547
iEvent
int iEvent
Definition:
GenABIO.cc:230
HcalLutGenerator::_status_word_to_mask
uint32_t _status_word_to_mask
Definition:
HcalLutGenerator.h:19
HcalDetId.h
edm::ESHandle
Definition:
DTSurvey.h:22
ESHandle.h
HcalChannelQuality
Definition:
HcalChannelQuality.h:17
edm::EventSetup
Definition:
EventSetup.h:44
HcalElectronicsMap.h
HcalTPGRecord.h
CaloTPGRecord
Definition:
CaloTPGRecord.h:26
edm::EventSetup::get
const T & get() const
Definition:
EventSetup.h:55
HcalLutManager.h
LMap.h
HcalDbRecord
Definition:
HcalDbRecord.h:30
HcalLutGenerator::_tag
std::string _tag
Definition:
HcalLutGenerator.h:17
HcalLutGenerator::_lin_file
std::string _lin_file
Definition:
HcalLutGenerator.h:18
HcalTPGRecord
Definition:
HcalTPGRecord.h:25
edm::ParameterSet
Definition:
ParameterSet.h:36
HcalTPGCoder.h
gather_cfg.cout
cout
Definition:
gather_cfg.py:145
HcalLutGenerator::~HcalLutGenerator
~HcalLutGenerator()
Definition:
HcalLutGenerator.cc:26
HcalLutGenerator.h
edm::Event
Definition:
Event.h:66
HcalLutGenerator::HcalLutGenerator
HcalLutGenerator(const edm::ParameterSet &)
Definition:
HcalLutGenerator.cc:19
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
edm::ESHandleBase::swap
void swap(ESHandleBase &iOther)
Definition:
ESHandle.h:51
HcalLutGenerator::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition:
HcalLutGenerator.cc:30
CaloTPGRecord.h
Generated for CMSSW Reference Manual by
1.8.11