18 TCanvas *m_TreeD =
new TCanvas(
"STAF",
"Events",10,600,200,200);
19 TFile f(
"/star/u2a/fine/WWW/star.root");
22 TGeometry *star = f.Get(
"STAR");
24 printf(
"Sorry, STAR was not found !\n");
27 TList *listOfNode = star->GetListOfNodes();
31 listOfNode->Remove(hall);
40 StTrackCollection *tracks = ((
StEvent *)
Event)->trackCollection();
42 StGlobalTrackIterator next(tracks);
44 Int_t trackCounter = 0;
45 while (globTrack = (
StGlobalTrack *)next() && trackCounter < 50) {
46 printf (
"Track %d\n",trackCounter);
47 StVecPtrTpcHit *hits = globTrack->tpcHits();
48 StHits3DPoints *hitPoints =
new StHits3DPoints(hits);
49 StHelix3DPoints *helixPoints =
new StHelix3DPoints(globTrack,globTrack->length(),30);
50 if (hitPoints->Size()>1) {
55 Int_t colorIndx = trackCounter%7;
60 thisTrack =
new St_Node(
"hits",
"hits",helixShape);
63 thisTrack->Add(trackShape);
67 printf(
" no position %d\n",trackCounter);
69 printf(
" %d tracks has been found\n",trackCounter);
74 gBenchmark->Stop(
"Draw time");
79 printf(
" drawing the STAR geometry sensible volumes and hits \n");
91 printf(
" Marking the current structure to create another simplified one\n");
93 shortView = (
St_NodeView *)sensible->FindByName(
"TPGV");
94 if (shortView) shortView->Mark();
102 if (strcmp(shortView->GetName(),
"ZCAL")==0)
continue;
110 printf(
" Creating a new structure simplified structure\n");
112 TCanvas *m_simpleD =
new TCanvas(
"Detector",
"Simple view and hits",500,500,400,400);
113 shortView->Draw(
"L");
121 printf(
" Drawing the new structure simplified structure\n");
123 gBenchmark->Summary();
124 printf(
" Drawing 3d solid view of the last structure\n");
virtual TDataSet * First() const
Return the first object in the list. Returns 0 when list is empty.
virtual Size_t SetSizeAttribute(Size_t size)
to be documented
virtual void Remove(TDataSet *set)
Remiove the "set" from this TDataSet.
virtual void SetVisibility(ENodeSEEN vis=TVolume::kBothVisible)
virtual Color_t SetColorAttribute(Color_t color)
to be documented