12 #include "TEveManager.h"
14 #include "TEveStraightLineSet.h"
17 TEveStraightLineSet*
lineset(Int_t nlines = 40, Int_t nmarkers = 4) ;
23 std::cout <<
" next_event called - nothing to do ... " << std::endl ;
28 tevent->DestroyElements() ;
40 TEveStraightLineSet*
lineset(Int_t nlines, Int_t nmarkers )
42 TEveManager::Create();
47 TEveStraightLineSet* ls =
new TEveStraightLineSet();
49 for(Int_t i = 0; i<nlines; i++)
51 ls->AddLine( r.Uniform(-s,s), r.Uniform(-s,s), r.Uniform(-s,s),
52 r.Uniform(-s,s), r.Uniform(-s,s), r.Uniform(-s,s));
54 Int_t nm = Int_t(nmarkers* r.Rndm());
55 for(Int_t m = 0; m < nm; m++) {
56 ls->AddMarker(i, r.Rndm());
60 ls->SetMarkerSize(1.5);
61 ls->SetMarkerStyle(4);