Unpacking: choose a directory ("$yourdir" perhaps on RCAS or your linux computer) cd $yourdir tar -zxf BuildRunFMS_xxxx.tar.gz edit SetFMSenv (set FMSROOT and DatRoot) in $FMSTXT there must be a valid link to or a copy of the current Rundep.root file ===================================================== Jan 20, 2012 This Distribution contains all new code including nonlinear energy correction. The correction assumes a response function. This can be enabled or disalbed by in CallSelect_scriptQT1.C with FitTower::Setwe_EDepCor(true); // or false The function used is in WasExternal.h and is based on cerenkov studies. Corrections are made in Yiqun, in the Yiqun::mom() method. There is a new method in HitCluster that resets cluster energy according to the same function. This method is "non" called by default in Yiqun, but can be done after Yiqun is created. ===================================================== Jan 20 2010 SheetSet.root is a root file that manages an updated spreadsheet of all channels. cd root12fms/CodeSmall SheetFiles: is a directory of files for the spreadsheet. to break the SheetSet.root into a "csv" spreadsheet and root file with energy dependend led file run: root -b -q SaveHvGr.C to go the other way and build a SheetSet.root file from "cvs" and energy dependent graphs. root -b -q Readcvs.C to update the SheetSet to account for a new iteration (from Thomas??). As an example, consider iteration15. cp iteration15.tgz SheetFiles/txt0/ tar -zxf iteration15.tgz ./ rm iteration ln -s iteration15 iteration root -b -q findthem.C cd root12fms/CodeSmal root -b -q InSet.C ======================================================== Jan 18 2012 To analyze a data set 1) data sets defined in root12fms/MkRunList 2) to analyze set setXXXX, use ./MkRun setXXXX By default this will run hundreds of condor jobs. This version includes code to make FMS.html file. To make FMS.html 1) Unpack version in your directory, I will call it $yourdir 2) build HTML a spreadsheet "SheetSet.root" should be found in root12fms/CodeSmall/FMSplots/SheetSet.root edit MkHtml to set run number cd root12fms/CodeSmall/Tradc ./MkHtml 3) Full analysis of a runset (add pi0 mass plots) is runset defined in root12fms/MkRunList ? cd root12fms/CodeSmall/Tradc ./MkR when done, move FMS.tgz to your computer and unpack it in a new directory. View FMS.html with browser (Chrome, FireFox) ===================================================== Aug 2011 This very compact version of the PSU FMS software contains changes that enable the spin informaton to be filled correctly. Until now the spin information has been filled with temporary unpolarized patterns for new run 11 entries. The change in software allows us to read "cdev" spin pattern files for Run 11 run numbers, in the format used on the run history web page. "http://online.star.bnl.gov/cdev/fillHistory/" Those files have been copied to the directory "./root12fms/fmstxt/spinpat/" In particular, 1) The run/fill list file, "./root12fms/spinpat/fmstxt/fill.txt", has been replaced to include the run 11 "good runs" as defined by Stephen. 2) The "./root12fms/fmstxt/spinpat/" directory is filled with patterns of the form used at "http://online.star.bnl.gov/cdev/fillHistory/" 3) The run dependent data that is accessed at "./root12fms/fmstxt/RunDep.root" is now linked to the psu disk at rcas. This will only work if you are running on the BNL computers. To run on other systems you will need to replace the link with the rcas file "/direct/star+institutions+psu/heppel/RunDep.root". 4) You can test the new spin code/information by running >cd root12fms >root -b -q RunFilltst.C 5) The path's used in SetFMSEnv or MkRun (tcsh scripts) are set for my laptop. You will need to change them to run the analysis. Also the current flags do analysis with four processes running on the local processor. (good for 4 thread machines). If you are using condor, set the flags in MkRun to do so. 6) The CodeSmall directory is not included in this distribution. It is important for calibration but has not needed to run the analysis code. 7) Don't forget to make the library with >cd ./root12fms/FpdRoot >make =============================== June 15 2011 Update includes changes in Analtools (Readq1 variables defined) Spin analysis scripts in plotjob.tar.gz Making OFile data sets -see MkRun and MkLed Making OFiles into Output files -see OuDo In plotjob.tar.gz - plotjob to run spin sorting jobs (saved in fout.root) - CommonSpin.C reads the Outputfiles sets - Outputfile sets selected with pathmask - cuts selected with cutnumber variable ===================================== Aug 3 2011 RunDep.root on psu disk (pointed to by root12fms/fmstxt/RunDep.root) is now up to date with all entries from Day 79 to day 98. Three classes are now used to make LED dependent corrections. CellTDep:: for storing the led variation in each run/cell RunDepCor:: for managing all CellTDep instances for a particular run to see a graph of LED ADC vs EventNumber for run 12095006 nstb=3 row=2 col=5 you can look in RunDep.root. cd root12fms root fmstxt/RunDep.root > .x start.C > RDC12095006->Cdep(3,2,5)->GetGraph()->Draw("A*") RunDepMgr:: a class to manage all RunDepCor entries and maintains a state for the current time of data collection when reading through the data. For each event a gain correction factor is calculated based on the ratio of the current led adc to that of the base run. In particular, it maintains a "Base" Run and a "Rdep" current run at any time. to see the led Run dependent mass for a channel cd root12fms root fmstxt/RunDep.root TGraphErrors* gr=(TGraphErrors*) (Mgr->mvsday->FindObject("mday_r2_c5_2")); gr->Draw("A*") The Mgr->ledFactor is an array of factors that for a particular day multiply the ordinary led gain correction factors. CallSelect_scriptQT1.C calls AnalTools methods that know about day dependent corrections using RunDepMgr. The current RunDep.root has Mgr which only has day dependent corrections for small cells. Aug 26-2011: Update to include ComonSpin.C Spin*.C and plotjob that created plots in fout15.root for Davis Presentation.