Instructions for Taking TEC Data and Analysis Last updated Oct 21/2004 Turning on the TEC ------------------ - Put in beam blocker - Click HV on status bar - Turn on feild wires (name ends with an F) HV settings: TECU_F: 998 V TECD_F: 999 V - In quick sequence turn on low voltage sense "guard" wires, then higher voltage sense wires (names end with S) HV settings: TECU_S1: 1156 V TECU_S2: 301 V TECD_S1: 1155 V TECD_S2: 293 V - Take out beam blocker, check that TEC did not trip NOTE: In case of TEC HV trips, check the HV LEDs downstairs. The tripped ones would be red. Toggle the HV switches for those. Also, every time the TEC HV is turned off, the Field wires trip. You have to go downstairs and toggle the HV switches by hand. Taking Data ----------- - Set the beamline... look for instructions on current run page - Check beamline settings and record ubeam, scalers in elog - Start run by hitting start button - enter information about the type of run in the dialog Analsyis of TEC data -------------------- - as twistonl cd to the directory: cd ~twistonl/TestTEC/run/ - run the script to set environment variables: start_tec - edit or run the script scripts/run_tec.csh, which takes run number, zposition to look at TEC XY projections, and a description as arguments - do a scripts/run_tec.csh to see "usage". - you may want to change the anal line to analyze more or less events to check things before running on a larger sample - edit tec.kcm file if you want to change: * cuts on m1 vs tcap: namelist Classify selectTCAPmin = 20000 selectTCAPmax = 20450 SelectM12min = 0. SelectM12max = 14000 & - the following z positions where beamspot is projected to are all now available. namelist tec TECanalyze = T name tec TECProjectZ1 = -194.0 (near center of TEC) name tec TECProjectZ2 = -184.0 name tec TECProjectZ3 = -174.0 name tec TECProjectZ4 = -164.0 name tec TECProjectZ5 = -154.0 name tec TECProjectZ6 = -144.0 name tec TECProjectZ7 = -134.0 - To choose a z position to look at the xy projections, use one of the above values as the 2nd argument to run_tec.csh. - The run_tec.csh script also makes the histograms mentioned below, and renames the .ps file to something meaningful. - check histograms: * see ~twistonl/TestTEC/run/ReadMe for some instructions and histogram ranges of interest * plots of m1 vs tcap, and beam by running from unix command line, noting that you need the right kind of quotes in the right places. Below is an example for run 17344: rootexe -q -l 'plotspots.C("root/07344.root")' * the output of the above is a file plotspots.ps (which gets moved to another name, containing run number and description). * if you want to look at any other histograms, fire up root (note that uparrow works and has history from previous sessions to save you some typing): rootexe root [0] new TBrowser; root [0] f=new TFile("root/07344.root"); root [0] H61251->Draw(); * To get a projection of a 2d histogram: right click on the histogram and select either ProjectionX or ProjectionY. In the box that comes up, type d in the option, then OK * The new TBrowser will open a GUI for opening files and looking at histograms -> see jim's notes under section III: http://twist.triumf.ca/private/docs/MofiaRootTrees.txt