lecture 2 1 manipulating the pat event content and
play

Lecture 2.1: Manipulating the PAT event content and workflow - PowerPoint PPT Presentation

Lecture 2.1: Manipulating the PAT event content and workflow Andreas Hinzmann Annapaola de Cosa PAT Tutorial, June 2010 How to configure the workflow of PAT PAT provides many tools to facilitate user specified


  1. Lecture 2.1: Manipulating the PAT event content and workflow Andreas Hinzmann Annapaola de Cosa PAT ¡Tutorial, ¡June ¡2010 ¡

  2. How to configure the workflow of PAT � PAT provides many tools to facilitate user specified modifications of the Workflow and EventContent � These tools have been conceived to be common to different kind of analysis and, at the same time, to be customized according to the specific analysis requirement. They are well documented in SWGuidePATTools. You can simply add them at the end of your PAT configuration file (you will see how to use them in the exercise section) � We can divide PAT tools in categories according to their action on workflow : �  Configure the input ( restrictInputToAOD, switchToPFMET ) �  Configure the workflow ( removeMCMatching, addMuonUserIsolation, addJetCollection, switchJetCollection ) �  Configure the output ( removeAllPATObjectsBut, removeSpecificPATObjects, addTcMET, addPfMET ) � In the next slides we will see in more details some of these tools. Please, refer to the SWGuidePATTools for the complete list of all available tools ! � PAT ¡Tutorial, ¡June ¡2010 ¡ 2 ¡

  3. Configure Input Switch to AOD-only input � coreTools.py ¡ restrictInputToAOD(process, names) � Description : Tool to remove the pre-object production steps (as described on WorkBookPATWorkflow), which rely only on the RECO (and not the AOD) event content and the corresponding information to be contracted into the pat::Candidates. Use this tool to produce pat::Candidates from AOD input only. You can apply the tool to a single collection (specifying its name), a vector of collections or all collections (when specifying ['All']). Capital letters must be obeyed. � supported names : � Arguments : � * Photons � process � * Electrons � names � * Muons � * Taus � * Jets � * METs � * All � PAT ¡Tutorial, ¡June ¡2010 ¡ 3 ¡

  4. Configure Workflow Manage MC matching infos � coreTools.py ¡ removeMCMatching(process, names) � Description: Tool to remove the MC matching from the pat::Candidates. Use this tool to produce pat::Candidates from data or from events without generator level information. You can apply the tool to a single collection (specifying its name), a vector of collections or all collections (when specifying ['All']). Capital letters must be obeyed. � supported names : � Arguments: � * Photons � process � * Electrons � names � * Muons � * Taus � * Jets � * METs � * All � PAT ¡Tutorial, ¡June ¡2010 ¡ 4 ¡

  5. Configure Workflow UserIsolation � addMuonUserIsolation(process, isolationTypes) � muonTools.py ¡ Description : Tool to add predefined types of userIsolation to the pat::Muon candidate. Have a look to WorkBookPATDataFormats#pat_Lepton to find out how to read out this user-defined isolation from the pat::Muon. � Arguments : � Supported isolationTypes : � process � isolationTypes � * Tracker � * Ecal � * Hcal � * All � Analogous tools are available to add userIsolation to pat::Electrons and pat::Photons � Look at SWGuidePATTools Twiki page ¡ PAT ¡Tutorial, ¡June ¡2010 ¡ 5 ¡

  6. Configure Workflow Add Jet Collections to the Event Content � addJetCollection(process, jetCollection, algoLabel, typeLabel, doJTA, doBTagging, jetCorrLabel, doType1MET, doL1Cleaning, doL1Counters, genJetCollection, doJetId, jetIdLabel) � jetTools.py ¡ Description : Tool to add any other jet collection which is available in the RECO (AOD) event content. Note NOT to use this tool after having the switchJetCollection tool already applied, as this will lead to undefined states for the added jet collection. If you intend to add a jet collection and to switch the default jet collection in the same cfg file make sure to use the addJetCollection tool before using the switchJetCollection tool. � See next slide to visualize infos on the arguments � PAT ¡Tutorial, ¡June ¡2010 ¡ 6 ¡

  7. Configure Workflow PAT ¡Tutorial, ¡June ¡2010 ¡ 7 ¡

  8. Configure Workflow Switch default Jet Collection � switchJetCollection(process, jetCollection, doJTA, doBTagging, jetCorrLabel, doType1MET, genJetCollection, doJetId, jetIdLabel) � jetTools.py ¡ Description : Tool to switch the default jet collection to any other jet collection which is available in the RECO (AOD) event content. Note NOT to use the addJetCollection tool after having used this tool, as this will lead to undefined states for the added jet collection tool. If you intend to add a jet collection and to switch the default jet collection in the same cfg file make sure to use the addJetCollection tool before using the switchJetCollection tool. � See next slide to visualize infos on the arguments � PAT ¡Tutorial, ¡June ¡2010 ¡ 8 ¡

  9. Configure Workflow PAT ¡Tutorial, ¡June ¡2010 ¡ 9 ¡

  10. Configure Workflow Jet Collections � switchJetCollection, always should be called AFTER addJetCollection. � Both to assign jet corrections (argument jetCorrLabel) as well as for the postfix label (arguments algoLabel and typeLabel) of the added jet collection we follow the conventions used for the jet energy corrections as described on the WorkBookJetAnalysis#JetCorApplication. They are listed below : � PAT ¡Tutorial, ¡June ¡2010 ¡ 10 ¡

  11. Configure Output OutputModule  EventContent � Event content management via the edm::OutputModule: � Drop all collections from the Event Content and add vec ʼ s to the outputCommands to keep what we are interesting in � PAT ¡Tutorial, ¡June ¡2010 ¡ 11 ¡

  12. Configure Output � Modify the EventContent – remove collections � removeAllPATObjectsBut(process, names, outputInProcess) � coreTools.py ¡ Description : Tool to remove all production steps of all pat::Candidate collections but the given ones from the patDefaultSequence. You can apply this tool to a single collection (specifying its name) or a vector of collections. Capital letters must be obeyed. � Configure the input ¡ Note: this automatically disables the PAT cleaning, since the cleaning relies on looking for overlaps amongst different collections. It thus needs human reconfiguration in cases where one or more collections have been removed. It will hence remove the "cleaned" collections in favour of the "selected" collections � supported names : � Arguments: � * Photons � process � * Electrons � names � * Muons � outputInProcess � * Taus � * Jets � * METs � * All � PAT ¡Tutorial, ¡June ¡2010 ¡ 12 ¡

  13. Configure Output � Modify the EventContent – remove collections � removeSpecificPATObjects(process, names, outputInProcess) � coreTools.py ¡ Description : Tool to remove all production steps of specific pat::Candidate collections from the patDefaultSequence. You can apply the tool to a single collection (specifying its name) or a vector of collections. Capital letters must be obeyed. � Configure the input ¡ Note: this automatically disables the PAT cleaning, since the cleaning relies on looking for overlaps amongst different collections. It thus needs human reconfiguration in cases where one or more collections have been removed. It will hence remove the "cleaned" collections in favour of the "selected" collections � supported names : � Arguments: � * Photons � * Electrons � process � * Muons � names � * Taus � outputInProcess � * Jets � * METs � * All � PAT ¡Tutorial, ¡June ¡2010 ¡ 13 ¡

  14. How to learn more about PAT Workflow and EventContent � Browsing configuration � The PAT workflow is defined in python configuration files. � We can learn how it is structured inspecting it by looking at which are the modules involved and in which way they are related to each other, at which values parameters are set and so on. � Some tools have been implemented to investigate workflow configuration and the pat::Tuple produced: � • edmConfigEditor � • edmDumpEventContent � NOTE: You will learn more about the usage of these tools in the 5 th exercise section: � SWGuidePATConfigExercise � � https://twiki.cern.ch/twiki/bin/view/CMS/SWGuidePATConfigExercise � PAT ¡Tutorial, ¡June ¡2010 ¡ 14 ¡

  15. How to configure PAT Workflow and EventContent � Editing configuration � PAT provides a set of tools common to different kinds of analysis. They facilitate to perform the configuration. � The production of an user-defined PAT analysis consists of three steps: � 1. Start from the standard configuration file. � 2. Apply the PAT tools to change the configuration of the standard configuring file according to the specific needs of your analysis. � 3. Replace parameter values according to the needs of your analysis. � To browse and edit configuration file you can use a graphical tool: � the edmConfigEditor � PAT ¡Tutorial, ¡June ¡2010 ¡ 15 ¡

  16. The edmConfigEditor � To get more informations about the ConfigEditor refer to: �  � the SWGuidePATConfigExercise page: https://twiki.cern.ch/ twiki/bin/view/CMS/SWGuidePATConfigExercise �  � the apposite Twiki: https://twiki.cern.ch/twiki/bin/view/CMS/ SWGuidePATConfigEditor � How can you run it? � cmsrel CMSSW_3_6_2 � cd CMSSW_3_6_2/src � edmConfigEditor � PAT ¡Tutorial, ¡June ¡2010 ¡ 16 ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend