Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:48

0001 /*----------------------------------------------------------------------
0002 
0003 Toy EDAnalyzer for testing purposes only.
0004 
0005 ----------------------------------------------------------------------*/
0006 
0007 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0008 #include "FWCore/Framework/interface/Event.h"
0009 
0010 #include "FWCore/Framework/interface/EventSetup.h"
0011 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0012 class DTConfigKey;
0013 class DTCCBConfig;
0014 class DTCCBConfigRcd;
0015 class DTCCBConfigValidateDBRead : public edm::one::EDAnalyzer<> {
0016 public:
0017   explicit DTCCBConfigValidateDBRead(edm::ParameterSet const& p);
0018   explicit DTCCBConfigValidateDBRead(int i);
0019   ~DTCCBConfigValidateDBRead() override = default;
0020   void analyze(const edm::Event& e, const edm::EventSetup& c) override;
0021   void endJob() override;
0022 
0023 private:
0024   std::string dataFileName;
0025   std::string elogFileName;
0026   edm::ESGetToken<DTCCBConfig, DTCCBConfigRcd> dtccbToken_;
0027   static bool cfrDiff(const std::vector<int>& l_conf, const std::vector<int>& r_conf);
0028   static bool cfrDiff(const std::vector<DTConfigKey>& l_conf, const std::vector<DTConfigKey>& r_conf);
0029 };