StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SetFtpcFilter.C
1 {
2  // Get a pointer to "displayMAker from chain
3  StEventDisplayMaker *ds = (StEventDisplayMaker *)chain->Maker("EventDisplay");
4 
5  // Print the list of the defaults tables to be drawn
6  ds->PrintNames();
7 
8  // Create the custom filter and attach it to "EventDisplay"
9  StFtpcTrackFilter *f = new StFtpcTrackFilter();
10  ds->SetFilter(f,StEventDisplayMaker::kTptTrack);
11  ds->SetFilter(f,StEventDisplayMaker::kTable);
12 
13  // Edit the list of tables to be drawn
14  // ds->RemoveName("dst/point(id_track,position[0]:position[1]:charge)");
15  ds->RemoveName("dst/primtrk");
16  ds->AddName("dst/globtrk");
17  ds->PrintNames();
18 
19  // Redraw the last event
20  cout << " if you want to remove hit points type:" << endl
21  << "\t ds->RemoveName(\"dst/point(id_track,position[0]:position[1]:charge)\");" << endl
22  << "then:" << "\t ds->ReDraw()" << endl;
23  ds->ReDraw();
24 }