00001 #ifndef SISTRIPDETVOFF_SRC_HANDLER_H 00002 #define SISTRIPDETVOFF_SRC_HANDLER_H 00003 00004 #include "CondCore/PopCon/interface/PopConSourceHandler.h" 00005 #include "FWCore/MessageLogger/interface/MessageLogger.h" 00006 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00007 #include "FWCore/ServiceRegistry/interface/Service.h" 00008 00009 #include "CondCore/DBCommon/interface/TagInfo.h" 00010 00011 #include "CondFormats/SiStripObjects/interface/SiStripDetVOff.h" 00012 #include "CondFormats/DataRecord/interface/SiStripCondDataRecords.h" 00013 00014 #include "CalibTracker/SiStripDCS/interface/SiStripDetVOffBuilder.h" 00015 00016 00017 namespace popcon{ 00018 class SiStripDetVOffHandler : public popcon::PopConSourceHandler<SiStripDetVOff> 00019 { 00020 public: 00021 void getNewObjects(); 00022 ~SiStripDetVOffHandler(); 00023 SiStripDetVOffHandler(const edm::ParameterSet& pset); 00024 std::string id() const { return name_;} 00025 00026 private: 00027 void setUserTextLog(); 00028 void setForTransfer(); 00029 std::string name_; 00030 std::vector< std::pair<SiStripDetVOff*,cond::Time_t> > resultVec; 00031 edm::Service<SiStripDetVOffBuilder> modHVBuilder; 00032 uint32_t deltaTmin_; 00033 uint32_t maxIOVlength_; 00034 bool debug_; 00035 }; 00036 } 00037 #endif 00038