Difference between revisions of "Generating events (standalone)"

From Atlas Wiki
Jump to navigation Jump to search
 
 
Line 1: Line 1:
 
== MCatNLO Step 2 ==
 
== MCatNLO Step 2 ==
 +
=(standalone)=
  
At this stage the executable has been generated. It will produce ttbar events using CTEQ5M1 as input PDF. Here we explain in short how to obtain the <>.event-files that contain the 4-momenta of incoming and outgoing particles. To produce these events, use the script
+
In stage 1 we have created the executable and the 2 files that contain information on the integration step. The executable takes a input the file input.dat and produces the ascii files <>.events that contain for each event:
  
 +
* the 4-momenta of the incoming partons
 +
* the 4-momenta of the outgoing top quarks and the hard gluon
 +
* the event weight
  
 +
As we defined in step 1 the executable produces ttbar-events using CTEQ5M1 as input PDF. Below we explain how to obtain these <>.event-files. To produce these events, you can use use the script:
 +
 +
<font color="DD0000">
 
ShipOff_MCatNLO_Rome_MatrixElements.py
 
ShipOff_MCatNLO_Rome_MatrixElements.py
 
+
</font>
  
 
In the script there are two directories you should set.  
 
In the script there are two directories you should set.  
  
 +
<font color="3333FF">
 
base_dir                  = "/user/ivov/Rome/BasicInfoCTEQ5M1/"
 
base_dir                  = "/user/ivov/Rome/BasicInfoCTEQ5M1/"
 +
</font>
 +
 +
<font color="3333FF">
 
MatrixElement_dir  = "/data/atlas/users/ivov/scratch/MatrixElement/"
 
MatrixElement_dir  = "/data/atlas/users/ivov/scratch/MatrixElement/"
 
+
</font>
  
 
And two variables to set:
 
And two variables to set:
  
 +
<font color="3333FF">
 
Nevents        =        100
 
Nevents        =        100
Njobs          =             1
+
</font>
 +
 
 +
<font color="3333FF">
 +
Njobs          =         1
 +
</font>
  
  
Line 25: Line 41:
 
This should contain the files:
 
This should contain the files:
  
o TTbar.tgz                  -- The tarred and zipped MCatNLO executable
+
* TTbar.tgz                  -- The tarred and zipped MCatNLO executable
 
+
* RunForestRun.py      -- The script to untar the executable and start it
o RunForestRun.py      -- The script to untar the executable and start it
+
* inputs.BASIC          -- The BASIC input file for the executable
o inputs.BASIC          -- The BASIC input file for the executable
 
  
  

Latest revision as of 20:57, 18 April 2005

MCatNLO Step 2

(standalone)

In stage 1 we have created the executable and the 2 files that contain information on the integration step. The executable takes a input the file input.dat and produces the ascii files <>.events that contain for each event:

  • the 4-momenta of the incoming partons
  • the 4-momenta of the outgoing top quarks and the hard gluon
  • the event weight

As we defined in step 1 the executable produces ttbar-events using CTEQ5M1 as input PDF. Below we explain how to obtain these <>.event-files. To produce these events, you can use use the script:

ShipOff_MCatNLO_Rome_MatrixElements.py

In the script there are two directories you should set.

base_dir = "/user/ivov/Rome/BasicInfoCTEQ5M1/"

MatrixElement_dir = "/data/atlas/users/ivov/scratch/MatrixElement/"

And two variables to set:

Nevents = 100

Njobs = 1


The first directory has a tar file(the executable, CTEQ5M1 pdf and some files with integration constants from MCatNLO), the script to start in and a basic input file (check bullet 1) on what files it should contain and download them from here) The second directory is the output directory where the <>.event-files will be stored. With these values, the script starts 1 job that produces 100 events

1) base_dir: Create a directory with the executable and the default input parameter files: BasicInfoCTEQ5M1 This should contain the files:

  • TTbar.tgz -- The tarred and zipped MCatNLO executable
  • RunForestRun.py -- The script to untar the executable and start it
  • inputs.BASIC -- The BASIC input file for the executable


If you look in the inputs.BASIC file you see that there are three variables that will be set by the run script for each run separately: Name output_file, Random number seed and Number of events to be produced.

2) Start the scripts: ./ShipOff_MCatNLO_Rome_MatrixElements.py

   The script will:

a) create a directory called Job1 in the current directory, b) copy all files there from the base_dir c) modify the BASIC input files to create one for this specific job c) untar the tar ball and run the executable it using the input set defined at c) d) copy the .event files to the MatrixElement_dir e) remove the Job1 directory


For now I have commented out the last step to make sure you can see what is going on. To remove the directory (otherwise you'll have to do it each time you start with run 1), simply uncomment the line

  1. CleanUp(i_job) in the Main program.


3) Look at the output:

In Matrix_Element_Dir/InputAndLogfiles we now have the input-file (input_file_Job1) and logfile (log_file_Job1) for this job. In Matrix_Element_Dir we now have the file TTbarProd_1.events. This last file contains (after a header) the 4-momenta of the incoming partons and the outgoing top-quarks and hard gluon. It also produced an event-weight. Note that in our case only 13% has a gluon with a non-zero 4-momentum.