CMS 3D CMS Logo

HcalLutGenerator.cc
Go to the documentation of this file.
2 
10 
12 
13 
14 #include <iostream>
15 using std::cerr;
16 using std::cout;
17 using std::endl;
18 
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 
27 {
28 }
29 
31 {
32 
33  edm::ESHandle<HcalTPGCoder> inputCoder;
34  iSetup.get<HcalTPGRecord>().get(inputCoder);
35 
37  iSetup.get<CaloTPGRecord>().get(outTranscoder);
38 
40  transcoder.swap(outTranscoder);
41 
43  iSetup.get<HcalDbRecord>().get(hcalcond);
44 
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 
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:230
uint32_t _status_word_to_mask
const T & get() const
Definition: EventSetup.h:55
std::string _lin_file
HcalLutGenerator(const edm::ParameterSet &)
T const * product() const
Definition: ESHandle.h:86
void swap(ESHandleBase &iOther)
Definition: ESHandle.h:51
virtual void analyze(const edm::Event &, const edm::EventSetup &)