80 likes | 303 Views
Browsing configuration. Purpose of this talk: Learn PAT by exploring it yourself Example problem: What jet algorithm is used for PAT jets by default? You may repeat this tutorial in the afternoon or just use the described tool to support your exercises
E N D
Browsing configuration • Purpose of this talk: • Learn PAT by exploring it yourself • Example problem: • What jet algorithm is used for PAT jets by default? • You may repeat this tutorial in the afternoonorjust use the described tool to support your exercises • All information in the PAT Workbook:https://twiki.cern.ch/twiki/bin/view/CMS/WorkBookPAT PAT tutorial March 2010 Browsing configuration Andreas Hinzmann 1
Identify name of PAT jets • What jet algorithm is used for PAT jets by default? • Step 0: Setup CMSSW environment • cmsrel CMSSW_3_5_4 • cd CMSSW_3_5_4/src • cmsenv • Step 1: Produce a default PAT tuple and explore it • cvscoPhysicsTools/PatAlgos/test/patLayer1_fromAOD_full_cfg.py • cmsRunPhysicsTools/PatAlgos/test/patLayer1_fromAOD_full_cfg.py • edmDumpEventContent PATLayer1_Output.fromAOD_full.root • vector<pat::Jet> “cleanPatJets“ ““ “PAT.“ • or inspect PATLayer1_Output.fromAOD_full.root with ROOT::TBrowser • Name of module that produces PAT jets: cleanPatJets • Information in the PAT Workbook https://twiki.cern.ch/twiki/bin/view/CMS/WorkBookPATDataFormats PAT tutorial March 2010 Browsing configuration Andreas Hinzmann 2
Explore configuration using CVS+LXR • Browse CVS to find cleanPatJetshttp://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/PhysicsTools/PatAlgos/python/?hideattic=0&sortdir=down&pathrev=CMSSW_3_5_3 • Use LXR to find cleanPatJetshttp://cmslxr.fnal.gov/lxr/search • You will be reading many files until you find the jet algorithm! PAT tutorial March 2010 Browsing configuration Andreas Hinzmann 3
Explore configuration using Config Editor • Getting started with Config Editor and Manual:https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideConfigEditor • Step 0: Setup CMSSW environment • cmsrel CMSSW_3_5_4 • cd CMSSW_3_5_4/src • cmsenv • Step 1: Open default PAT configuration in Config Editor • cvscoPhysicsTools/PatAlgos/test/patLayer1_fromAOD_full_cfg.py • edmConfigEditorPhysicsTools/PatAlgos/test/patLayer1_fromAOD_full_cfg.py PAT tutorial March 2010 Browsing configuration Andreas Hinzmann 4
Screenshot of Config Editor PAT sequences PAT modules PAT tutorial March 2010 Browsing configuration Andreas Hinzmann 5
Finding cleanPatJets • Step 2: Find cleanPatJets • Edit -> Find (CTRL-F) • Label: cleanPatJets • In centerviewConnection structuredouble-clickcleanPatJets cleanPatJets is in sequence cleanPatCandidates cleanPatJets has input source selectedPatJets this module checks overlap PAT tutorial March 2010 Browsing configuration Andreas Hinzmann 6
Finding the jet algorithm • Step 3: Finding the jet algorithm • In centerviewConnection structuredouble-clickselectedPatJets • Click patJets patJets is in sequence makePatJets selectedPatJets has input source patJets jet source of patJets is ak5CaloJets PAT tutorial March 2010 Browsing configuration Andreas Hinzmann 7
Study configuration code • Step 4: Study the corresponding Python configuration • Config -> Choosecustomeditor (choose e.g. emacs) • Config -> Open in customeditor jet source of patJets is ak5CaloJets If you modify this configuration file, you change the default settings of your CMSSW area! Don’t do this! Change parameters in a user configuration file (more tomorrow): process.patJets.jetSource = cms.InputTag(“otherJets”) PAT tutorial March 2010 Browsing configuration Andreas Hinzmann 8