Details
-
Bug
-
Status: Closed (View Workflow)
-
High
-
Resolution: Fixed
-
master
-
None
-
all
Description
As reported here https://root-forum.cern.ch/t/rdataframe-fill-action/31211 this code does not compile. The static assert has to be removed.
#include <TROOT.h>
|
#include <ROOT/RDataFrame.hxx>
|
#include <ROOT/RVec.hxx>
|
#include <TH1F.h>
|
|
class Test
|
{
|
TH1F hist;
|
public:
|
void Fill(const int val)
|
{
|
hist.Fill(val);
|
}
|
};
|
|
int main()
|
{
|
const std::string file = "myfile.root";
|
auto df = ROOT::RDataFrame("Events", file);
|
|
auto something = df.Fill(Test(), {"nMuon"});
|
|
return 0;
|
}
|