CMS 3D CMS Logo

HcalLutGenerator.cc
Go to the documentation of this file.
2 
7 
9 
10 #include <iostream>
11 
13  _tag = iConfig.getParameter<std::string>("tag");
14  _lin_file = iConfig.getParameter<std::string>("HO_master_file");
15  _status_word_to_mask = iConfig.getParameter<uint32_t>("status_word_to_mask");
16  tok_inCoder_ = esConsumes<HcalTPGCoder, HcalTPGRecord>();
17  tok_dbservice_ = esConsumes<HcalDbService, HcalDbRecord>();
18  tok_hcalChStatus_ = esConsumes<HcalChannelQuality, HcalChannelQualityRcd>(edm::ESInputTag("", "withTopo"));
19  tok_hcalCoder_ = esConsumes<CaloTPGTranscoder, CaloTPGRecord>();
20 }
21 
23  const HcalTPGCoder* inputCoder = &iSetup.getData(tok_inCoder_);
24  const HcalDbService* hcalcond = &iSetup.getData(tok_dbservice_);
25  const HcalChannelQuality* _cq = &iSetup.getData(tok_hcalChStatus_);
26 
29  transcoder.swap(outTranscoder);
30 
31  HcalLutManager manager(hcalcond, _cq, _status_word_to_mask);
32  bool split_by_crate = true;
33 
34  manager.createLutXmlFiles_HBEFFromCoder_HOFromAscii_ZDC(_tag, *inputCoder, *transcoder, _lin_file, split_by_crate);
35 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
int createLutXmlFiles_HBEFFromCoder_HOFromAscii_ZDC(std::string _tag, const HcalTPGCoder &_coder, const CaloTPGTranscoderULUT &_transcoder, std::string _lin_file, bool split_by_crate=true)
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > tok_hcalChStatus_
Various manipulations with trigger Lookup Tables.
int iEvent
Definition: GenABIO.cc:224
void analyze(const edm::Event &, const edm::EventSetup &) override
uint32_t _status_word_to_mask
edm::ESGetToken< HcalDbService, HcalDbRecord > tok_dbservice_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:130
std::string _lin_file
edm::ESGetToken< HcalTPGCoder, HcalTPGRecord > tok_inCoder_
edm::ESGetToken< CaloTPGTranscoder, CaloTPGRecord > tok_hcalCoder_
HcalLutGenerator(const edm::ParameterSet &)
void swap(ESHandleBase &iOther)
Definition: ESHandle.h:52