Difference between revisions of "GoodRunsList in AMA"

From Atlas Wiki
Jump to navigation Jump to search
Line 2: Line 2:
 
This page explains how to use the GoodRunsLists within AMAAthena. GoodRunsLists make it possible to select specific datasets AND lumiblocks satisfying detector and data quality constraints. A more general Atlas tutorial can be found here: [https://twiki.cern.ch/twiki/bin/viewauth/Atlas/GoodRunsListsTutorial GRL Tutorial].   
 
This page explains how to use the GoodRunsLists within AMAAthena. GoodRunsLists make it possible to select specific datasets AND lumiblocks satisfying detector and data quality constraints. A more general Atlas tutorial can be found here: [https://twiki.cern.ch/twiki/bin/viewauth/Atlas/GoodRunsListsTutorial GRL Tutorial].   
  
== Do it ==
+
== Prepare ==
There are a few steps to make, in order to get it all working.
+
There are a few steps to make, in order to get it all working.  
  
==== 1: Get an XML file ====  
+
=== 1: Get an XML file ===  
 
First of all, you need an XML file with the datasets and lumiblocks you want to run over. To make one yourself, go to [http://atlas-runquery.cern.ch/ Atlas Run Query] and enter a query containing all DQ flags you need/like. This page has lots of examples and help functions to assist in forming a query.
 
First of all, you need an XML file with the datasets and lumiblocks you want to run over. To make one yourself, go to [http://atlas-runquery.cern.ch/ Atlas Run Query] and enter a query containing all DQ flags you need/like. This page has lots of examples and help functions to assist in forming a query.
  
 
Press Show Runs, wait for it... and inspect the results. On the bottom of the page you can choose to view in 'pretty mode', 'python dictionary', 'Root tree', but we need to dump it as an XML file. Choose this one. Now you have your XML file, check if it looks ok. (Obviously, it is also possible to take the XML file supplied by your group, Atlas or anyone else you assume knows it all.)
 
Press Show Runs, wait for it... and inspect the results. On the bottom of the page you can choose to view in 'pretty mode', 'python dictionary', 'Root tree', but we need to dump it as an XML file. Choose this one. Now you have your XML file, check if it looks ok. (Obviously, it is also possible to take the XML file supplied by your group, Atlas or anyone else you assume knows it all.)
  
==== 2: Edit the AMAAthena jo ====
+
=== 2: Edit the AMAAthena jo ===
The idea is now, to let AMAAthena only run over events that are in the selected lumiblocks and datasets, and skip the remainder. This is especially nice when you are running over millions of events. Make sure you have an updated version of AMA, by doing something like
+
The idea is now, to let AMAAthena only run over events that are in the selected lumiblocks and datasets, and skip the remainder. This is especially nice when you are running over millions of events. Make sure you have an updated version of AMA, by doing for exmaple 'svn update'. Compile if necessary, but check explicitly that in AMAAthena/share there is a file called AMAAthena_jobOptions_new_GRL.py.
<pre> svn update </pre>
 
Check explicitly that in AMAAthena/share there is a file called AMAAthena_jobOptions_new_GRL.py.
 
  
 
Open this file and edit two things:  
 
Open this file and edit two things:  
- the name of the XML file in ...
+
* the name of the XML file in ...
- the name without .xml but in ...
+
* the name without .xml but in ...
  
==== 3: Calculate the luminosity ====
+
==== Run locally... ====
 +
<pre> AMAAthenaDriver data 100 ConfigFile=data.conf TRIG,DATA,GRL
 +
</pre>
 +
(GRL calls the joboptions you just edited.)
 +
 
 +
=== 3: Calculate the luminosity ===

Revision as of 23:43, 18 February 2010

Introduction

This page explains how to use the GoodRunsLists within AMAAthena. GoodRunsLists make it possible to select specific datasets AND lumiblocks satisfying detector and data quality constraints. A more general Atlas tutorial can be found here: GRL Tutorial.

Prepare

There are a few steps to make, in order to get it all working.

1: Get an XML file

First of all, you need an XML file with the datasets and lumiblocks you want to run over. To make one yourself, go to Atlas Run Query and enter a query containing all DQ flags you need/like. This page has lots of examples and help functions to assist in forming a query.

Press Show Runs, wait for it... and inspect the results. On the bottom of the page you can choose to view in 'pretty mode', 'python dictionary', 'Root tree', but we need to dump it as an XML file. Choose this one. Now you have your XML file, check if it looks ok. (Obviously, it is also possible to take the XML file supplied by your group, Atlas or anyone else you assume knows it all.)

2: Edit the AMAAthena jo

The idea is now, to let AMAAthena only run over events that are in the selected lumiblocks and datasets, and skip the remainder. This is especially nice when you are running over millions of events. Make sure you have an updated version of AMA, by doing for exmaple 'svn update'. Compile if necessary, but check explicitly that in AMAAthena/share there is a file called AMAAthena_jobOptions_new_GRL.py.

Open this file and edit two things:

  • the name of the XML file in ...
  • the name without .xml but in ...

Run locally...

 AMAAthenaDriver data 100 ConfigFile=data.conf TRIG,DATA,GRL

(GRL calls the joboptions you just edited.)

3: Calculate the luminosity