19 #include <sys/types.h>
37 #define init_param(type, varname) varname (ps.getParameter< type >( #varname ))
68 std::auto_ptr<FFTJetCorrectorParameters> fcp;
74 <<
"Failed to open file \"" <<
inputFile <<
'"' << std::endl;
79 <<
"Failed to stat file \"" <<
inputFile <<
'"' << std::endl;
81 const std::size_t len = st.st_size;
82 fcp = std::auto_ptr<FFTJetCorrectorParameters>(
84 assert(fcp->length() == len);
86 input.read(fcp->getBuffer(), len);
89 <<
"Input stream failure while reading file \""
95 poolDbService->
writeOne(fcp.release(),
100 <<
"PoolDBOutputService is not available, "
101 <<
"please configure it properly" << std::endl;
#define init_param(type, varname)
#define DEFINE_FWK_MODULE(type)
static std::string const input
FFTJetCorrectorDBWriter & operator=(const FFTJetCorrectorDBWriter &)
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
virtual ~FFTJetCorrectorDBWriter()
cond::Time_t currentTime() const
FFTJetCorrectorDBWriter()
virtual void analyze(const edm::Event &, const edm::EventSetup &) override