48 std::auto_ptr<OOTPileupCorrectionBuffer> fcp;
54 <<
"Failed to open file \"" <<
inputFile <<
'"' << std::endl;
59 <<
"Failed to stat file \"" <<
inputFile <<
'"' << std::endl;
61 const std::size_t len = st.st_size;
62 fcp = std::auto_ptr<OOTPileupCorrectionBuffer>(
64 assert(fcp->length() == len);
66 input.read(fcp->getBuffer(), len);
69 <<
"Input stream failure while reading file \"" 75 poolDbService->
writeOne(fcp.release(),
80 <<
"PoolDBOutputService is not available, " 81 <<
"please configure it properly" << std::endl;
virtual ~BufferedBoostIODBWriter()
#define DEFINE_FWK_MODULE(type)
BufferedBoostIODBWriter()
static std::string const input
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
BufferedBoostIODBWriter & operator=(const BufferedBoostIODBWriter &)
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
cond::Time_t currentTime() const