macros/graphics/SetFtpcFilter.C

00001 { 00002 // Get a pointer to "displayMAker from chain 00003 StEventDisplayMaker *ds = (StEventDisplayMaker *)chain->Maker("EventDisplay"); 00004 00005 // Print the list of the defaults tables to be drawn 00006 ds->PrintNames(); 00007 00008 // Create the custom filter and attach it to "EventDisplay" 00009 StFtpcTrackFilter *f = new StFtpcTrackFilter(); 00010 ds->SetFilter(f,StEventDisplayMaker::kTptTrack); 00011 ds->SetFilter(f,StEventDisplayMaker::kTable); 00012 00013 // Edit the list of tables to be drawn 00014 // ds->RemoveName("dst/point(id_track,position[0]:position[1]:charge)"); 00015 ds->RemoveName("dst/primtrk"); 00016 ds->AddName("dst/globtrk"); 00017 ds->PrintNames(); 00018 00019 // Redraw the last event 00020 cout << " if you want to remove hit points type:" << endl 00021 << "\t ds->RemoveName(\"dst/point(id_track,position[0]:position[1]:charge)\");" << endl 00022 << "then:" << "\t ds->ReDraw()" << endl; 00023 ds->ReDraw(); 00024 }

Generated on Wed Feb 11 05:05:22 2009 for StRoot by doxygen 1.3.7