In the directory /star/rcf/pwg/pcoll/gorbunov/dstar you can find the xml file which runs StPeCMaker over produced MC sample in order to sumbit use >>>>>>- > star-submit @ nFile = 0 eval set filename = '$INPUTFILE'$nFile root4star -q -b .x /star/rcf/pwg/pcoll/gorbunov/dstar/doEvents.C\(1000,\"$filename\"\) The maker has to be specified in the doEvents.C file to doEvents.C file is the standard template but in order to use PeCMaker two lines have to be added gSystem->Load("StPeCMaker"); ... StPeCMaker *pecMaker = new StPeCMaker("pecanalysis"); my doEvents.C can be found /star/rcf/pwg/pcoll/gorbunov/dstar/doEvents.C one have to change the cut in StPeCEnumerations.h const int StPeCnMaxTracks =200; from 10 (default ) to 200 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> to compile StPeCMaker tutorial at https://people.creighton.edu/~jes32425/PeCTutor/ copy files with StPeCMaker cvs co StRoot/StPeCMaker compile cons +StRoot/StPeCMaker >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> it's good idea to use a stable version of the library to specify the library starver SL05d >>>>>>>>>>>>>>>>>>>>>>>>>> for Dstar - the selection program is http://physicsweb.creighton.edu/gorbunov/DStar_Final.C xml code for it starver SL05d cd /star/rcf/pwg/pcoll/ewatson/dstar/ root4star -q -b /star/rcf/pwg/pcoll/ewatson/dstar/DStar_Final.C\(\"$FILELIST\",\"$SCRATCH\",\"$JOBID\"\)