Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 
0002 /*----------------------------------------------------------------------
0003 
0004 Toy EDAnalyzer for testing purposes only.
0005 
0006 ----------------------------------------------------------------------*/
0007 
0008 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0009 #include "FWCore/Framework/interface/Event.h"
0010 
0011 #include "FWCore/Framework/interface/EventSetup.h"
0012 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0013 
0014 #include "CondFormats/DTObjects/interface/DTCCBConfig.h"
0015 #include "CondFormats/DataRecord/interface/DTCCBConfigRcd.h"
0016 
0017 //#include "CondFormats/DTObjects/interface/DTConfigList.h"
0018 //#include "CondTools/DT/interface/DTConfigHandler.h"
0019 //#include "CondTools/DT/interface/DTDBSession.h"
0020 
0021 #include <string>
0022 
0023 namespace edmtest {
0024   class DTConfigPrint : public edm::one::EDAnalyzer<> {
0025   public:
0026     explicit DTConfigPrint(edm::ParameterSet const& p);
0027     explicit DTConfigPrint(int i);
0028     ~DTConfigPrint() override = default;
0029     void analyze(const edm::Event& e, const edm::EventSetup& c) override;
0030 
0031   private:
0032     std::string connect;
0033     std::string auth_path;
0034     std::string catalog;
0035     std::string token;
0036     bool local;
0037     edm::ESGetToken<DTCCBConfig, DTCCBConfigRcd> es_token;
0038     //    DTDBSession* session;
0039     //    const DTConfigList* rs;
0040     //    DTConfigHandler* ri;
0041   };
0042 }  // namespace edmtest