ROOT Version: 6.15.01
Platform: Mac OSX 10.13.6
Compiler:
Could somebody help me fix this segmentation violation?
root.C (512 Bytes)
ROOT Version: 6.15.01
Platform: Mac OSX 10.13.6
Compiler:
Could somebody help me fix this segmentation violation?
root.C (512 Bytes)
Hi,
what happens if you put your code in a macro rather than the prompt? And if you have a compiled program?
Cheers,
D
For a complied program, it says
/Downloads/root.C:11:1: error: expected unqualified-id
while(myReader.Next()){
^
for macro;
/Users/ishwar/Downloads/root.cxx:16:8: error: unknown type name 'Float_t’
for( Float_t<U+200B> <U+200B>px:Px){
^
/Users/ishwar/Downloads/root.cxx:17:10: error: unknown type name 'Float_t’
for( Float_t<U+200B> <U+200B>py:Py){
^
/Users/ishwar/Downloads/root.cxx:18:20: error: use of undeclared identifier 'px’
PTrans->Fill(px+py);
^
/Users/ishwar/Downloads/root.cxx:18:23: error: use of undeclared identifier 'py’
PTrans->Fill(px+py);
If I just used void macro() in prompt and then ran macro(), I got this error.
Error in <TTreeReaderArrayBase::GetBranchContentDataType()>: The branch Px was created using a leaf list and cannot be represented as a C++ type. Please access one of its siblings using a TTreeReaderArray:
Error in <TTreeReaderArrayBase::GetBranchContentDataType()>: Px.fPx
Error in <TTreeReaderArrayBase::CreateContentProxy()>: Cannot determine the type contained in the collection of branch Px. That’s weird - please report!
Never mind, I fixed it. it turns out the leaves had data stored in arrays.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.