3 StEventDisplayMaker *dsMaker = 0;
6 void TurnDisplay(
const Char_t *filterName=0) {
14 if (chain->IsA() == StChain::Class() || !chain->GetOption(
"DISPLAY") ) {
15 gSystem->Load(
"St_geom_Maker");
16 gSystem->Load(
"StEventDisplayMaker");
17 StMaker *mini =
new St_geom_Maker();
19 dsMaker =
new StEventDisplayMaker();
22 dsMaker = (StEventDisplayMaker *) chain->GetMaker(
"EventDisplay");
24 if (filterName && filterName[0]) {
25 gSystem->Load(filterName);
26 TClass *filterClass = gROOT->GetClass(filterName);
31 dsMaker->SetFilter(trackFilter,StEventDisplayMaker::kTable);
32 trackFilter->TurnOn();
35 dsMaker->SetFilter(trackFilter,StEventDisplayMaker::kTptTrack);
38 cout <<
" *** ERROR ***: There is no class filter <" << filterName <<
">. The defualt one will be used instead" << endl;
39 dsMaker->SetTableFlag();
43 dsMaker->SetTableFlag();
44 dsMaker->SetTptTrackFlag();
58 dsMaker->AddName(
"dst/dst_dedx(id_track)");
68 dsMaker->AddName(
"tphit(id_globtrk,x:y:z)");
80 dsMaker->AddName(
"dst/point(id_track,position[0]:position[1]:charge)");
83 dsMaker->AddName(
"dst/primtrk");
84 dsMaker->AddName(
"tptrack");
90 if (trackFilter) trackFilter->TurnOn();