RDF not found:

__Processing df014_CSVDataSource.C+…
Info in TUnixSystem::ACLiC: creating shared library /CADUX-DESTO/SDOS/vg2022/Van_Gogh_22g/DAQ/Ron35/UNFILTERED/./df014_CSVDataSource_C.so
In file included from input_line_12:6:
././df014_CSVDataSource.C:18:20: error: no member named ‘RDF’ in namespace ‘ROOT’
auto df = ROOT::RDF::MakeCsvDataFrame(fileName);

Which version of ROOT are you using?

I succeeded to make te pb compile by adding those include

#include “/soft/root/6.22.08/include/ROOT/RDataFrame.hxx”
#include “/soft/root/6.22.08/include/ROOT/RCsvDS.hxx”

ant tried to use the snapshot command to build a root file but the program never ends and create a empty root file

part of the code below
*nt CSV_to_root_viaRDF()
// Let’s first create a RDF that will read from the CSV file.
auto df = ROOT::RDF::MakeCsvDataFrame(“Data_CH6@DT5730S_10548_Ron35.csv”);
cout << “apres make”<<endl;

df.Snapshot(“myTree”, “myFile2.root”);
cout << “apres Snapshot”<<endl;
return 0;

for information the csv file is very big

Let’s continue at MakeCsvDataFrame to convert from .csv to root file

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.