I am still having problems doing this . I have already tried:
…
TFile file(“file.dat”,“CREATE”);
mytuple.SetScanField(0)
mytuple.Scan();>file
But it comes with this error:
Error: G__getvariable: expression FILE:(tmpfile) LINE:1
(class TFile)149670192
*** Interpreter error recovered ***
I do not know how to solve it…
And how can i convert to a text file only some variables, those that start with “AA…”, for example, and saving all to the same text file.
Error: G__getvariable: expression FILE:(tmpfile) LINE:1
Error: Symbol test is not defined in current scope FILE:(tmpfile) LINE:1
Error: Failed to evaluate teste.dat(const int)0
*** Interpreter error recovered ***
I have tried : mytuple.Scan();>“test.dat” . And comes:
No I did not forget, what i mean is:
my ntuple has about 20 colum and when i go mytuple.Scan(); >file, after mytuple.SetScanField(0), all the rows are shown at once , but the colums not.
So the file is written without those colums that could not be shown because of the limitation on the screen size.
Special CINT commands like the one starting with ‘.’ or the easy redirection of the standard output are not diretly available inside a macro or inside compile code. You have to go through gROOT->ProcessLine.