Presentation is loading. Please wait.

Presentation is loading. Please wait.

Building an Athena Job with GANGA a step-by-step GUI approach Tutorial Material by C L Tan.

Similar presentations


Presentation on theme: "Building an Athena Job with GANGA a step-by-step GUI approach Tutorial Material by C L Tan."— Presentation transcript:

1 Building an Athena Job with GANGA a step-by-step GUI approach Tutorial Material by C L Tan

2 j = Job() j.name='Athena_DQ2_IO' j.application=Athena() j.application.prepare() j.application.option_file= '$HOME/athena/testarea/11.0.5/InstallArea/jobOptions/UserAnalysis/AnalysisSkeleton_jobOptions. py' j.inputdata=DQ2Dataset() j.inputdata.type='DQ2_LOCAL' j.inputdata.dataset="csc11.005300.PythiaH130zz4l.recon.AOD.v11004103" j.inputdata.names=[ 'csc11.005300.PythiaH130zz4l.recon.AOD.v11004103._00025.pool.root.5', 'csc11.005300.PythiaH130zz4l.recon.AOD.v11004103._00028.pool.root.2', 'csc11.005300.PythiaH130zz4l.recon.AOD.v11004103._00017.pool.root.2' ] j.outputdata=DQ2OutputDataset() j.outputdata.outputdata=['AnalysisSkeleton.aan.root'] j.backend=LCG() j.backend.CE='cclcgceli02.in2p3.fr:2119/jobmanager-bqs-short' j.submit() j = Job() j.name='Athena_DQ2_IO' j.application=Athena() j.application.prepare() j.application.option_file= '$HOME/athena/testarea/11.0.5/InstallArea/jobOptions/UserAnalysis/AnalysisSkeleton_jobOptions. py' j.inputdata=DQ2Dataset() j.inputdata.type='DQ2_LOCAL' j.inputdata.dataset="csc11.005300.PythiaH130zz4l.recon.AOD.v11004103" j.inputdata.names=[ 'csc11.005300.PythiaH130zz4l.recon.AOD.v11004103._00025.pool.root.5', 'csc11.005300.PythiaH130zz4l.recon.AOD.v11004103._00028.pool.root.2', 'csc11.005300.PythiaH130zz4l.recon.AOD.v11004103._00017.pool.root.2' ] j.outputdata=DQ2OutputDataset() j.outputdata.outputdata=['AnalysisSkeleton.aan.root'] j.backend=LCG() j.backend.CE='cclcgceli02.in2p3.fr:2119/jobmanager-bqs-short' j.submit() Athena Job Building (CLI-style) We have seen

3 Working with the Ganga GUI Now to try

4 GUI main window To start the GANGA GUI, simply type: $ /afs/cern.ch/sw/ganga/slc3_gcc323/4.2.4/ganga/bin/gang a --gui

5 Job Builder window Create a new job by clicking on the New button. j = Job()

6 Choose application In the Job Builder window, select the application(Executable) job attribute from the job attributes list and left-click on the corresponding drop-drop menu. Choose Athena. j.application = Athena()

7 Provide job options file Provide the option file required by the Athena job. Use the Browse button if necessary. j.application.option_file = ‘$HOME/athena/testarea/12.0.31/PhysicsAnalysis/Analy sisCommon/UserAnalysis/run/AnalysisSkeleton_topOpti ons.py’

8 Choose backend Select the backend(Local) job attribute from the job attributes list and left-click on the corresponding drop-drop menu. Choose LCG. j.backend = LCG()

9 Provide CE location Provide the location of the CE. j.backend.CE = ‘cclcgceli02.in2p3.fr:2119/jobmanager- bqs-short’

10 Choose input data type Select the inputdata(None) job attribute from the job attributes list and left-click on the corresponding drop-drop menu. Choose DQ2Dataset. j.inputdata = DQ2Dataset()

11 Provide input dataset Provide the name of the input dataset required by the job. j.inputdata.dataset = ‘csc11.005300.PythiaH130zz4l.recon.AOD.v11004103’

12 Provide file names in dataset (optional) Use the Add button to create additional name entries. j.inputdata.names = [ 'csc11.005300.PythiaH130zz4l.recon.AOD.v11004103._00025.pool.ro ot.5', 'csc11.005300.PythiaH130zz4l.recon.AOD.v11004103._00028.pool.ro ot.2', 'csc11.005300.PythiaH130zz4l.recon.AOD.v11004103._00017.pool.ro ot.2' ]

13 Define input dataset type Define the type of the input data. j.inputdata.type = ‘DQ2_LOCAL’

14 Choose output dataset definition Select the outputdata(None) job attribute from the job attributes list and left-click on the corresponding drop-drop menu. Choose DQ2OutputDataset. j.outputdata = DQ2OutputDataset()

15 Define output data filename Use the Add button to create additional name entries. j.outputdata.outputdata = [‘AnalysisSkeleton.aan.root’]

16 Define retrieval destination of output data. Define the location of the output data upon retrieval. j.outputdata.local_location = ‘$HOME/myGangaOutputdataDir’

17 Prepare the job Left-click and hold on to the Extras button to reveal pop-up menus. Select Job.application>prepare. j.application.prepare()

18 Submit job... Retrieve Job Output Click on the Submit button. j.submit() When job has completed, to retrieve job output, click on the Retrieve Output button.

19 Retrieve Job Output (cont.) The output retrieval window: 1) view/edit output files with the Open button. 2) retrieve selected file to an alternative location with Browse button (to select destination directory) followed by the Retrieve button.

20 Retrieve Output Data Select appropriate job tab in Job Builder, left-click and hold on to the Extras button. Select Job.outputdata>retrieve. Data will be retrieved to location defined in job.outputdata.local_location. jobs[10].subjobs[0].outputdata.retrieve()

21 Ignore argument list request The j.outputdata.retrieve() method takes two arguments. These are not in use at the moment. Click Ok.

22 Done! End of Athena job building exercise


Download ppt "Building an Athena Job with GANGA a step-by-step GUI approach Tutorial Material by C L Tan."

Similar presentations


Ads by Google