CMS 3D CMS Logo

HcalLutGenerator.cc
Go to the documentation of this file.
2 
10 
12 
13 #include <iostream>
14 using std::cerr;
15 using std::cout;
16 using std::endl;
17 
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 
25 
27  edm::ESHandle<HcalTPGCoder> inputCoder;
28  iSetup.get<HcalTPGRecord>().get(inputCoder);
29 
31  iSetup.get<CaloTPGRecord>().get(outTranscoder);
32 
34  transcoder.swap(outTranscoder);
35 
37  iSetup.get<HcalDbRecord>().get(hcalcond);
38 
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 
T getParameter(std::string const &) const
int createLutXmlFiles_HBEFFromCoder_HOFromAscii_ZDC(std::string _tag, const HcalTPGCoder &_coder, const CaloTPGTranscoderULUT &_transcoder, std::string _lin_file, bool split_by_crate=true)
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
void endJob() override
std::string _lin_file
~HcalLutGenerator() override
T get() const
Definition: EventSetup.h:73
HcalLutGenerator(const edm::ParameterSet &)
T const * product() const
Definition: ESHandle.h:86
void swap(ESHandleBase &iOther)
Definition: ESHandle.h:52