6.4 The Standard Reconstruction procedure
Complete:
Detailed Review status
Goals of this page
This page explains how to run the standard reconstruction procedure after having generated and simulated
the events as explained in the previous chapters.
Note that if you just want to access the
already available samples, there is no need to run the reconstruction process again. It will only be necessary if you generate a sample of your own, or if you want to make modifications to the standard reconstruction.
Instructions
To run the standard CMS reconstruction, it's best to use the
cmsDriver.py tool to generate a configuration file, which you can modify at will afterwards. You can use
dasgoclient to find suitable samples to run upon.
Example:
dasgoclient --query='dataset=/DY*/*10*/*GEN-SIM-DIGI-RAW*' --format=plain
Back/Forward Compatibility
Raw data is compatible with a large range of CMSSW versions. Therefore, in principle, you don't have to know what CMSSW version was used during data-taking to perform reconstruction from raw data. However, reconstruction from data is not supported in every CMSSW release.
Forward compatibility is not necessarily promised.
Global Tag
One important input to reconstruction is the
global tag, which contains calibration, alignment, constants needed for reconstruction. The global tags are softly tied to the release version (there might be compatibility problems due to the change of formats of the database content), so, one has to know what is the global tag certified for data reconstruction: check on
SWGuideFrontierConditions.
cmsDriver Command
Simulation
cmsDriver.py reco -s RAW2DIGI,RECO --filein anInputRawFile.root --fileout anOutputFileName.root --globalTag GT::All
Data
Collision data
cmsDriver.py reco -s RAW2DIGI,RECO --filein anInputRawFile.root --fileout anOutputFileName.root --globalTag GT::All
Cosmic data
cmsDriver.py reco -s RAW2DIGI,RECO --data --scenario cosmics --filein anInputRawFile.root --fileout anOutputFileName.root --globalTag GT::All
The generated configuration file can then be tailored for other purposes or for a crab job.
More... Close
Contents
Introduction
The algorithms that make up the CMS event reconstruction software build physics objects (e.g.,
muons, electrons, jets) from the raw data recorded by the detector. All events collected by the CMS
trigger system are reconstructed by the CMS prompt reconstruction system soon after being collected.
Description of the packages and configuration files
Reconstructing events to the level of candidates
There is a dedicated setup that provides a configuration file that contains standard definitions of the common and checked reconstructed objects, as supplied by the authors and PRS groups. Obviously, there are many different settings in this file, so it is very advisable to take some time to study the settings for the objects you intend to use. Again, this file can be included like this:
include "Configuration/StandardSequences/data/Reconstruction.cff"
The output file
The Reconstruction.cff
does all reconstruction, but most users probably only want high-level reconstruction objects. This can be done by including
include "Configuration/EventContent/data/EventContent.cff"
Finally, to produce the output you need to tell CMSSW to write everything to a file. This is done in the PoolOutput
module. This is also where you control what is written to file, it is very advisable to include only the information you need, this can be done with the drop
and keep
commands, see the documentation here.
Run the example
First, set up the CMS environment. The following works on lxplus.cern.ch
, but should work on any computer that has CVS and the CMS software installed.
cmsrel CMSSW_10_2_Y
cd CMSSW_10_2_Y/src
cmsenv
Now check out the page in Generation in this document to see the previous steps needed to be completed before the step RECO.
cmsDriver.py step2 --filein file:BPH-RunIIAutumn18DR_step1.root --fileout file:BPH-RunIIAutumn18DR_step2.root --mc --eventcontent AODSIM --runUnscheduled --datatier AODSIM --conditions 102X_upgrade2018_realistic_v15 --step RAW2DIGI,L1Reco,RECO,RECOSIM,EI --nThreads 8 --geometry DB:Extended --era Run2_2018 --python_filename BPH-RunIIAutumn18DR_2_cfg.py --no_exec --customise Configuration/DataProcessing/Utils.addMonitoring -n 100
Conclusion and Outlook
This page explains how to run a very simple analysis, all the way from event generation to the analysis of reconstructed objects
Review status
Responsible:
JeanRochVlimant
Last reviewed by:
AndreaRizzi - 27 Feb 2008