1 #ifndef CalibTracker_SiStripESProducer_DummyCondDBWriter_h 2 #define CalibTracker_SiStripESProducer_DummyCondDBWriter_h 20 template<
typename TObject ,
typename TObjectO ,
typename TRecord>
36 template<
typename TObject ,
typename TObjectO ,
typename TRecord>
38 edm::LogInfo(
"DummyCondDBWriter") <<
"DummyCondDBWriter constructor for typename " <<
typeid(TObject).
name() <<
" and record " <<
typeid(TRecord).
name() << std::endl;
42 template<
typename TObject ,
typename TObjectO ,
typename TRecord >
44 edm::LogInfo(
"DummyCondDBWriter") <<
"DummyCondDBWriter::~DummyCondDBWriter()" << std::endl;
47 template<
typename TObject ,
typename TObjectO ,
typename TRecord >
53 if(
cacheID == es.
get<TRecord>().cacheIdentifier()){
54 edm::LogInfo(
"DummyCondDBWriter") <<
"not needed to store objects with Record "<< rcdName <<
" at run " << run.
run() << std::endl;
return;
59 es.
get<TRecord>().
get( labelName, esobj );
60 TObjectO *
obj=
new TObjectO(*(esobj.
product()));
68 if(openIovAt==
"beginOfTime")
70 else if (openIovAt==
"currentTime")
75 dbservice->
writeOne(obj, Time_, rcdName);
77 edm::LogError(
"SiStripFedCablingBuilder")<<
"Service is unavailable"<<std::endl;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
DummyCondDBWriter(const edm::ParameterSet &iConfig)
unsigned long long Time_t
cond::Time_t beginOfTime() const
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
unsigned long long cacheID
edm::ParameterSet iConfig_
cond::Time_t currentTime() const
void endRun(const edm::Run &run, const edm::EventSetup &es) override
~DummyCondDBWriter() override
void analyze(const edm::Event &e, const edm::EventSetup &es) override
T const * product() const