How to Tune Up TpcRS ---------------------- 1. The tuneup Goal is to reduce systematic errors in Tpc efficiency calculation due to digitization to level below 1%. 2. How to run TpcRS a. Create a directory mkdir -p ~/work/TpcRS (my example in this directory) b. I am working in .DEV2 (where I have the latest version of ROOT and gcc450). starver .DEV2 source $STAR/setupDev2.csh c. But I propose you to use dev starver dev and cvs co StRoot/StTpcRSMaker cvs co -dStRoot/StTpcMcAnalysisMaker offline/users/fisyak/StRoot/StTpcMcAnalysisMaker cons d. Check out TpcRS parameters cvs co StarDb/Calibrations/tpc/TpcResponseSimulator.C \ StarDb/Calibrations/tpc/TpcResponseSimulator.y2009.C \ StarDb/Calibrations/tpc/TpcResponseSimulator.y2010.C Tune up for y2009 means modification of TpcResponseSimulator.y2009.C e. You need to copy cp ~fisyak/.rootrc . cp ~fisyak/public/macros/TpcRS.C . cp ~fisyak/public/macros/TpcT.* . cp ~fisyak/bin/TpcT.csh . f. TpcRS.C is macro to run a chain. Examples of xml-files to submit SUMS jobs can be found in ~/work/TpcRS/*.xml. I usually run in sub directory mkdir y2009_A cd y2009_A ln -s ../.sl53* . ln -s ../StarDb . star-submit ../y2009.xml 3. Analysis. a. You have to be sure that dE/dx distribution from MC (simulation) corresponds to RC (reconstruction) ~fisyak/hadd.pl files='*0.root' star-submit hadd.xml hadd y2009_A.root All*.root ~fisyak/fit.pl y2009_A.root star-submit fit.xml The reference set of histograms is ~fisyak/Histograms/RunIX66DEV_calib.root The first of all you have to compare SecRow3CGFRunIX66DEV_calib.root and SecRow3CGFy2009_A.root These files contain fit of dE/dx for MIP (0.4 < p < 0.5 GeV/c) of pion position and its sigma versus sector and pad row. MC should follow RC b. Shapes To get shapes you need to run (all macros from ~/fisyak/macros) root.exe -q -b TpcT.C+ To fit this shapes root.exe -q *H.root FitTpcT.C; To get pad coordinate correction root.exe -q -b PadsTpcT.C; To get Adc Correction root.exe -q -b AdcTpcT.C c. To make shape plots (see http://www.usatlas.bnl.gov/~fisyak/star/Tpc/TpcRS/ of ~/fisyak/WWW/star/Tpc/TpcRS) In your afs browsable area mkdir -p y2009_A/Shapes cd y2009_A/Shapes ln -s ~fisyak/WWW/star/Tpc/TpcRS/CompH_index.html index.html ln -s ~fisyak/work/TpcRS/daq_2009_pp200N . ln -s "location of your directory" . ln -s ~fisyak/macros/DrawList.C . ln -s ~fisyak/macros/drawFAll.C root.exe */Fit.root > .L DrawList.C+ > .x drawFAll.C