18 #include <RtypesCore.h>
19 #include <TEveManager.h>
20 #include <TEveTrack.h>
21 #include <TEveTrackPropagator.h>
30 : fEventManager(nullptr)
37 , fAcceptCompound(acceptCompound)
42 std::for_each(BeginChildren(), EndChildren(), [](TEveElement *trackGroup) {
43 std::for_each(trackGroup->BeginChildren(), trackGroup->EndChildren(), [](TEveElement *track) {
44 if (track->GetRnrSelf()) {
45 track->SetRnrSelfChildren(kFALSE, kFALSE);
47 track->SetRnrSelfChildren(kTRUE, kTRUE);
51 gEve->Redraw3D(kFALSE);
64 auto trackGroup(static_cast<TEveTrackList *>(FindChild(groupName)));
66 if (trackGroup ==
nullptr) {
67 TEveTrackPropagator *TrPropagator =
new TEveTrackPropagator();
68 if (fAcceptCompound) {
71 trackGroup =
new TEveTrackList(groupName, TrPropagator);
73 AddElement(trackGroup);
74 trackGroup->SetRnrLine(kTRUE);
75 trackGroup->SetMainColor(color);
82 std::for_each(BeginChildren(), EndChildren(), [](TEveElement *trackGroup) {
83 if (trackGroup->GetRnrSelf()) {
84 trackGroup->SetRnrSelfChildren(kFALSE, kFALSE);
86 trackGroup->SetRnrSelfChildren(kTRUE, kTRUE);
89 gEve->Redraw3D(kFALSE);
FairEveTracks(Bool_t acceptCompound=kFALSE)
static FairEventManager * Instance()
virtual InitStatus Init()
TEveTrackList * FindTrackGroup(TString groupName, Color_t color)