PAT v2 Conversion Guide

Complete: 2

How to convert an old config file to the new PAT workflow


The main differences between the new and the old workflow is that:

  • There is no longer a 'layer 0'. there is just:
    • Duplicated Electron and Photon removal, only for 2.2.X (in 3.0.X the POG will take care of it correctly).
    • Some extra reconstruction on top of AOD (e.g. extra electron ids, trigger matching, ...)
  • After this step, we produce PAT objects: the allLayer1Objects
  • Such objects are then passed through a preselection step: selectedLayer1Objects
  • Selected objects are then passed through a cleaning step to produce the cleanLayer1Objects

You can turn off the layer 1 cleaning step with these lines in your config file:

from import removeCleaning
You must then also update your output module configuration to use the patEventContentNoLayer1Cleaning instead of the patEventContent
An example config file is
Note: layer 1 cleaning is of course turned off in the PF2PAT example config files, as the cleaning is performed by the PF2PAT sequence.

Recipe for the impatient user

  • remove patLayer1_cff and patLayer0_cff ; load instead patSequences_cff
  • remove patLayer1 and patLayer0 replace with patDefaultSequence
  • replace the EventContent part
        ##  OLD
        process.load( "CMS.PhysicsTools.PatAlgos.patLayer1_EventContent_cff" )
        process.out.outputCommands.extend( process.patLayer1EventContent )
        ## NEW
        from CMS.PhysicsTools.PatAlgos.patEventContent_cff import *
        process.out.outputCommands += patEventContent
  • Warning: patEventContent only contains the PAT Objects. You should add yourself the other AOD objects you want to keep.
  • replace PATLayer0Summary with PATSummaryTables in the MessageLogger configuration

Review status

Reviewer/Editor and Date (copy from screen) Comments
GiovanniPetrucciani - 13 Jan 2009 created page
GiovanniPetrucciani - 26 Jan 2009 updated for cleaning

Responsible: GiovanniPetrucciani
Last reviewed by: GiovanniPetrucciani

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2009-01-26 - GiovanniPetrucciani
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CMSPublic All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2023 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