1 #ifndef CondTools_Hcal_BoostIODBReader_h
2 #define CondTools_Hcal_BoostIODBReader_h
26 #include "CondFormats/Serialization/interface/eos/portable_oarchive.hpp"
41 template <
class DataType,
class RecordType>
56 template <
class DataType,
class RecordType>
58 : outputFile_(ps.getParameter<std::
string>(
"outputFile")) {}
60 template <
class DataType,
class RecordType>
63 const DataType*
p = &iSetup.
getData(tok);
65 std::ofstream
of(outputFile_.c_str(), std::ios_base::binary);
67 throw cms::Exception(
"InvalidArgument") <<
"Failed to open file \"" << outputFile_ <<
'"' << std::endl;
69 eos::portable_oarchive ar(
of);
73 #endif // CondTools_Hcal_BoostIODBReader_h
bool getData(T &iHolder) const
void analyze(const edm::Event &, const edm::EventSetup &) override
~BoostIODBReader() override
BoostIODBReader(const edm::ParameterSet &)