CRAB Tutorial

CRAB Tutorial

Login to lpc


Set up enviroment

source /cvmfs/

Begin tutorial

cd ~

mkdir CRAB3-tutorial

cmsrel CMSSW_7_3_5_patch2

Set CMSSW enviroment

cd ~/CRAB3-tutorial/CMSSW_7_3_5_patch2/src


Set CRAB enviroment

source /cvmfs/

Present proxy(show that you are part of a trusted VO, this case CMS)

voms-proxy-init --voms cms

Running an analysis


First we need to make a configuration file for CSSW. This is a python script that access the file we want and set a some options

import ParameterSet.Config as cms

process = cms.Process('NoSplit')

process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring())

process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(10))

process.options = cms.untracked.PSet(wantSummary = cms.untracked.bool(True))

process.output = cms.OutputModule("PoolOutputModule", outputCommands = cms.untracked.vstring("drop *", "keep recoTracks_*_*_*"), fileName = cms.untracked.string('output.root'),


process.out = cms.EndPath(process.output)

note.gif Note: The input dataset is not yet specified in this file. When running the analysis with CRAB, the input dataset is specified in the CRAB configuration file.

Monte Carlo

-- JosephYadielCorderoMercado - 2018-09-06

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2018-09-06 - JosephYadielCorderoMercado
    • 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