CMS 3D CMS Logo

HcalLutGenerator.cc
Go to the documentation of this file.
2 
8 
10 
11 #include <iostream>
12 using std::cerr;
13 using std::cout;
14 using std::endl;
15 
17  _tag = iConfig.getParameter<std::string>("tag");
18  _lin_file = iConfig.getParameter<std::string>("HO_master_file");
19  _status_word_to_mask = iConfig.getParameter<uint32_t>("status_word_to_mask");
20  tok_inCoder_ = esConsumes<HcalTPGCoder, HcalTPGRecord>();
21  tok_dbservice_ = esConsumes<HcalDbService, HcalDbRecord>();
22  tok_hcalChStatus_ = esConsumes<HcalChannelQuality, HcalChannelQualityRcd>(edm::ESInputTag("", "withTopo"));
23 }
24 
26 
28  const HcalTPGCoder* inputCoder = &iSetup.getData(tok_inCoder_);
29  const HcalDbService* hcalcond = &iSetup.getData(tok_dbservice_);
30  const HcalChannelQuality* _cq = &iSetup.getData(tok_hcalChStatus_);
31 
33  iSetup.get<CaloTPGRecord>().get(outTranscoder);
34 
36  transcoder.swap(outTranscoder);
37 
38  HcalLutManager manager(hcalcond, _cq, _status_word_to_mask);
39  bool split_by_crate = true;
40 
41  manager.createLutXmlFiles_HBEFFromCoder_HOFromAscii_ZDC(_tag, *inputCoder, *transcoder, _lin_file, split_by_crate);
42 }
43 
HcalElectronicsMap.h
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:1675
edm::ESInputTag
Definition: ESInputTag.h:87
LMap.h
ESHandle.h
gather_cfg.cout
cout
Definition: gather_cfg.py:144
HcalLutGenerator::endJob
void endJob() override
Definition: HcalLutGenerator.cc:44
HcalLutGenerator::tok_dbservice_
edm::ESGetToken< HcalDbService, HcalDbRecord > tok_dbservice_
Definition: HcalLutGenerator.h:27
HcalChannelQuality
Definition: HcalChannelQuality.h:17
HcalTPGCoder
Definition: HcalTPGCoder.h:26
HcalLutGenerator::~HcalLutGenerator
~HcalLutGenerator() override
Definition: HcalLutGenerator.cc:25
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
edm::ESHandle< CaloTPGTranscoder >
HcalLutGenerator.h
HcalLutGenerator::_tag
std::string _tag
Definition: HcalLutGenerator.h:23
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:24
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup
Definition: EventSetup.h:58
CaloTPGRecord.h
get
#define get
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
HcalDbService
Definition: HcalDbService.h:26
HcalLutManager
Various manipulations with trigger Lookup Tables.
Definition: HcalLutManager.h:39
HcalLutGenerator::HcalLutGenerator
HcalLutGenerator(const edm::ParameterSet &)
Definition: HcalLutGenerator.cc:16
HcalLutGenerator::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: HcalLutGenerator.cc:27
HcalLutGenerator::_status_word_to_mask
uint32_t _status_word_to_mask
Definition: HcalLutGenerator.h:25
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
HcalLutGenerator::tok_hcalChStatus_
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > tok_hcalChStatus_
Definition: HcalLutGenerator.h:28
edm::ESHandleBase::swap
void swap(ESHandleBase &iOther)
Definition: ESHandle.h:52
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
HcalLutGenerator::tok_inCoder_
edm::ESGetToken< HcalTPGCoder, HcalTPGRecord > tok_inCoder_
Definition: HcalLutGenerator.h:26
HcalLutManager.h