Difference between revisions of "MCatNLO Step 3"

From Atlas Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
On this page we will use the <>.event files that were produced by MCatNLO (see step 2) and use Herwig (in Athena) to decay the tops and produce the parton shower to arrive at a physiccal result. Finally we will produce a combined ntuple (CBNT) and POOL file as was done for Rome.
 
On this page we will use the <>.event files that were produced by MCatNLO (see step 2) and use Herwig (in Athena) to decay the tops and produce the parton shower to arrive at a physiccal result. Finally we will produce a combined ntuple (CBNT) and POOL file as was done for Rome.
  
==1) Get organised==
+
==1) Set up basic input files ==
  
 
Again we start at again to your MCatNLO working directory area. Then create two new directories where we'll store the basic input files (basic joboptions file and other athena related files) and the output files (the combined ntuple for the generator information and POOL files).  
 
Again we start at again to your MCatNLO working directory area. Then create two new directories where we'll store the basic input files (basic joboptions file and other athena related files) and the output files (the combined ntuple for the generator information and POOL files).  
Line 8: Line 8:
 
<pre>
 
<pre>
 
cd /MyMCatNLO
 
cd /MyMCatNLO
mkdir MyMCatNLO_BASICS
+
mkdir ATHENA_BASICS
mkdir MyMCatNLO_OUTPUT
+
mkdir POOLCBNT
mkdir MyMCatNLO_OUTPUT/InputAndLogFiles
+
mkdir POOLCBNT/InputAndLogFiles
 
</pre>
 
</pre>
 
</font>
 
</font>
  
:'''2) Get necessary files required for Athena running'''
+
<b> Get necessary files required for Athena running</b>
  
:Since we have used MCatNLO to produce the ttbar momenta, we will have to signal to Herwig that it only has to decay the top quarks and must take the top-momenta from your external <>.event-file. When using Athena, this is done using a joboptions file.  
+
Since we have used MCatNLO to produce the <math>t</math> and <math>\bar{t}</math> momenta, we have to signal to Herwig that it must these from your external <>.event-file. In Athena, this is done inside a joboptions file.  
  
:<font color = red>Note:</font> In addition a file that is called <font color=blue>inparmMcAtNlo.dat</font> is expected in your run directory that provides the location of the <>.event file and some additional input variables related to the generated samnple in MCatNLO.
+
<font color = red><b>Note:</b></font> A file called <font color=blue>inparmMcAtNlo.dat</font> is expected in your run  
 +
directory. It should provides the location of the <>.event  
 +
file and some additional input variables related to the  
 +
generated samnple in MCatNLO.
  
: (A)<u> First get some Athena python-files in your run directory:</u>
+
<b> Get some Athena python-files</b>
 +
 
 +
This should also make sure you have Athena set up correctly.
 
<font color=red>  
 
<font color=red>  
 
<pre>
 
<pre>
cd MyMCatNLO_BASICS
+
cd ATHENA_BASICS
 
get_files PDGTABLE.MeV
 
get_files PDGTABLE.MeV
 
get_files PartPropSvc.py
 
get_files PartPropSvc.py
Line 29: Line 34:
 
</font>
 
</font>
  
: (B)<u> Get the two basic input files that are job-dependent:</u>
+
<b>Get the two basic input files that are job-dependen</b>
  
:For each job, the script (presented in step 4) will take the two following basic-files and add the job-dependent quantities to produce a unique joboptions file per athena job.
+
This file is For each job, the script (presented in step 4) will take the two following basic-files and add the job-dependent quantities to produce a unique joboptions file per athena job.
  
: (B1) <u>Get the two basic input files that are job-dependent:</u>
+
<u>Get the two basic input files that are job-dependent:</u>
  
:The first file is the joboptions file:
+
The first file is the joboptions file:
 
<font color=red>  
 
<font color=red>  
 
<pre>
 
<pre>
Line 43: Line 48:
  
  
:The lines that will be changed by the script are related to the number of events, the random number seeds for the generators and the output files.
+
The lines that will be changed by the script are related to the number of events, the random number seeds for the generators and the output files.
  
 
<font color=blue size="-1">  
 
<font color=blue size="-1">  
Line 56: Line 61:
 
</font>
 
</font>
  
: (B2) <u>MCatNLO parameter file</u>
+
<b>MCatNLO parameter file</b>
  
:The second file is a file with some McatNLO settings. Also copy this file to the basics directory.
+
The second file is a file with some McatNLO settings. Also copy this file to the basics directory.
  
 
<font color=red>  
 
<font color=red>  
Line 66: Line 71:
 
</font>
 
</font>
  
:The lines that will be changed by the script are related to the number of events, the random number seeds for the generators and the output files.
+
The lines that will be changed by the script are related to the number of events, the random number seeds for the generators and the output files.
  
 
<font color=blue size="-1">  
 
