6 #include <ROOT/RNTuple.hxx> 7 #include <ROOT/RNTupleModel.hxx> 8 #include <ROOT/RNTupleOptions.hxx> 9 #include <ROOT/RPageStorageFile.hxx> 10 using ROOT::Experimental::RNTupleModel;
11 using ROOT::Experimental::RNTupleWriteOptions;
12 using ROOT::Experimental::RNTupleWriter;
13 using ROOT::Experimental::Detail::RPageSinkFile;
19 auto model = RNTupleModel::Create();
25 options.SetCompression(
file.GetCompressionSettings());
27 std::make_unique<RPageSinkFile>(
"LuminosityBlocks",
file,
options));
44 auto model = RNTupleModel::Create();
56 options.SetCompression(
file.GetCompressionSettings());
78 auto pairModel = RNTupleModel::Create();
81 auto model = RNTupleModel::Create();
85 options.SetCompression(
file.GetCompressionSettings());
86 m_ntuple = std::make_unique<RNTupleWriter>(
92 throw cms::Exception(
"LogicError",
"null edm::pset::Registry::Instance pointer");
97 for (
const auto& ps : *
pset) {
98 std::ostringstream oss;
111 auto procHistModel = RNTupleModel::Create();
114 auto model = RNTupleModel::Create();
117 options.SetCompression(
file.GetCompressionSettings());
118 m_ntuple = std::make_unique<RNTupleWriter>(
126 for (
const auto&
ph : procHist) {
128 ph.second.id().toString(phid);
RNTupleFieldPtr< std::string > m_psetId
std::unique_ptr< RNTupleWriter > m_ntuple
std::string const & metaDataTreeName()
RNTupleFieldPtr< std::string > m_psetBlob
void fill(const edm::LuminosityBlockID &id, TFile &file)
RNTupleFieldPtr< UInt_t > m_run
void createFields(TFile &file)
std::string const & processHistoryBranchName()
void fill(const T &value)
void registerToken(const edm::EDGetToken &token)
BasicHandle getByToken(EDGetToken token, TypeID const &typeID) const
std::shared_ptr< RCollectionNTupleWriter > m_collection
RNTupleFieldPtr< UInt_t > m_run
void createFields(const edm::LuminosityBlockID &id, TFile &file)
std::unique_ptr< RNTupleWriter > m_ntuple
std::string const & parameterSetsTreeName()
std::vector< edm::EDGetToken > m_tokens
void createFields(const edm::RunForOutput &iRun, TFile &file)
std::string const & idToParameterSetBlobsBranchName()
void fill(edm::pset::Registry *pset, TFile &file)
RNTupleFieldPtr< UInt_t > m_luminosityBlock
std::unique_ptr< RNTupleWriter > m_ntuple
void fill(const edm::RunForOutput &iRun, TFile &file)
std::vector< SummaryTableOutputFields > m_tables