RECO (Realizando reconstrucción de datos)

Para realizar reconstrucción de datos se requiere como archivo de entrada un archivo root que contenga RAW (Una simulación cruda)

De acuerdo a la sección anterior; hacemos lo siguiente:

cd CMSSW_3_1_4/src/
cmsenv             
cd simulacion

En esta carpeta vamos a guardar un archivo llamado LM0Reco_cfg.py; es un archivo en de configuración para hacer una reconstrucción (RECO) sobre los datos crudos (RAW) que se había obtenido previamente; el texto que tiene que tener este archivo lo encuentran en la siguiente dirección:

https://twiki.cern.ch/twiki/pub/Sandbox/AlbertoOcamposusyrelated/LM0Reco_cfg.py.txt

Una forma de hacerlo de manera sencilla es:

wget https://twiki.cern.ch/twiki/pub/Sandbox/AlbertoOcamposusyrelated/LM0Reco_cfg.py.txt

Recuerda que el nombre con el que debe de quedar el archivo es LM0Reco_cfg.py Para eso se puede usar el comando mv:

mv LM0Reco_cfg.py.txt LM0Reco_cfg.py

Ese archivo lo vamos a editar para que el archivo de entrada sea el que obtuvimos en el paso anterior (RAW). Lo puedes editar usando emacs, vi, o gedit. El archivo generado en el paso anterior se denomina: LM0_Gen_8E29_RAW.root

Entonces en el archivo LM0Reco_cfg.py tenemos que editar lo siguiente (es decir cambiar la ruta para que tome nuestro archivo RAW como archivo de entrada)


# Input source
process.source = cms.Source("PoolSource",
                            fileNames = cms.untracked.vstring(

'file:/home/le-cabre/CMSSW_3_1_4/src/simulacion/LM0_Gen_8E29_RAW.root'

    )
                          )

Eso es en mi caso; en su caso se debe de cambiar la parte que dice "le-cabre" por su nombre de usuario:

Por ejemplo:

'file:/home/SU_NOMBRE_DE_USUARIO/CMSSW_3_1_4/src/simulacion/LM0_Gen_8E29_RAW.root'

Ahora iniciamos la reconstrucción de datos haciendo el siguiente comando:

cmsRun LM0Reco_cfg.py

Se debe de obtener algo similar a lo siguiente:

28-Jan-2010 11:26:27 COT  Initiating request to open file file:/home/le-cabre/CMSSW_3_1_4/src/LM0/Lm0producer/LM0_Gen_8E29_RAW.root
28-Jan-2010 11:26:36 COT  Successfully opened file file:/home/le-cabre/CMSSW_3_1_4/src/LM0/Lm0producer/LM0_Gen_8E29_RAW.root
Begin processing the 1st record. Run 1, Event 1, LumiSection 1 at 28-Jan-2010 11:34:01 COT
Begin processing the 2nd record. Run 1, Event 2, LumiSection 1 at 28-Jan-2010 11:53:51 COT
Begin processing the 3rd record. Run 1, Event 3, LumiSection 1 at 28-Jan-2010 11:54:00 COT
Begin processing the 4th record. Run 1, Event 4, LumiSection 1 at 28-Jan-2010 11:54:15 COT
Begin processing the 5th record. Run 1, Event 5, LumiSection 1 at 28-Jan-2010 11:54:24 COT
Begin processing the 6th record. Run 1, Event 6, LumiSection 1 at 28-Jan-2010 11:54:31 COT
Begin processing the 7th record. Run 1, Event 7, LumiSection 1 at 28-Jan-2010 11:54:44 COT
Begin processing the 8th record. Run 1, Event 8, LumiSection 1 at 28-Jan-2010 11:54:58 COT
Begin processing the 9th record. Run 1, Event 9, LumiSection 1 at 28-Jan-2010 11:55:06 COT
Begin processing the 10th record. Run 1, Event 10, LumiSection 1 at 28-Jan-2010 11:55:09 COT
Begin processing the 11th record. Run 1, Event 11, LumiSection 1 at 28-Jan-2010 11:55:11 COT
Begin processing the 12th record. Run 1, Event 12, LumiSection 1 at 28-Jan-2010 11:55:15 COT
Begin processing the 13th record. Run 1, Event 13, LumiSection 1 at 28-Jan-2010 11:55:24 COT
Begin processing the 14th record. Run 1, Event 14, LumiSection 1 at 28-Jan-2010 11:56:06 COT
Begin processing the 15th record. Run 1, Event 15, LumiSection 1 at 28-Jan-2010 11:56:17 COT
Begin processing the 16th record. Run 1, Event 16, LumiSection 1 at 28-Jan-2010 11:56:39 COT
Begin processing the 17th record. Run 1, Event 17, LumiSection 1 at 28-Jan-2010 11:56:53 COT
Begin processing the 18th record. Run 1, Event 18, LumiSection 1 at 28-Jan-2010 11:56:58 COT
Begin processing the 19th record. Run 1, Event 19, LumiSection 1 at 28-Jan-2010 11:57:08 COT
Begin processing the 20th record. Run 1, Event 20, LumiSection 1 at 28-Jan-2010 11:57:11 COT
28-Jan-2010 11:57:19 COT  Closed file file:/home/le-cabre/CMSSW_3_1_4/src/LM0/Lm0producer/LM0_Gen_8E29_RAW.root

=============================================

MessageLogger Summary

 type     category        sev    module        subroutine        count    total
 ---- -------------------- -- ---------------- ----------------  -----    -----
    1 fileAction           -s PoolSource:sourc                       2        2
    2 fileAction           -s PostModule                             1        1

 type    category    Examples: run/evt        run/evt          run/evt
 ---- -------------------- ---------------- ---------------- ----------------
    1 fileAction           pre-events       pre-events       
    2 fileAction           1/20                              

Severity    # Occurrences   Total Occurrences
--------    -------------   -----------------
System                  3                   3

Finalmente se debe de producir el archivo LM0_Gen_8E29_RECO.root en el directorio donde se hizo cmsRun.

El siguiente paso es: Reconstrucción de Datos Específica

-- AndresCabrera - 03-Jun-2010

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2010-06-09 - AndresCabrera
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback