00001 //*-- Author : Valery Fine(fine@bnl.gov) 02/12/99 00002 // $Id: SetObjectFilter.C,v 1.4 2000/08/10 17:09:30 fine Exp $ 00003 //___________________________________________________________________ 00004 void SetObjectFilter() 00005 { 00006 // This is a pattern to be used by user to create his /her 00007 // own custom filter parameters. 00008 00009 // - Make your own copy of this macro 00010 // - Keep this file open with your favorite editor 00011 // - Change it when it is appropriated and 00012 // - RELOAD in to the running ROOT session with 00013 // .x SetObjectFilter.C 00014 // as many time as you want 00015 00016 // To get an access to your custom filter one has to cast 00017 // the global virtual pointer to his /her custom type 00018 // This means the type "StVirtualFilter" must be replaced with the 00019 // custom one. 00020 00021 //________________________________________________ 00022 // 00023 // You should adjust the type of filter below 00024 //________________________________________________ 00025 // 00026 StTrackFilter *localFilter = (StVirtualEventFilter *)trackFilter; 00027 //________________________________________________ 00028 Int_t tr_p[]={39250,39344}; 00029 Int_t ltr_p = sizeof(tr_p)/sizeof(int); 00030 localFilter->SetTrack_P(tr_p,ltr_p); 00031 00032 Int_t id_globtrk[]={3975,2485}; 00033 Int_t lid_globtrk = sizeof(id_globtrk)/sizeof(int); 00034 localFilter->SetId_globtrk(id_globtrk,lid_globtrk); 00035 00036 Int_t tr_id[]={5489,5491}; 00037 Int_t ltr_id = sizeof(tr_id)/sizeof(int); 00038 localFilter->SetTptID(tr_id,ltr_id); 00039 //______________________________________________// 00040 // // 00041 // Redraw picture with a new filter parameters. // 00042 // You should NOT change the line below !!! // 00043 //______________________________________________// 00044 // // 00045 if (dsMaker) dsMaker->ReDraw(); // 00046 //______________________________________________// 00047 } 00048 00049 // $Log: SetObjectFilter.C,v $ 00050 // Revision 1.4 2000/08/10 17:09:30 fine 00051 // Wensheng example has been fixed 00052 // 00053 // Revision 1.3 1999/12/06 04:46:56 fine 00054 // Bug fixes 00055 // 00056 // Revision 1.2 1999/12/02 20:03:31 fine 00057 // Clean up 00058 // 00059 // Revision 1.1 1999/12/02 18:49:35 fine 00060 // two new macro to play with Event Display have been introduced 00061 //
1.5.9