00001 #ifndef SRCONDACCESS_H 00002 #define SRCONDACCESS_H 00003 00004 /* 00005 * $Id: EcalSRCondTools.h,v 1.3 2011/03/02 14:47:41 pgras Exp $ 00006 */ 00007 00008 #include "FWCore/Framework/interface/Frameworkfwd.h" 00009 #include "FWCore/Framework/interface/EDAnalyzer.h" 00010 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00011 #include "CondFormats/EcalObjects/interface/EcalSRSettings.h" 00012 00015 class EcalSRCondTools : public edm::EDAnalyzer { 00016 //methods 00017 public: 00021 EcalSRCondTools(const edm::ParameterSet&); 00022 00025 ~EcalSRCondTools(); 00026 00027 00032 virtual void analyze(const edm::Event& evt, const edm::EventSetup& es); 00033 00042 static void importParameterSet(EcalSRSettings& sr, const edm::ParameterSet& ps); 00043 00044 00052 static void importSrpConfigFile(EcalSRSettings& sr, std::istream& f, bool debug = false); 00053 00057 static double normalizeWeights(int hwWeight); 00058 00059 private: 00064 static std::string tokenize(const std::string& s, const std::string& delim, int& pos); 00065 00068 static std::string trim(std::string s); 00069 00070 //fields 00071 private: 00072 00073 edm::ParameterSet ps_; 00074 }; 00075 00076 #endif //SRCONDACCESS_H not defined