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 and use Herwig (using the Athena framework) to decay the tops and produce the parton shower. We will produce a combined ntuple CBNT and POOL file.
  
==1) Set up basic input files ==
+
<font color=red><b>Main idea:</b></font>
  
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).  
+
The main idea is to call athena with a joboptions file where you specify the location of the event file. In addition it is required to have an additional input file. We will again use a script that will take the BASIC forms for these input files and prodice unique input files for each job and take care of the bookkeeping.
 +
 
 +
==1) Set-up Athena and output directories==
 +
 
 +
We will use Athena to do the decay. Make sure that you have correctly set up the athena environment. To see how to do this please check xxx.
  
 
<font color=red>  
 
<font color=red>  
Line 14: Line 18:
 
</font>
 
</font>
  
<b> Get necessary files required for Athena running</b>
+
 
 +
==2) Get the basic input files ==
 +
 
 +
There are two input files that you need to get.
 +
 +
<b> (a) The 'BASIC' joboption file (and other Athena input files)</b>
  
 
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.  
 
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.  
 +
Again we start at again to your MCatNLO working directory area. 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).
  
<font color = red><b>Note:</b></font> A file called <font color=blue>inparmMcAtNlo.dat</font> is expected in your run
+
<font color=red>  
directory. It should provides the location of the <>.event
+
<pre>
file and some additional input variables related to the
+
cd /MyMCatNLO/ATHENA_BASICS
generated samnple in MCatNLO.
+
</pre>
 +
</font>
  
<b> Get some Athena python-files</b>
+
:<b> Get some Athena python-files</b>
  
 
This should also make sure you have Athena set up correctly.
 
This should also make sure you have Athena set up correctly.
Line 34: Line 45:
 
</font>
 
</font>
  
<b>Get the two basic input files that are job-dependen</b>
+
This is also a good check to see if you really have athena set-up correctly. If not read xxx.
  
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.
+
: <b> Get the basic joboptions file</b>
  
<u>Get the two basic input files that are job-dependent:</u>
+
Get the [http://www.nikhef.nl test]
 
 
The first file is the joboptions file:
 
<font color=red>
 
<pre>
 
cp /afs/cern.ch/user/i/ivo/public/MCatNLO_scripts/joboptions_MyMCatNLO_Step3.py.BASIC .
 
</pre>
 
</font>
 
  
  
Line 61: Line 65:
 
</font>
 
</font>
  
<b>MCatNLO parameter file</b>
 
  
The second file is a file with some McatNLO settings. Also copy this file to the basics directory.
+
<b> (b) Get the inparmMcAtNlo.dat (MCatNLO parameter) file</b>
 +
 
 +
<font color = red><b>Note:</b></font> A file called <font color=blue>inparmMcAtNlo.dat</font> is expected in your run
 +
directory. It contains the location of the <>.event
 +
file and some additional input variables related to the  
 +
generated samnple in MCatNLO.
  
<font color=red>
+
Get the [http://www.nikhef.nl test]
<pre>
 
cp /afs/cern.ch/user/i/ivo/public/MCatNLO_scripts/inparmMcAtNlo.dat.BASIC .
 
</pre>
 
</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.
Line 91: Line 95:
 
::o remove directory Job<job#>
 
::o remove directory Job<job#>
  
: First get the script itself
+
First get the script itself
 
<font color=red>  
 
<font color=red>  
 
<pre>
 
<pre>
cd /project/atlas/users/ivov/MyMCatNLO/
+
cd /MyMCatNLO/
cp /afs/cern.ch/users/i/ivo/public/MCatNLO_scripts/ShipOff_MyMCatNLO_Step3.py .
 
 
</pre>
 
</pre>
 
</font>
 
</font>
  
:In the script you need to define the variables related to the input and output directories:
+
Get the [http://www.nikhef.nl test]
 +
 
 +
In the script you need to define the variables related to the input and output directories:
  
 
<font color=blue size="-1">  
 
<font color=blue size="-1">  
 
<pre>
 
<pre>
input_dir          = "/project/atlas/users/ivov/MyMCatNLO/MyMCatNLO_MATRIXELEMENT/"
+
input_dir          = "/data/atlas/users/ivov/MyMCatNLO/MyMCatNLO_MATRIXELEMENT/"
output_dir          = "/project/atlas/users/ivov/MyMCatNLO/MyMCatNLO_OUTPUT/"
+
output_dir          = "/data/atlas/users/ivov/MyMCatNLO/MyMCatNLO_OUTPUT/"
steering_files_dir  = "/project/atlas/users/ivov/MyMCatNLO/MyMCatNLO_BASICS/"
+
steering_files_dir  = "/data/atlas/users/ivov/MyMCatNLO/MyMCatNLO_BASICS/"
 
</pre>
 
</pre>
 
</font>
 
</font>
  
:There are however also parameters related to the number of events, the number of jobs etc etc.
+
There are however also parameters related to the number of events, the number of jobs etc etc.
  
 
<font color=blue size="-1">  
 
<font color=blue size="-1">  
Line 121: Line 126:
  
  
:<font color=red><b>Important:</b></font>
+
<font color=red><b>Important:</b></font>
: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  
+
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'''
+
==4) Run the script==
  
:Once the number of events and the number of jobs are defined start the run:
+
Once the number of events and the number of jobs are defined start the run:
  
 
<font color=red>  
 
<font color=red>  
 
<pre>
 
<pre>
./ShipOff_MyMCatNLO_Step3.py
+
./ShipOff_MyMCatNLO_Rome_POOLCBNT.py
 
</pre>
 
</pre>
 
</font>  
 
</font>  
  
:Once you get it running for a single job, set the parameter f_Logfile to 1 and produce many files.  
+
Once you get it running for a single job, set the parameter f_Logfile to 1 and produce many files.  
  
 
You are finished.
 
You are finished.
  
 
To POOL files you have produced can then be transformed to AOD after full reconstruction or Atlfast.
 
To POOL files you have produced can then be transformed to AOD after full reconstruction or Atlfast.

Revision as of 17:30, 9 May 2005

On this page we will use the <>.event files that were produced by MCatNLO and use Herwig (using the Athena framework) to decay the tops and produce the parton shower. We will produce a combined ntuple CBNT and POOL file.

Main idea:

The main idea is to call athena with a joboptions file where you specify the location of the event file. In addition it is required to have an additional input file. We will again use a script that will take the BASIC forms for these input files and prodice unique input files for each job and take care of the bookkeeping.

1) Set-up Athena and output directories

We will use Athena to do the decay. Make sure that you have correctly set up the athena environment. To see how to do this please check xxx.

cd /MyMCatNLO
mkdir ATHENA_BASICS
mkdir POOLCBNT
mkdir POOLCBNT/InputAndLogFiles


2) Get the basic input files

There are two input files that you need to get.

(a) The 'BASIC' joboption file (and other Athena input files)

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. Again we start at again to your MCatNLO working directory area. 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/ATHENA_BASICS

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

This is also a good check to see if you really have athena set-up correctly. If not read xxx.

Get the basic joboptions file

Get the test


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"


(b) Get the inparmMcAtNlo.dat (MCatNLO parameter) file

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

Get the test

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 /MyMCatNLO/

Get the test

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

input_dir           = "/data/atlas/users/ivov/MyMCatNLO/MyMCatNLO_MATRIXELEMENT/"
output_dir          = "/data/atlas/users/ivov/MyMCatNLO/MyMCatNLO_OUTPUT/"
steering_files_dir  = "/data/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_Rome_POOLCBNT.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.