6 #include <ROOT/RNTuple.hxx> 7 #include <ROOT/RNTupleModel.hxx> 8 #include <ROOT/RPageStorageFile.hxx> 9 using ROOT::Experimental::RNTupleModel;
10 #if ROOT_VERSION_CODE < ROOT_VERSION(6, 31, 0) 11 using ROOT::Experimental::RNTupleWriter;
12 using ROOT::Experimental::Detail::RPageSinkFile;
13 #define MakeRNTupleWriter std::make_unique<RNTupleWriter> 14 #include <ROOT/RNTupleOptions.hxx> 16 using ROOT::Experimental::Internal::RPageSinkFile;
17 #define MakeRNTupleWriter ROOT::Experimental::Internal::CreateRNTupleWriter 18 #include <ROOT/RNTupleWriteOptions.hxx> 20 using ROOT::Experimental::RNTupleWriteOptions;
26 auto model = RNTupleModel::Create();
32 options.SetCompression(
file.GetCompressionSettings());
50 auto model = RNTupleModel::Create();
62 options.SetCompression(
file.GetCompressionSettings());
84 auto pairModel = RNTupleModel::Create();
87 auto model = RNTupleModel::Create();
91 options.SetCompression(
file.GetCompressionSettings());
98 throw cms::Exception(
"LogicError",
"null edm::pset::Registry::Instance pointer");
103 for (
const auto& ps : *
pset) {
104 std::ostringstream oss;
117 auto procHistModel = RNTupleModel::Create();
120 auto model = RNTupleModel::Create();
123 options.SetCompression(
file.GetCompressionSettings());
132 for (
const auto&
ph : procHist) {
134 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
#define MakeRNTupleWriter
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::shared_ptr< RNTupleCollectionWriter > m_collection
std::vector< SummaryTableOutputFields > m_tables