#!/usr/bin/env python # # This file sets up and runs a SAM project. # import os, sys, string, time, signal from re import * from globals import * import run_project ############################################################################ # # Set the following variables to appropriate values # Consult database for valid choices sam_station = "central-analysis" # Consult Database for valid choices project_definition = "read_ttbar_p08.01.00_root-tuples" # A particular snapshot version, last or new snapshot_version = 'new' # Consult database for valid choices appname = "test" version = "1" group = "dzero" # The maximum number of files to get from sam max_file_amt = 1 # for additional debug info use "--verbose" ##verbosity = "--verbose" verbosity = "" # Give up on all exceptions give_up = 1 def file_ready(filename): # Replace this python subroutine with whatever you want to do # to process the file that was retrieved. # Your program will only be called in the event of # a successful delivery. # print 'Transferring file: ' print filename os.system('ls -l %s'%filename) os.system('cp %s /scratch10/gris/. '%filename) #time.sleep(10) return