I get the following errors when running the example. Any ideas of what I may be missing?
Thank you. -Pietro
root alice_esd_split.C
------------------------------------------------------------------
| Welcome to ROOT 6.22/02 https://root.cern |
| (c) 1995-2020, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for linuxx8664gcc on Oct 16 2020, 10:01:00 |
| From tag , 17 August 2020 |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
root [0]
Processing alice_esd_split.C...
Info in <TUnixSystem::ACLiC>: creating shared library /home/pbr/root_src/tutorials/eve/SplitGLView_C.so
In file included from input_line_12:6:
./root_src/tutorials/eve/SplitGLView.C:304:4: error: use of undeclared identifier 'gVirtualX'
gVirtualX->Update();
^
./root_src/tutorials/eve/SplitGLView.C:1021:29: error: use of undeclared identifier 'TROOT'
TString rootx = TROOT::GetBinDir() + "/root -a &";
^
./root_src/tutorials/eve/SplitGLView.C:1082:7: error: use of undeclared identifier 'gVirtualX'
gVirtualX->TranslateCoordinates(actViewer->GetFrame()->GetId(),
^
./root_src/tutorials/eve/SplitGLView.C:1231:10: error: use of undeclared identifier 'gVirtualX'
gVirtualX->SetInputFocus(ev->GetGLWidget()->GetId());
^
Error in <ACLiC>: Executing '/home/pbr/anaconda3/envs/pbr_env_38/bin/rootcling -v0 "--lib-list-prefix=/home/pbr/root_src/tutorials/eve/SplitGLView_C_ACLiC_map" -f "/home/pbr/root_src/tutorials/eve/SplitGLView_C_ACLiC_dict.cxx" -I$ROOTSYS/include -I"/home/pbr/anaconda3/envs/pbr_env_38/etc/" -I"/home/pbr/anaconda3/envs/pbr_env_38/etc//cling" -I"/home/pbr/anaconda3/envs/pbr_env_38/include/" -I"/home/pbr/anaconda3/envs/pbr_env_38/include" -D__ACLIC__ "/home/pbr/root_src/tutorials/eve/SplitGLView.C" "/home/pbr/root_src/tutorials/eve/SplitGLView_C_ACLiC_linkdef.h"' failed!
In file included from input_line_16:1:
./alice_esd_split.C:183:21: error: member access into incomplete type 'AliESDEvent'
TIter next(esd->fESDObjects);
^
aliesdProjectDict dictionary forward declarations' payload:30:430: note: forward declaration of 'AliESDEvent'
...__attribute__((annotate("$clingAutoload$aliesdProjectHeaders.h"))) AliESDEvent;
^
In file included from input_line_16:1:
./alice_esd_split.C:191:57: error: member access into incomplete type 'AliESDEvent'
esd_tree->SetBranchAddress("ESDfriend.", esd->fESDObjects->GetObjectRef(el));
^
aliesdProjectDict dictionary forward declarations' payload:30:430: note: forward declaration of 'AliESDEvent'
...__attribute__((annotate("$clingAutoload$aliesdProjectHeaders.h"))) AliESDEvent;
^
In file included from input_line_16:1:
./alice_esd_split.C:195:50: error: member access into incomplete type 'AliESDEvent'
esd_tree->SetBranchAddress(bname, esd->fESDObjects->GetObjectRef(el));
^
aliesdProjectDict dictionary forward declarations' payload:30:430: note: forward declaration of 'AliESDEvent'
...__attribute__((annotate("$clingAutoload$aliesdProjectHeaders.h"))) AliESDEvent;
^
In file included from input_line_16:1:
./alice_esd_split.C:407:46: error: member access into incomplete type 'AliESDEvent'
AliESDRun *esdrun = (AliESDRun*) esd->fESDObjects->FindObject("AliESDRun");
^
aliesdProjectDict dictionary forward declarations' payload:30:430: note: forward declaration of 'AliESDEvent'
...__attribute__((annotate("$clingAutoload$aliesdProjectHeaders.h"))) AliESDEvent;
^
In file included from input_line_16:1:
./alice_esd_split.C:408:46: error: member access into incomplete type 'AliESDEvent'
TClonesArray *tracks = (TClonesArray*) esd->fESDObjects->FindObject("Tracks");
^
aliesdProjectDict dictionary forward declarations' payload:30:430: note: forward declaration of 'AliESDEvent'
...__attribute__((annotate("$clingAutoload$aliesdProjectHeaders.h"))) AliESDEvent;
^
In file included from input_line_16:1:
./alice_esd_split.C:426:38: error: member access into incomplete type 'AliESDRun'
trkProp->SetMagField( 0.1 * esdrun->fMagneticField ); // kGaus to Tesla
^
aliesdProjectDict dictionary forward declarations' payload:6:428: note: forward declaration of 'AliESDRun'
...__attribute__((annotate("$clingAutoload$aliesdProjectHeaders.h"))) AliESDRun;
^
In file included from input_line_16:1:
./alice_esd_split.C:435:30: error: cannot initialize a variable of type 'AliExternalTrackParam *' with an lvalue of type 'AliESDtrack *'
AliExternalTrackParam* tp = at;
^ ~~
./alice_esd_split.C:437:17: error: member access into incomplete type 'AliESDtrack'
tp = at->fIp;
^
aliesdProjectDict dictionary forward declarations' payload:18:430: note: forward declaration of 'AliESDtrack'
...__attribute__((annotate("$clingAutoload$aliesdProjectHeaders.h"))) AliESDtrack;
^
In file included from input_line_16:1:
./alice_esd_split.C:470:22: error: assigning to 'AliExternalTrackParam *' from incompatible type 'AliESDtrack *'
if (tp == 0) tp = at;
^~
./alice_esd_split.C:472:19: error: member access into incomplete type 'AliESDtrack'
rt.fLabel = at->fLabel;
^
aliesdProjectDict dictionary forward declarations' payload:18:430: note: forward declaration of 'AliESDtrack'
...__attribute__((annotate("$clingAutoload$aliesdProjectHeaders.h"))) AliESDtrack;
^
In file included from input_line_16:1:
./alice_esd_split.C:474:27: error: member access into incomplete type 'AliESDtrack'
rt.fStatus = (Int_t) at->fFlags;
^
aliesdProjectDict dictionary forward declarations' payload:18:430: note: forward declaration of 'AliESDtrack'
...__attribute__((annotate("$clingAutoload$aliesdProjectHeaders.h"))) AliESDtrack;
^
In file included from input_line_16:1:
./alice_esd_split.C:475:20: error: member access into incomplete type 'AliExternalTrackParam'
rt.fSign = (tp->fP[4] > 0) ? 1 : -1;
^
aliesdProjectDict dictionary forward declarations' payload:17:440: note: forward declaration of 'AliExternalTrackParam'
...__attribute__((annotate("$clingAutoload$aliesdProjectHeaders.h"))) AliExternalTrackParam;
^
In file included from input_line_16:1:
./alice_esd_split.C:480:18: error: no matching function for call to 'trackGetP'
Double_t ep = trackGetP(at);
^~~~~~~~~
./alice_esd_split.C:126:12: note: candidate function not viable: cannot convert argument of incomplete type 'AliESDtrack *' to 'AliExternalTrackParam *' for 1st
argument
Double_t trackGetP(AliExternalTrackParam* tp);
^
./alice_esd_split.C:497:13: error: member access into incomplete type 'AliESDtrack'
return (t->fFlags & mask) > 0;
^
aliesdProjectDict dictionary forward declarations' payload:18:430: note: forward declaration of 'AliESDtrack'
...__attribute__((annotate("$clingAutoload$aliesdProjectHeaders.h"))) AliESDtrack;
^
In file included from input_line_16:1:
./alice_esd_split.C:505:12: error: member access into incomplete type 'AliExternalTrackParam'
r[0] = tp->fX; r[1] = tp->fP[0]; r[2] = tp->fP[1];
^
aliesdProjectDict dictionary forward declarations' payload:17:440: note: forward declaration of 'AliExternalTrackParam'
...__attribute__((annotate("$clingAutoload$aliesdProjectHeaders.h"))) AliExternalTrackParam;
^
In file included from input_line_16:1:
./alice_esd_split.C:505:27: error: member access into incomplete type 'AliExternalTrackParam'
r[0] = tp->fX; r[1] = tp->fP[0]; r[2] = tp->fP[1];
^
aliesdProjectDict dictionary forward declarations' payload:17:440: note: forward declaration of 'AliExternalTrackParam'
...__attribute__((annotate("$clingAutoload$aliesdProjectHeaders.h"))) AliExternalTrackParam;
^
In file included from input_line_16:1:
./alice_esd_split.C:505:45: error: member access into incomplete type 'AliExternalTrackParam'
r[0] = tp->fX; r[1] = tp->fP[0]; r[2] = tp->fP[1];
^
aliesdProjectDict dictionary forward declarations' payload:17:440: note: forward declaration of 'AliExternalTrackParam'
...__attribute__((annotate("$clingAutoload$aliesdProjectHeaders.h"))) AliExternalTrackParam;
^
In file included from input_line_16:1:
./alice_esd_split.C:507:28: error: member access into incomplete type 'AliExternalTrackParam'
Double_t cs=TMath::Cos(tp->fAlpha), sn=TMath::Sin(tp->fAlpha), x=r[0];
^
aliesdProjectDict dictionary forward declarations' payload:17:440: note: forward declaration of 'AliExternalTrackParam'
...__attribute__((annotate("$clingAutoload$aliesdProjectHeaders.h"))) AliExternalTrackParam;
^
In file included from input_line_16:1:
./alice_esd_split.C:507:55: error: member access into incomplete type 'AliExternalTrackParam'
Double_t cs=TMath::Cos(tp->fAlpha), sn=TMath::Sin(tp->fAlpha), x=r[0];
^
aliesdProjectDict dictionary forward declarations' payload:17:440: note: forward declaration of 'AliExternalTrackParam'
...__attribute__((annotate("$clingAutoload$aliesdProjectHeaders.h"))) AliExternalTrackParam;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In module 'Eve':
/home/pbr/anaconda3/envs/pbr_env_38/include/TEveVSDStructs.h:146:4: warning: inline function 'TEveRecTrackT<float>::TEveRecTrackT' is not defined [-Wundefined-inline]
TEveRecTrackT() : fLabel(-1), fIndex(-1), fStatus(0), fSign(0), fV(), fP(), fBeta(0), fDcaXY(0), fDcaZ(0), fPVX(0), f...
^
./alice_esd_split.C:468:18: note: used here
TEveRecTrack rt;
^
In module 'Eve':
/home/pbr/anaconda3/envs/pbr_env_38/include/TEveVSDStructs.h:147:12: warning: inline function 'TEveRecTrackT<float>::~TEveRecTrackT' is not defined [-Wundefined-inline]
virtual ~TEveRecTrackT() {}
^
./alice_esd_split.C:468:18: note: used here
TEveRecTrack rt;
^
In module 'Eve':
/home/pbr/anaconda3/envs/pbr_env_38/include/TEveVector.h:82:9: warning: inline function 'TEveVectorT<float>::Set' is not defined [-Wundefined-inline]
void Set(const Double_t* v) { fX = v[0]; fY = v[1]; fZ = v[2]; }
^
./alice_esd_split.C:477:38: note: used here
trackGetPos(tp, vbuf); rt.fV.Set(vbuf);
^
input_line_18:2:3: error: use of undeclared identifier 'run_alice_esd_split'
(run_alice_esd_split())
^
Error in <HandleInterpreterException>: Error evaluating expression (run_alice_esd_split()).
Execution of your code was aborted.```
_ROOT Version: 6.22/02
_Platform: Debian GNU/Linux 10 (buster)
_Compiler: g++ (Debian 8.3.0-6) 8.3.0