Various Instructions

Running BooNE batch jobs

Submit a simple analysis job to be run in the current directory
  1. boone-jobsub -J . -M AnalysisFramework -srcp myjob.rcp
  2. Answer yes when asked if you need access to AFS.

Making PostScript Output with PAW

for/fil 66 file_name.ps
meta 66 -111
 --- make plots ---
for/cl 66

Making Normal Ntuples

C Initialization
      Parameter ( Memory = 1000000 )
      Common / PAWC / Hmemor( Memory )
      common/quest/iquest(100)
      character*255 filename
      parameter (nvar1=5,nvar2=6)
      character*8 var_names_1(nvar1),var_names_2(nvar1)
      dimension data_1(nvar1),data_2(nvar1)
      data var_names_1 /'var1','var2','var3','var4','var5'/
      data var_names_2 /'var1','var2','var3','var4','var5','var6'/
	 ---
      call hlimit(Memory)
      lrecl=1024
      call getenv('NTOUT',filename)
      call hropen(31,'NT_ID',filename,'N',lrecl,istat)
      call hbookn(1,'nt1_name',nvar1,'NT_ID',1000,var_names_1)
      call hbookn(2,'nt2_name',nvar2,'NT_ID',1000,var_names_2)
	 ---
C Filling during event loop
      call hfn(1,data_1)
      call hfn(2,data_2)
	 ---
C Finalizing
      call hrout(1,icycle,' ')
      call hrout(2,icycle,' ')
      call hrend('NT_ID')

Merging Ntuples

This is easily done from PAW ...
> nt/hmerge out.nt in_a.nt in_b.nt in_c.nt

Writing Controls Software

  1. Log in to CNS55
  2. CREATE/DIR [.project] Create a project area
    SET DEF [.project]
  3. MECCA/NEWPA (MECCA/NEWSA) Reserve a PA (SA) number
  4. MECCA/COPY PAxxxx Copy an appropriate template
  5. Edit the template C program. If you change the file names you will also need to edit BUILD_Z_PAGE.COM and DESCRIP.MMS
  6. @BUILD_Z_PAGE Create a test version on the Z page
  7. MECCA PAxxxx (SAxxxx) Build or rebuild the tested version
  8. MECCA/IPE To assign a page and number.

Using the Debugger on Controls Software

  1. Determine which machine your console is running on. This can be done by looking at the Utilities window, which has a title of the form CNSxXX. The console is running on CNSXX. x is the instance number.
  2. Login to that machine. RLogin CNSXX
  3. Type debug_slot
  4. Execute the program from the z-page.

Putting Files on the Booster Web Page

Moving files from the Z: disk on the PC

  1. Click Start->Programs->Accessories->Command Prompt
  2. Find the source directory
    cd Projects\Booster\BLMs
  3. Start FTP session
    ftp chablis
  4. Log in using cryptocard
  5. Go to target directory cd /usr/local/www/data/proton/booster/blms
  6. Copy files
    ascii
    mput *.html
    binary
    mput *.gif

From fnalu the process is the same except for steps 1 and 2.