Template TBranch *Branch(const char* name, const char* classname, T** addobj, Int_t bufsize = 32000, Int_t splitlevel = 99) Users/theofil/root/include/TTree.h:323:32: note: candidate template ignored: could not match 'type-parameter-0-0 *' against 'double' Virtual Int_t Branch(TList* list, Int_t bufsize = 32000, Int_t splitlevel = 99) Users/theofil/root/include/TTree.h:297:28: note: candidate function not viable: no known conversion from 'const char ' to 'TList *' for 1st argument Virtual Int_t Branch(TCollection* list, Int_t bufsize = 32000, Int_t splitlevel = 99, const char* name = "") Users/theofil/root/include/TTree.h:296:28: note: candidate function not viable: no known conversion from 'const char ' to 'TCollection *' for 1st argument TBranch *Branch(const char* name, int address, const char* leaflist, Int_t bufsize = 32000) Users/theofil/root/include/TTree.h:310:20: note: candidate function not viable: no known conversion from 'TClass *' to 'int' for 2nd argument TBranch *Branch(const char* name, Long_t address, const char* leaflist, Int_t bufsize = 32000) Users/theofil/root/include/TTree.h:305:20: note: candidate function not viable: no known conversion from 'TClass *' to 'Long_t' (aka 'long') for 2nd argument TBranch *Branch(const char* name, char* address, const char* leaflist, Int_t bufsize = 32000) Users/theofil/root/include/TTree.h:300:28: note: candidate function not viable: no known conversion from 'TClass *' to 'char *' for 2nd argument Virtual Int_t Branch(const char* folder, Int_t bufsize = 32000, Int_t splitlevel = 99) Users/theofil/root/include/TTree.h:298:28: note: candidate function not viable: no known conversion from 'TClass *' to 'Int_t' (aka 'int') for 2nd argument Virtual TBranch *Branch(const char* name, const char* classname, void* addobj, Int_t bufsize = 32000, Int_t splitlevel = 99) Users/theofil/root/include/TTree.h:316:28: note: candidate function not viable: no known conversion from 'TClass *' to 'const char *' for 2nd argument Template TBranch *Branch(const char* name, const char* classname, T* obj, Int_t bufsize = 32000, Int_t splitlevel = 99) Users/theofil/root/include/TTree.h:318:32: note: candidate function not viable: no known conversion from 'TClass *' to 'const char *' for 2nd argument Virtual TBranch *Branch(const char* name, void* address, const char* leaflist, Int_t bufsize = 32000) 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 |