Difference between revisions of "Producing Woutuple from AOD"
Line 3: | Line 3: | ||
===<font color=red><b>This part is not ready yet</b></font>=== | ===<font color=red><b>This part is not ready yet</b></font>=== | ||
− | + | The package that produces an Ntuple from the AOD contains | |
− | The package | + | *a clone of <tt>UserAnalysis/AnalysisSkeleton</tt> and |
− | * a clone of <tt>UserAnalysis/AnalysisSkeleton</tt> | + | *a clone of <tt>AnalysisExamples/ttbar</tt> |
− | * a clone of <tt>AnalysisExamples/ttbar</tt> | ||
* the <tt>simpleTTbar</tt> class that dumps a (nearly) complete ntuple with all AOD information needed for a ttbar analysis on full simulation Monte Carlo | * the <tt>simpleTTbar</tt> class that dumps a (nearly) complete ntuple with all AOD information needed for a ttbar analysis on full simulation Monte Carlo | ||
Line 25: | Line 24: | ||
== Running the package (an Ntuple from an AOD) == | == Running the package (an Ntuple from an AOD) == | ||
− | # Go to the run directory: <tt>cd /TTBarAnalysis/run</tt> | + | The athena job requires as input the AOD files (also registered in the poolfilecatalogue), the names of the ParticleContainers in the AOD and the name of the output Ntuple. |
− | # Link the directory containing | + | To process a single file called <font color=blue>rome.file1.aod.pool.root</font> in the directory /data/atlas/public/Rome/T1/AOD/AOD_Rome/ follow the following steps: |
+ | |||
+ | # If not already done before, go to the <tt>cmt</tt> directory and execute <tt>source setup.csh</tt> | ||
+ | # Go to the run directory: <tt>cd /TTBarAnalysis/run</tt> | ||
+ | # Link the directory containing the AOD to the input directory: | ||
<tt>ln -s /data/atlas/public/Rome/T1/AOD/AOD_Rome/ AOD</tt> | <tt>ln -s /data/atlas/public/Rome/T1/AOD/AOD_Rome/ AOD</tt> | ||
− | # | + | # Insert the files into the pool file catalog: |
− | + | <tt>pool_insertFileToCatalog AOD/rome.file1.aod.pool.root</tt> | |
# In the joboptions file (simpleTTbar_joboptions.py): | # In the joboptions file (simpleTTbar_joboptions.py): | ||
− | + | *Set the Type of simulation (T1 full simulaion =1, look into joboptions file for details) | |
− | + | *List your AOD file as the input AOD-file: | |
− | + | EventSelector.InputCollections=["AOD/rome.file.aod.pool.root"] | |
+ | *Enter the filename of the Ntuple that will be produced | ||
+ | NtupleSvc.Output=["FILE1 DATAFILE='Ntuple_file1.root' TYP='ROOT' OPT='NEW'"] | ||
# Execute: <tt>athena.py simpleTTbar_jobOptions.py</tt> | # Execute: <tt>athena.py simpleTTbar_jobOptions.py</tt> | ||
− | An Ntuple is produced that can be analysed using the Analysis Skeleton. | + | An Ntuple called Ntuple_file1.root is produced that can be analysed using the Analysis Skeleton. |
+ | |||
+ | <b><font color="red">Note:</font></b> All POOL files processed by Athena should be registered in the PoolFile Catalog. Easiest is to register ALL your AODs into the catalog: | ||
+ | <tt>pool_insertFileToCatalog AOD/*/*AOD.pool.root</tt> |
Revision as of 08:39, 20 September 2005
Producing an Ntuple from an AOD
This part is not ready yet
The package that produces an Ntuple from the AOD contains
- a clone of UserAnalysis/AnalysisSkeleton and
- a clone of AnalysisExamples/ttbar
- the simpleTTbar class that dumps a (nearly) complete ntuple with all AOD information needed for a ttbar analysis on full simulation Monte Carlo
Setting up the package
- Go to the directory where you want to install the package and untar the tarball that contains the code:
tar -xzvf TTBarAnalysis.tgz
The package will appear in a subdirectory named TTBarAnalysis of the chosen directory.
- Go to the cmt directory: cd TTBarAnalysis/cmt
- Execute cmt config
- Execute source setup.csh
- Build the library: gmake
Running the package (an Ntuple from an AOD)
The athena job requires as input the AOD files (also registered in the poolfilecatalogue), the names of the ParticleContainers in the AOD and the name of the output Ntuple. To process a single file called rome.file1.aod.pool.root in the directory /data/atlas/public/Rome/T1/AOD/AOD_Rome/ follow the following steps:
- If not already done before, go to the cmt directory and execute source setup.csh
- Go to the run directory: cd /TTBarAnalysis/run
- Link the directory containing the AOD to the input directory:
ln -s /data/atlas/public/Rome/T1/AOD/AOD_Rome/ AOD
- Insert the files into the pool file catalog:
pool_insertFileToCatalog AOD/rome.file1.aod.pool.root
- In the joboptions file (simpleTTbar_joboptions.py):
- Set the Type of simulation (T1 full simulaion =1, look into joboptions file for details)
- List your AOD file as the input AOD-file:
EventSelector.InputCollections=["AOD/rome.file.aod.pool.root"]
- Enter the filename of the Ntuple that will be produced
NtupleSvc.Output=["FILE1 DATAFILE='Ntuple_file1.root' TYP='ROOT' OPT='NEW'"]
- Execute: athena.py simpleTTbar_jobOptions.py
An Ntuple called Ntuple_file1.root is produced that can be analysed using the Analysis Skeleton.
Note: All POOL files processed by Athena should be registered in the PoolFile Catalog. Easiest is to register ALL your AODs into the catalog: pool_insertFileToCatalog AOD/*/*AOD.pool.root