00001 #ifndef UpdaterService_H 00002 #define UpdaterService_H 00003 00004 #include "FWCore/ServiceRegistry/interface/ActivityRegistry.h" 00005 00006 namespace edm { 00007 class ParameterSet; 00008 class EventID; 00009 class TimeStamp; 00010 class ConfigurationDescriptions; 00011 } 00012 00013 #include <map> 00014 #include <string> 00015 00016 class UpdaterService { 00017 public: 00018 UpdaterService(const edm::ParameterSet & cfg, edm::ActivityRegistry & r ); 00019 ~UpdaterService(); 00020 00021 static void fillDescriptions(edm::ConfigurationDescriptions & descriptions); 00022 00023 void init(const edm::EventID&, const edm::Timestamp&); //preEvent 00024 // void initModule(const edm::ModuleDescription&); //premodule 00025 00026 bool checkOnce(std::string); 00027 bool check(std::string, std::string); 00028 00029 private: 00030 void theInit(); 00031 std::map< std::string, unsigned int > theCounts; 00032 const edm::EventID * theEventId; 00033 }; 00034 00035 #endif