Generate PROTOS Samples within CMSSW Framework.

There are two main steps to generate/simulate the events using PROTOS.

Step 1: Generate event 4-vectors

First, generate the events using PROTOS. Follow the following steps:

  • Copy the generator (.tgz file) from the following link: protos.tgz.
  • Untar/Unzip the file in your working directory. You will see the following directory: Protos20.
  • Now you need to go to the Scripts sub-directory. And to start generating the events, you need to run the script: create_wtbH.sh after making sure you define the directory where to generate the files, where you have enough disk space. A symlink will be created automatically to that directory.

After you finish all these steps, you will have generated event files in the directory you specify at the beginning.

Step 2: Simulate the PROTOS events within the CMS Framework

Now, to use the generated files within the CMS framework, you need an interface which would be able to read in these events and use them for CMS simulation.

  • Copy the CMSSW interface protosInterface.tgz to your CMSSW working area.
  • Untar/Unzip the file, then do: cd GInterface/ProtosInterface, then compile the code.
  • The pyhton file needed to run the interface is under the directroy test, and it is called: protosinterface_cfg.py. The most important parameters that need to be re-configured are:
    • procName: process name which closely follow the filename of the protos generated events.
    • dirPath: This should point to the location of the generated files, defined in Step 1.
  • Once one file is tried and things look Ok. You can go ahead with the full MC production.

Full Production using Grid :

The full MC production is meant to be carried out after all the necessary tests are done to check the python files being used. The necessary scripts are provided in the following tar file: crab_pyhthon_scripts.tgz. After unzipping this file, you will have a directory called: CrabScripts. In this directory there are different files which will help you create standard CMS-AOD files for the PROTOS event files. And this is done in two steps:

Generate SIM-RAW Event DataFormat.

  • A script called: submit_mc_perFile.sh. It uses the location of the PROTOS generated files as input to process the PROTOS events and produce the raw event information. You need to edit the script so that you provide the directory path DATADIR to the generated PROTOS events. Once you run this script, multiple jobs will be submitted to the grid. Each job will use one PROTOS generated file, i.e. If you generate 99 PROTOS files, then this script will submit 99 jobs. This script uses three files:
    • A master file called: private_mc_files.txt which provides all the necessary information in terms of naming scheme plus other details.
    • The crab configuration file: crab_mcall_generic.cfg which is custom made for generating events at FNAL together with publishing them in the local DB. One can customize the configuration file.
    • The python file gen_wh_simraw_generic.py.

Create SIM-AOD Event DataFormat.

Once the jobs are successful, you need to publish the generated raw datafiles into the local DB, then write the dataset name in the master file private_mc_files.txt.

  • A script called aodsub.sh: this script uses there files:
    • A master file called: private_mc_files.txt which provides the naming scheme plus the RAW dataset to be used for further processing.
    • The crab configuration file: crab_aodall_generic.cfg which is custom made for generating events at FNAL together with publishing them in the local DB. One can customize the configuration file.
    • The python file gen_wh_simaod_generic.py.

Update related to changes in CMSSW_5_*

After being contacted by Reza Goldouzian for a compilation error... I investigated the problem... and found that there are some changes done at the base class. I updated the package and attached it with this twiki (newPROTOS.tgz).

-- ChaoukiB - 15-Jan-2012

Topic attachments
I Attachment History Action Size Date Who Comment
Compressed Zip archivetgz crab_pyhthon_scripts.tgz r1 manage 4.0 K 2012-01-17 - 21:11 UnknownUser Crab configuration files and the python files for full MC production.
Compressed Zip archivetgz newPROTOS.tgz r1 manage 194.6 K 2012-09-15 - 16:51 UnknownUser Updated package
Compressed Zip archivetgz protos.tgz r1 manage 9134.8 K 2012-01-17 - 21:09 UnknownUser PROTOS Generator
Compressed Zip archivetgz protosInterface.tgz r1 manage 12.6 K 2012-01-17 - 21:10 UnknownUser CMSSW PROTOS Interface
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r9 - 2012-09-15 - unknown
 
    • 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-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback