1 #ifndef CondTools_L1Trigger_WriterProxy_h
2 #define CondTools_L1Trigger_WriterProxy_h
43 template <
class Record,
class Type>
63 throw cond::Exception(
"DataWriter: PoolDBOutputService not available.");
71 std::shared_ptr<Type> pointer = std::make_shared<Type>(*(handle.
product()));
82 #define REGISTER_L1_WRITER(record, type) \
83 template class l1t::WriterProxyT<record, type>; \
84 typedef l1t::WriterProxyT<record, type> record##_##type##_Writer; \
85 DEFINE_EDM_PLUGIN(l1t::WriterFactory, record##_##type##_Writer, #record "@" #type "@Writer")
persistency::Exception Exception
cond::persistency::Session session() const
edmplugin::PluginFactory< l1t::WriterProxy *()> WriterFactory
Transaction & transaction()
std::string save(const edm::EventSetup &setup) const override
virtual std::string save(const edm::EventSetup &setup) const =0
T const * product() const
cond::Hash storePayload(const T &payload, const boost::posix_time::ptime &creationTime=boost::posix_time::microsec_clock::universal_time())