Skip to content
pequegnot edited this page Jan 24, 2014 · 13 revisions

Mtt Extractors How-to

Once Mtt Extractor has been setup, following the instructions here, you can start using the tool as indicated below.

src> cd Extractors/MttExtractorAnalysis/test

Running on MC

Edit the createAndRunMCCrab.py file and add the datasets that you want to run on and the working directory name :

datasets = [
    ["/myDatasetPath1", "myWorkingDirName1"],
    ["/myDatasetPath2", "myWorkingDirName2"]
]

Check the globalTag in Extractor_MTT_MC_semimu.py and Extractor_MTT_MC_semie.py files.

Create your crab configuration files .cfg and submit your jobs by running the following command:

test> ./createAndRunMCCrab.py --run

This creates automatically a crab config file for each channel under study, i. e. following both Extractor_MTT_MC_semimu.py and Extractor_MTT_MC_semie.py python configurations files.

Running on data

Edit the createAndRunMCCrab.py file and add the datasets that you want to run on, the working directory name and the globalTag :

datasets = [
    ["/myDatasetPath1", "myWorkingDirName1", "myGlobalTag1"],
    ["/myDatasetPath2", "myWorkingDirName2", "myGlobalTag2"]
]

Create your crab configuration files .cfg and submit your jobs by running the following command:

test> ./createAndRunDataCrab.py --run
Clone this wiki locally