1 #ifndef CommonTools_ConditionDBWriter_ConditionDBWriter_h
2 #define CommonTools_ConditionDBWriter_ConditionDBWriter_h
157 edm::LogInfo(
"ConditionDBWriter::ConditionDBWriter()") << std::endl;
160 if (IOVMode==std::string(
"Job"))
JobMode_=
true;
161 else if (IOVMode==std::string(
"Run"))
RunMode_=
true;
164 else edm::LogError(
"ConditionDBWriter::ConditionDBWriter(): ERROR - unknown IOV interval write mode...will not store anything on the DB") << std::endl;
169 edm::LogError(
"ConditionDBWriter::endJob(): ERROR - only SinceAppendMode support!!!!");
174 edm::LogInfo(
"ConditionDBWriter::~ConditionDBWriter()") << std::endl;
204 edm::LogInfo(
"ConditionDBWriter::beginJob") << std::endl;
209 edm::LogInfo(
"ConditionDBWriter::beginRun") << std::endl;
216 edm::LogInfo(
"ConditionDBWriter::beginLuminosityBlock") << std::endl;
232 edm::LogInfo(
"ConditionDBWriter::endLuminosityBlock") << std::endl;
243 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;
264 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;
285 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;
292 edm::LogInfo(
"ConditionDBWriter::storeOnDb ") << std::endl;
297 edm::LogError(
"ConditionDBWriter: Pointer to object has not been set...storing no data on DB") ;
305 edm::LogError(
"ConditionDBWriter")<<
"PoolDBOutputService is unavailable"<<std::endl;
312 edm::LogInfo(
"ConditionDBWriter") <<
"appending a new object to tag "
313 <<
Record_ <<
" in since mode " << std::endl;
326 edm::LogError(
"ConditionDBWriter::setTime(): PoolDBOutputService is not available...cannot set current time") << std::endl;
345 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;
353 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
void storeOnDb(T *objPointer)
virtual T * getNewObject()=0
virtual void algoBeginJob(const edm::EventSetup &)
virtual void algoBeginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
void endLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &es)
cond::Time_t timeOfLastIOV()
unsigned long long Time_t
bool isNewTagRequest(const std::string &recordName)
cond::Time_t beginOfTime() const
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
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 &)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
void beginRun(const edm::Run &run, const edm::EventSetup &es)
void analyze(const edm::Event &event, const edm::EventSetup &iSetup)
ConditionDBWriter(const edm::ParameterSet &iConfig)
virtual void algoEndRun(const edm::Run &, const edm::EventSetup &)
cond::Time_t currentTime() const
void endRun(const edm::Run &run, const edm::EventSetup &es)
virtual void algoAnalyze(const edm::Event &, const edm::EventSetup &)
virtual void algoEndLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
virtual ~ConditionDBWriter()