1 #ifndef CondTools_L1Trigger_WriterProxy_h 2 #define CondTools_L1Trigger_WriterProxy_h 46 template <
class Record,
class Type>
70 throw cond::Exception(
"DataWriter: PoolDBOutputService not available.");
74 if (not
session.transaction().isActive())
75 session.transaction().start(
false);
77 std::shared_ptr<Type> pointer = std::make_shared<Type>(*(
handle.product()));
88 #define REGISTER_L1_WRITER(record, type) \ 89 template class l1t::WriterProxyT<record, type>; \ 90 typedef l1t::WriterProxyT<record, type> record##_##type##_Writer; \ 91 DEFINE_EDM_PLUGIN(l1t::WriterFactory, record##_##type##_Writer, #record "@" #type "@Writer") persistency::Exception Exception
uint32_t cc[maxCellsPerHit]
void setToken(edm::ConsumesCollector cc) override
edmplugin::PluginFactory< l1t::WriterProxy *()> WriterFactory
virtual void setToken(edm::ConsumesCollector cc)=0
std::string save(const edm::EventSetup &setup) const override
virtual std::string save(const edm::EventSetup &setup) const =0
edm::ESGetToken< Type, Record > rcdToken
cond::persistency::Session session() const