Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:37:58

0001 #ifndef HcalQIEDataCheck_h
0002 #define HcalQIEDataCheck_h
0003 
0004 //
0005 // R.Ofierzynski 9.12.2007
0006 //
0007 
0008 #include <string>
0009 #include <iostream>
0010 #include <fstream>
0011 #include <sstream>
0012 #include <map>
0013 #include <vector>
0014 #include <algorithm>
0015 
0016 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0017 #include "FWCore/Framework/interface/Event.h"
0018 #include "FWCore/Framework/interface/MakerMacros.h"
0019 
0020 #include "FWCore/Framework/interface/EventSetup.h"
0021 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0022 
0023 #include "CondFormats/HcalObjects/interface/HcalQIEData.h"
0024 #include "CondFormats/HcalObjects/interface/HcalQIECoder.h"
0025 #include "CondFormats/HcalObjects/interface/HcalQIEShape.h"
0026 #include "CondFormats/HcalObjects/interface/HcalElectronicsMap.h"
0027 
0028 #include "DataFormats/HcalDetId/interface/HcalGenericDetId.h"
0029 #include "DataFormats/DetId/interface/DetId.h"
0030 
0031 #include "CondFormats/DataRecord/interface/HcalQIEDataRcd.h"
0032 #include "CondFormats/DataRecord/interface/HcalElectronicsMapRcd.h"
0033 
0034 #include "CalibCalorimetry/HcalAlgos/interface/HcalDbASCIIIO.h"
0035 #include "Geometry/HcalTowerAlgo/interface/HcalGeometry.h"
0036 
0037 class HcalQIEDataCheck : public edm::one::EDAnalyzer<> {
0038 public:
0039   HcalQIEDataCheck(edm::ParameterSet const& ps);
0040 
0041   ~HcalQIEDataCheck() override;
0042 
0043   void analyze(const edm::Event& ev, const edm::EventSetup& es) override;
0044 
0045 private:
0046   std::string outfile;
0047   std::string dumprefs;
0048   std::string dumpupdate;
0049   bool checkemapflag;
0050   bool validateflag;
0051   edm::ESGetToken<HcalQIEData, HcalQIEDataRcd> m_tok1;
0052   edm::ESGetToken<HcalQIEData, HcalQIEDataRcd> m_tok2;
0053   edm::ESGetToken<HcalElectronicsMap, HcalElectronicsMapRcd> m_tokmap;
0054   //  double epsilon;
0055   //  vecDetId getMissingDetIds(std::vector<HcalPedestalWidths> &);
0056 };
0057 #endif