CRAB @ FNAL Tutorial using the CRABServer

Introduction

Apart from configuration, the usage of the CRABServer is equal to the usage of any standalone CRAB version. In this tutorial, we list differences in configuration and refer with links to the original tutorial.

Recipe for the tutorial

Setup local Environment and prepare user analysis code

CRAB setup

Compared to the https://twiki.cern.ch/twiki/bin/view/Main/CRABatFNALTutorial#CRAB_setup[default setup]], the server access needs a special CRAB pre-release available at CERN by sourcing:

source /afs/cern.ch/cms/ccs/wm/scripts/Crab/CRAB_2_0_0_pre3/crab.csh

and at FNAL by sourcing

source /uscmst1/prod/grid/CRAB_2_0_0_pre3/crab.csh

Select data to access

CRAB configuration

To use the server you need to specify further options:

  • [CRAB] section: server_mode = 1 and server_name = [server.name]
  • [USER] section: thresholdLevel = [value between 0 and 100] and eMail = [yourMailAddress]

The configuration file should be located at the same location as the CMSSW parameter-set to be used by CRAB. Please change directory to :

cd  Demo/MyTrackAnalyzer/test/
and save the crab configuration file:
crab.cfg
with the following content:
[CRAB]
jobtype                = cmssw
scheduler              = edg
server_mode            = 1
server_name            = crabdev1.cern.ch/flatfiles/cms/

[CMSSW]
datasetpath            = /RelVal150Higgs-ZZ-4Mu/CMSSW_1_5_0-RelVal-1182498841/GEN-SIM-DIGI-RECO
pset                   = higgs.cfg
total_number_of_events = 100
number_of_jobs         = 10
output_file            = histograms.root

[USER]
return_data            = 1
use_central_bossDB     = 0
use_boss_rt            = 0

eMail                  = <usermail> 
thresholdLevel         = 50

[EDG]

se_black_list          = srm.cern.ch

rb                     = CERN 
proxy_server           = myproxy.cern.ch 
virtual_organization   = cms
retry_count            = 0
lcg_catalog_type       = lfc
lfc_host               = lfc-cms-test.cern.ch
lfc_home               = /grid/cms

replacing <usermail> with the mail address of the user.

Run CRAB

E-mail by the server

When your task reaches the thresholdLevel of completed jobs specified in the crab configuration file you will receive an e-mail by the server. Another e-mail will be sent by the server when the task has completely finished.

An example of first e-mail sent when the thresholdLevel is reached:

Da:    crab@crabdev1.cern.ch
A:    mattia.cinquilli@cern.ch
Oggetto:    CRAB Server Notification: Report available for Task [crab_0_070611_234125]
Data:    Mon, 11 Jun 2007 23:52:14 +0200


The task 'crab_0_070611_234125' owned by Mattia Cinquilli and composed by 10 job(s)
Reached the requested threshold level 30%
Actual level: 30%

Status Report:
7 Job(s) in status [Running]
3 Job(s) in status [Done]

Exercises

scheduler = condor_g is not yet available on the server.

CRAB with writing out CMSSW ROOT files

Prepare new crab.cfg

Now the cmssw parameter-set produces an output file (output.root) which the user can include into the output file card in the new cra.cfg and can ask CRAB to copy it in the FNAL Storage Element (dCache). Please modify the crab.cfg as in the following example:

[CRAB]
jobtype                = cmssw
scheduler              = edg
server_mode            = 1
server_name            = crabdev1.cern.ch/flatfiles/cms/

[CMSSW]
datasetpath            = /RelVal150Higgs-ZZ-4Mu/CMSSW_1_5_0-RelVal-1182498841/GEN-SIM-DIGI-RECO
pset                   = higgs2.cfg
total_number_of_events = 100
number_of_jobs         = 10
output_file            = histograms.root,output.root

[USER]
return_data            = 0
copy_data              = 1
storage_element        = cmssrm.fnal.gov
storage_path           = /srm/managerv1?SFN=/resilient/<username>/tutorial
use_central_bossDB     = 0
use_boss_rt            = 0

thresholdLevel         = 50
eMail                  = <usermail>

[EDG]

se_black_list          = srm.cern.ch

rb                     = CERN 
proxy_server           = myproxy.cern.ch 
virtual_organization   = cms
retry_count            = 0
lcg_catalog_type       = lfc
lfc_host               = lfc-cms-test.cern.ch
lfc_home               = /grid/cms

replacing <usermail> with the mail address of the user.

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2007-06-25 - OliverGutsche
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback