1 #ifndef CondCore_PoolDBOutputService_h
2 #define CondCore_PoolDBOutputService_h
10 #include "Reflex/Type.h"
15 #ifndef COND_EXCEPTION_H
40 Reflex::Type reflexType = Reflex::Type::ByTypeInfo( typeInfo );
42 return reflexType.Name();
87 boost::shared_ptr<T> sptr(
m_p );
127 bool withlogging=
false) {
137 bool withlogging=
false) {
139 createNewIOV<T>(payload,
summary,
148 bool withlogging=
false);
155 const std::string& recordName,
156 bool withlogging=
false){
157 this->
createNewIOV(firstPayloadObj, 0, firstSinceTime, firstTillTime, recordName,withlogging);
168 const std::string& recordName,
169 bool withlogging=
false){
180 const std::string& recordName,
181 bool withlogging=
false) {
193 const std::string& recordName,
194 bool withlogging=
false){
195 this->appendSinceTime<T>(payloadObj, 0, sinceTime,
recordName, withlogging);
201 const std::string& recordName,
202 bool withlogging=
false){
216 const std::string& recordName,
217 bool withlogging=
false) {
249 const std::string& provenance,
250 const std::string& usertext);
254 void tagInfo(
const std::string& recordName,
288 const std::string& recordName,
289 bool withlogging=
false);
293 const std::string& recordName,
294 bool withlogging=
false);
302 const std::string& payloadToken,
309 const std::string& payloadToken,
324 std::vector< std::pair<std::string,std::string> >
m_newtags;
std::vector< std::pair< std::string, std::string > > m_newtags
const TimeTypeSpecs timeTypeSpecs[]
unsigned int insertIOV(cond::DbSession &pooldb, Record &record, const std::string &payloadToken, cond::Time_t tillTime)
Returns payload location index.
virtual ~GetTrivialToken()
void closeIOV(Time_t lastTill, const std::string &recordName, bool withlogging=false)
virtual std::string operator()(cond::DbSession &, bool) const
GetTrivialToken(std::string token)
void fillRecord(edm::ParameterSet &pset)
virtual std::string operator()(cond::DbSession &, bool) const =0
std::map< std::string, cond::UserLogInfo > m_logheaders
static unsigned int sizeDSW()
void add(GetToken const &token, cond::Time_t time, const std::string &recordName, bool withlogging=false)
void preBeginLumi(const edm::LuminosityBlockID &, const edm::Timestamp &)
std::string tag(const std::string &recordName)
GetTokenFromPointer(T *p, Summary *s=0)
std::string classNameForTypeId(const std::type_info &typeInfo)
void appendSinceTime(T *payloadObj, cond::Time_t sinceTime, const std::string &recordName, bool withlogging=false)
static std::string classNameForPointer(T *pointer)
unsigned long long Time_t
bool isNewTagRequest(const std::string &recordName)
Record & lookUpRecord(const std::string &recordName)
cond::DbSession session() const
virtual std::string operator()(cond::DbSession &pooldb, bool) const
cond::Time_t beginOfTime() const
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
cond::TimeType m_timetype
void writeOne(T *payload, Summary *summary, Time_t time, const std::string &recordName, bool withlogging=false)
void createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
void createNewIOV(const std::string &firstPayloadToken, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
cond::DbConnection m_connection
void appendSinceTime(T *payloadObj, Summary *summary, cond::Time_t sinceTime, const std::string &recordName, bool withlogging=false)
void setLogHeaderForRecord(const std::string &recordName, const std::string &provenance, const std::string &usertext)
std::string storeObject(const T *object, const std::string &containerName)
void tagInfo(const std::string &recordName, cond::TagInfo &result)
void postModule(const edm::ModuleDescription &desc)
virtual ~PoolDBOutputService()
cond::Time_t m_currentTime
void preModule(const edm::ModuleDescription &desc)
void createNewIOV(T *firstPayloadObj, Summary *summary, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
void appendSinceTime(const std::string &payloadToken, cond::Time_t sinceTime, const std::string &recordName, bool withlogging=false)
cond::Time_t endOfTime() const
std::string timetypestr() const
cond::Time_t currentTime() const
cond::TimeType m_timetype
std::map< std::string, Record > m_callbacks
char const * className(const std::type_info &t)
cond::DbSession m_session
void preEventProcessing(const edm::EventID &evtID, const edm::Timestamp &iTime)
std::string m_timetypestr
cond::DbSession m_logSession
cond::UserLogInfo & lookUpUserLogInfo(const std::string &recordName)
const cond::Logger & queryLog() const
PoolDBOutputService(const edm::ParameterSet &iConfig, edm::ActivityRegistry &iAR)
unsigned int appendIOV(cond::DbSession &, Record &record, const std::string &payloadToken, cond::Time_t sinceTime)