1 #ifndef CommonTools_ConditionDBWriter_ConditionDBWriter_h 2 #define CommonTools_ConditionDBWriter_ConditionDBWriter_h 163 edm::LogInfo(
"ConditionDBWriter::ConditionDBWriter()") << std::endl;
170 else edm::LogError(
"ConditionDBWriter::ConditionDBWriter(): ERROR - unknown IOV interval write mode...will not store anything on the DB") << std::endl;
177 edm::LogError(
"ConditionDBWriter::endJob(): ERROR - only SinceAppendMode support!!!!");
182 edm::LogInfo(
"ConditionDBWriter::~ConditionDBWriter()") << std::endl;
212 edm::LogInfo(
"ConditionDBWriter::beginJob") << std::endl;
221 edm::LogInfo(
"ConditionDBWriter::beginRun") << std::endl;
228 edm::LogInfo(
"ConditionDBWriter::beginLuminosityBlock") << std::endl;
244 edm::LogInfo(
"ConditionDBWriter::endLuminosityBlock") << std::endl;
255 edm::LogError(
"ConditionDBWriter::endLuminosityblock(): ERROR - requested to store on DB on a Lumi Block based interval, but received null pointer...will not store anything on the DB") << std::endl;
277 edm::LogError(
"ConditionDBWriter::endRun(): ERROR - requested to store on DB on a Run based interval, but received null pointer...will not store anything on the DB") << std::endl;
298 edm::LogError(
"ConditionDBWriter::endJob(): ERROR - requested to store on DB on a Job based interval, but received null pointer...will not store anything on the DB") << std::endl;
305 edm::LogInfo(
"ConditionDBWriter::storeOnDb ") << std::endl;
310 edm::LogError(
"ConditionDBWriter: Pointer to object has not been set...storing no data on DB") ;
318 edm::LogError(
"ConditionDBWriter")<<
"PoolDBOutputService is unavailable"<<std::endl;
328 edm::LogInfo(
"ConditionDBWriter") <<
"appending a new object to tag " 329 <<
Record_ <<
" in since mode " << std::endl;
342 edm::LogError(
"ConditionDBWriter::setTime(): PoolDBOutputService is not available...cannot set current time") << std::endl;
352 T * objPointer =
nullptr;
361 edm::LogError(
"ConditionDBWriter::storeOnDbNow: ERROR - requested to store on DB a new object (module configuration is algo driven based IOV), but received NULL pointer...will not store anything on the DB") << std::endl;
369 edm::LogError(
"ConditionDBWriter::storeOnDbNow(): ERROR - received a direct request from concrete algorithm to store on DB a new object, but module configuration is not to store on DB on an algo driven based interval...will not store anything on the DB") << std::endl;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void storeOnDb(T *objPointer)
virtual T * getNewObject()=0
virtual void algoBeginJob(const edm::EventSetup &)
virtual void algoBeginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
cond::Time_t timeOfLastIOV()
unsigned int maxRunRange_
bool timeFromStartOfRunRange_
unsigned long long Time_t
bool isNewTagRequest(const std::string &recordName)
cond::Time_t beginOfTime() const
void analyze(const edm::Event &event, const edm::EventSetup &iSetup) override
void endLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &es) override
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
virtual void algoEndJob()
virtual void algoBeginRun(const edm::Run &, const edm::EventSetup &)
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup) override
void beginRun(const edm::Run &run, const edm::EventSetup &es) override
ConditionDBWriter(const edm::ParameterSet &iConfig)
void setDoStore(const bool doStore)
When set to false the payload will not be written to the db.
void endRun(const edm::Run &run, const edm::EventSetup &es) override
virtual void algoEndRun(const edm::Run &, const edm::EventSetup &)
cond::Time_t currentTime() const
~ConditionDBWriter() override
virtual void algoAnalyze(const edm::Event &, const edm::EventSetup &)
virtual void algoEndLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
unsigned int minRunRange_