When I try to use examples : constructComparisonTree.C
root -l test_gamma_test1.root
root [1] .L constructComparisonTree.C++
root [2] auto file = new TFile(“output.root”, “RECREATE”)
(TFile *) @0x7ffd22a0e380
root [3] t.constructComparisonTree(test_gamma_test1.root, “supix”)
I faild:
auto tree = constructComparisonTree(clusters, “supix”)
^
FunctionDecl 0x1c6fedd8 <input_line_42:1:1, ROOT_prompt_7:3:1> input_line_42:1:6 __cling_Un1Qu321 ‘void (void *)’
|-ParmVarDecl 0x1c6fed20 <col:23, col:29> col:29 vpClingValue ‘void *’
|-CompoundStmt 0x1c6ff0e0 <col:43, ROOT_prompt_7:3:1>
|-DeclStmt 0x1c6ff0c8 <line:1:1, line:2:1> |
-VarDecl 0x1c6feeb8 <line:1:1, col:54> col:6 tree ‘auto’ cinit
|-CallExpr 0x1c6ff098 <col:13, col:54> '<dependent type>' | |-UnresolvedLookupExpr 0x1c6fef20 <col:13> '<overloaded function type>' lvalue (ADL) = 'constructComparisonTree' 0x1bfb8610 | |-DeclRefExpr 0x1c6ff038 <col:37> '<dependent type>' lvalue Var 0x1c6fef70 'clusters' '<dependent type>' |
-StringLiteral 0x1c6ff078 col:47 ‘const char [6]’ lvalue “supix”
`-AnnotateAttr 0x1c6fefd8 <> R"ATTRDUMP(__ResolveAtRuntime)ATTRDUMP"
<<>>
root [8] .q
I don’t know what went wrong.