<font color=blue size="-1">  
Line 76: Line 81:
  
  
:'''3) Get the script and taylor it to your needs'''
+
==3) Get the script and taylor it to your needs==
  
 
The last step is to get the script and start the jobs. For each job it will:
 
The last step is to get the script and start the jobs. For each job it will:

Revision as of 15:35, 9 May 2005

On this page we will use the <>.event files that were produced by MCatNLO (see step 2) and use Herwig (in Athena) to decay the tops and produce the parton shower to arrive at a physiccal result. Finally we will produce a combined ntuple (CBNT) and POOL file as was done for Rome.

1) Set up basic input files

Again we start at again to your MCatNLO working directory area. Then create two new directories where we'll store the basic input files (basic joboptions file and other athena related files) and the output files (the combined ntuple for the generator information and POOL files).

cd /MyMCatNLO
mkdir ATHENA_BASICS
mkdir POOLCBNT
mkdir POOLCBNT/InputAndLogFiles

Get necessary files required for Athena running

Since we have used MCatNLO to produce the and momenta, we have to signal to Herwig that it must these from your external <>.event-file. In Athena, this is done inside a joboptions file.

Note: A file called inparmMcAtNlo.dat is expected in your run directory. It should provides the location of the <>.event file and some additional input variables related to the generated samnple in MCatNLO.

Get some Athena python-files

This should also make sure you have Athena set up correctly.

cd ATHENA_BASICS
get_files PDGTABLE.MeV
get_files PartPropSvc.py

Get the two basic input files that are job-dependen

This file is For each job, the script (presented in step 4) will take the two following basic-files and add the job-dependent quantities to produce a unique joboptions file per athena job.

Get the two basic input files that are job-dependent:

The first file is the joboptions file:

cp /afs/cern.ch/user/i/ivo/public/MCatNLO_scripts/joboptions_MyMCatNLO_Step3.py.BASIC .


The lines that will be changed by the script are related to the number of events, the random number seeds for the generators and the output files.

theApp.EvtMax = XNEVENTSX
AtRndmGenSvc.Seeds = ["JIMMY  XRNDJIMMY0X XRNDJIMMY1X", "JIMMY_INIT  XRNDJIMMY2X XRNDJIMMY3X",
                      "TAUOLA XRNDTAUOLA0X XRNDTAUOLA1X", "TAUOLA_INIT XRNDTAUOLA2X XRNDTAUOLA3X", 
                      "PHOTOS XRNDPHOTOS0X XRNDPHOTOS1X", "PHOTOS_INIT XRNDPHOTOS2X XRNDPHOTOS3X"]
NTupleSvc.Output     = [ "FILE1 DATAFILE='./XOutputDirCBNTX/MCatNLO.CBNT.JobXJOBNUMBERX.root' OPT='NEW'" ]
Stream1.OutputFile = "./XOutputDirPOOLX/MCatNLO.POOL.JobXJOBNUMBERX.root"

MCatNLO parameter file

The second file is a file with some McatNLO settings. Also copy this file to the basics directory.

cp /afs/cern.ch/user/i/ivo/public/MCatNLO_scripts/inparmMcAtNlo.dat.BASIC .

The lines that will be changed by the script are related to the number of events, the random number seeds for the generators and the output files.

 './XINPUTDIRX/XINPUTNAMEX'     ! event file
  XNEVENTSX                     ! number of events


3) Get the script and taylor it to your needs

The last step is to get the script and start the jobs. For each job it will:

o create a directory called Job<job#>
o create two unique input files
o copy all otehr nexessary files here and start the job
o copy output files (CBNT,POOL and Logfiles) to an output directory
o remove directory Job<job#>
First get the script itself

cd /project/atlas/users/ivov/MyMCatNLO/
cp /afs/cern.ch/users/i/ivo/public/MCatNLO_scripts/ShipOff_MyMCatNLO_Step3.py .

In the script you need to define the variables related to the input and output directories:

input_dir           = "/project/atlas/users/ivov/MyMCatNLO/MyMCatNLO_MATRIXELEMENT/"
output_dir          = "/project/atlas/users/ivov/MyMCatNLO/MyMCatNLO_OUTPUT/"
steering_files_dir  = "/project/atlas/users/ivov/MyMCatNLO/MyMCatNLO_BASICS/"

There are however also parameters related to the number of events, the number of jobs etc etc.

Nevents             =   12500
Nevents_joboptions  =       1
Njobs               =       1
f_LogFile           =       0


Important:
The variable called Nevents is linked to the number of events that are in the <>.events files. Make sure therefore that this number is the same as in the header of the <>.events file. The variable Nevents_joboptions controls the number of events that are produced in the
4)Run the script
Once the number of events and the number of jobs are defined start the run:

./ShipOff_MyMCatNLO_Step3.py

Once you get it running for a single job, set the parameter f_Logfile to 1 and produce many files.

You are finished.

To POOL files you have produced can then be transformed to AOD after full reconstruction or Atlfast.