Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-11 04:33:33

0001 #ifndef HcalLutGenerator_h
0002 #define HcalLutGenerator_h
0003 
0004 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0005 #include "FWCore/Framework/interface/Event.h"
0006 #include "FWCore/Framework/interface/EventSetup.h"
0007 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0008 #include "CalibFormats/HcalObjects/interface/HcalTPGRecord.h"
0009 #include "CalibFormats/HcalObjects/interface/HcalTPGCoder.h"
0010 #include "CalibFormats/HcalObjects/interface/HcalDbService.h"
0011 #include "CalibFormats/HcalObjects/interface/HcalDbRecord.h"
0012 #include "CondFormats/HcalObjects/interface/HcalChannelQuality.h"
0013 #include "CalibFormats/CaloTPG/interface/CaloTPGTranscoder.h"
0014 #include "CalibFormats/CaloTPG/interface/CaloTPGRecord.h"
0015 #include "CondFormats/DataRecord/interface/HcalChannelQualityRcd.h"
0016 
0017 class HcalLutGenerator : public edm::one::EDAnalyzer<> {
0018 public:
0019   explicit HcalLutGenerator(const edm::ParameterSet&);
0020   ~HcalLutGenerator() override {}
0021   void analyze(const edm::Event&, const edm::EventSetup&) override;
0022   void endJob() override {}
0023 
0024 private:
0025   std::string _tag;
0026   std::string _lin_file;
0027   uint32_t _status_word_to_mask;
0028   edm::ESGetToken<HcalTPGCoder, HcalTPGRecord> tok_inCoder_;
0029   edm::ESGetToken<HcalDbService, HcalDbRecord> tok_dbservice_;
0030   edm::ESGetToken<HcalChannelQuality, HcalChannelQualityRcd> tok_hcalChStatus_;
0031   edm::ESGetToken<CaloTPGTranscoder, CaloTPGRecord> tok_hcalCoder_;
0032 };
0033 
0034 #endif