Users/theofil/root/include/TTree.h:299:28: note: candidate function not viable: no known conversion from 'Double32_t *' (aka 'double *') to 'const char *' for 3rd argument Template TBranch *Branch(const char* name, T* obj, Int_t bufsize = 32000, Int_t splitlevel = 99) Users/theofil/root/include/TTree.h:333:32: note: candidate function not viable: no known conversion from 'Double32_t *' (aka 'double *') to 'Int_t' (aka 'int') Main.C:17:11: error: no matching member function for call to 'Branch' The error message: pb-d-128-141-140-92:data32 theofil$ g++ main.C -o main.exec `root-config -glibs -cflags` I am not completely sure where the “var” should be declaredĪnd if the declaration in gROOT->ProcessLine(…) would be sufficient for theĬompiler or if a global scope “Double32_t var //” should be also My project I will need eventually a solution that compiles with g++ and can I used ROOT 6.02/05 built for macos圆4 but for ![]() I tried it on CINT, on ACliC but also tried to compile this with g++, none of it MyTree->Branch("var", TClass::GetClass("D32Holder"), &var) // doesn't work Here is my code: // compile this with: g++ main.C -o main.exec `root-config -glibs -cflags`įp = new TFile("output.root","RECREATE") To my lack of experience with this dataformat. I tried it, but didn’t succeed, I believe I am missing something obvious due Thank you very much for your prompt reply. Is there any trick to do this work without defining class and generatingĭictionary ? If not, is there any chance to get this feature supported ![]() Since Double32_t is not a supported data type as Float_t orĭouble_t are, but I just give it as an example of what I would The code above doesn’t work, because there is no leaflist of D32 ![]() I was wondering if there is any trick to use a Double32_t as a pseudoīasic data type over a “flat” tree, without need of a dictionary. However, these features (as I understand from ) can be used only if Double32_t is a member of a user defined classĪnd that implies the need of dictionary generation e.g., using genreflex. I find the functionality offered by Double32_t imperativeįor high performance IO on ROOT files and disk storage considerations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |