Configurable Analysis Ntuple Information

NOTE: This page is outdated. To see the latest ntuples go to the site http://positron.physics.ucsb.edu/cfA/form.html, which lists all the ntuples produced.

Goals of this page

  • Provide location of ntuples that have been produced
  • Provide documentation on ntuples content
  • Provide a test skeleton macro to run over the samples
  • Provide a recipe to produce ntuples yourself

Contents

Introduction

The ConfigurableAnalysis tool allows you to easily produce an ntuple from the output of the PAT. These ntuples are not supported by CMS and do not have any official status. This page describes the ntuples that have been produced so far.

Ntuples in 1.6.12

Input files for ntuples 1.6.12

Most of the ConfigurableAnalysis ntuples in 1.6.12 are produced from input files that are described at https://twiki.cern.ch/twiki/bin/view/CMS/SusyCaf. The input files for ntuples created from this site are:

  • CSA07-CSA07Muon-Chowder-P1-PDMuon-Skims6 (4.5 M events)
  • CSA07-CSA07Muon-Chowder-P1-PDMuon-Skims6 (40k events)
  • CSA07-CSA07Muon-Chowder-P1-PDMuon-Skims6 (1.8 M events)
  • LM1, LM2, LM3, LM4,LM6, LM8, and LM9 (all LMs have ~100k events)

The ntuples produced from input files not described at the above link are:

  • /WW_incl/CMSSW_1_6_7-CSA07-1196178448/RECO (800k events)
  • /WZ_incl/CMSSW_1_6_7-CSA07-1195629996/RECO (350k events)
  • /WZ_incl/CMSSW_1_6_7-CSA07-1195629996/RECO (350k events)

Location of ntuples

The muon-skimmed chowder trees are located on castor at CERN and they are ~25 GB in total. There are 4,477,207 events total in these 6 files:

  • /castor/cern.ch/user/r/rebassoo/CSAMuonChowderCombinedWCSA/MuonChowderNtupleCombined1.root
  • /castor/cern.ch/user/r/rebassoo/CSAMuonChowderCombinedWCSA/MuonChowderNtupleCombined2.root
  • /castor/cern.ch/user/r/rebassoo/CSAMuonChowderCombinedWCSA/MuonChowderNtupleCombined3.root
  • /castor/cern.ch/user/r/rebassoo/CSAMuonChowderCombinedWCSA/MuonChowderNtupleCombined4.root
  • /castor/cern.ch/user/r/rebassoo/CSAMuonChowderCombinedWCSA/MuonChowderNtupleCombined5.root
  • /castor/cern.ch/user/r/rebassoo/CSAMuonChowderCombinedWCSA/MuonChowderNtupleCombined6.root

The muon-skimmed gumbo tree is located on castor at CERN and this file is ~700 MB. There are 38942 events in this file

  • /castor/cern.ch/user/r/rebassoo/CSAMuonGumboCombinedWCSA/MuonGumboNtupleCombined.root

The muon-skimmed stew trees are located on castor at CERN and they are ~10 GB in total. There is 1803622 events total in these 12 files

  • /castor/cern.ch/user/r/rebassoo/CSAMuonStewCombinedWCSA/MuonStewNtupleCombined1.root
  • /castor/cern.ch/user/r/rebassoo/CSAMuonStewCombinedWCSA/MuonStewNtupleCombined2.root
  • /castor/cern.ch/user/r/rebassoo/CSAMuonStewCombinedWCSA/MuonStewNtupleCombined3.root
  • /castor/cern.ch/user/r/rebassoo/CSAMuonStewCombinedWCSA/MuonStewNtupleCombined4.root
  • /castor/cern.ch/user/r/rebassoo/CSAMuonStewCombinedWCSA/MuonStewNtupleCombined5.root
  • /castor/cern.ch/user/r/rebassoo/CSAMuonStewCombinedWCSA/MuonStewNtupleCombined6.root
  • /castor/cern.ch/user/r/rebassoo/CSAMuonStewCombinedWCSA/MuonStewNtupleCombined7.root
  • /castor/cern.ch/user/r/rebassoo/CSAMuonStewCombinedWCSA/MuonStewNtupleCombined8.root
  • /castor/cern.ch/user/r/rebassoo/CSAMuonStewCombinedWCSA/MuonStewNtupleCombined9.root
  • /castor/cern.ch/user/r/rebassoo/CSAMuonStewCombinedWCSA/MuonStewNtupleCombined10.root
  • /castor/cern.ch/user/r/rebassoo/CSAMuonStewCombinedWCSA/MuonStewNtupleCombined11.root
  • /castor/cern.ch/user/r/rebassoo/CSAMuonStewCombinedWCSA/MuonStewNtupleCombined12.root

The LM files are all about 1-2 GB and at fermilab at:

  • /uscms_data/d1/rebassoo/LM1SusyTree/job/LM1_SUSY_Tree.root
  • /uscms_data/d1/rebassoo/LM2SusyTree/job/LM2_SUSY_Tree.root
  • /uscms_data/d1/rebassoo/LM3SusyTree/job/LM3_SUSY_Tree.root
  • /uscms_data/d1/rebassoo/LM4SusyTree/job/LM4_SUSY_Tree.root
  • /uscms_data/d1/rebassoo/LM6SusyTree/job/LM6_SUSY_Tree.root
  • /uscms_data/d1/rebassoo/LM8SusyTree/job/LM8_SUSY_Tree.root
  • /uscms_data/d1/rebassoo/LM9SusyTree/job/LM9_SUSY_Tree.root

For the di-boson samples, they are located on castor at CERN at:

  • /castor/cern.ch/user/r/rebassoo/WW_incl_Combined/WW_incl_Combined1.root
  • /castor/cern.ch/user/r/rebassoo/WW_incl_Combined/WW_incl_Combined2.root
  • /castor/cern.ch/user/r/rebassoo/WW_incl_Combined/WW_incl_Combined3.root
  • /castor/cern.ch/user/r/rebassoo/WW_incl_Combined/WW_incl_Combined4.root
  • /castor/cern.ch/user/r/rebassoo/WZ_incl_Combined/WZ_incl_Combined1.root
  • /castor/cern.ch/user/r/rebassoo/WZ_incl_Combined/WZ_incl_Combined2.root
  • /castor/cern.ch/user/r/rebassoo/ZZ_incl_Combined/ZZInclNtupleCombined.root

Content of ntuples

The table http://hep.ucsb.edu/people/rebassoo/ForConfigurableAnalysisNtupleTwiki/UCSB_SUSY_ROOT_Tree_Content_10Oct2008.pdf gives an explicit description of the ntuple content. This table identifies all the collections, classes, and member data used in the ntuple.

Macro to run on ntuples

I have tried to include a root macro that will help first time users with the ntuples. First save all the files below to the same directory:

To run the macro simply copy all the attached .C and .h files to the same directory and do:

root [0] .x running_on_background.C

You can open this file to see exactly what it is doing, but for it to work you will need to make changes to the file chain_chowder.C before the macro will run. You need to change the location in this file to wherever the ntuples you are running on are located. The file PublicScript.C is where you put all your analysis code. Right now it just plots muon pt and CSA07 id and saves them in a root file.

Ntuples in 2.1.11

Fixes/Changes in ntuple from 1.6.12

The ntuples in 2.1.11 have recovered the Monte Carlo mother information (in 1.6.12 this information was corrupted for the input files ran on). Currently the ntuples in 2.1.11 have all the same contents as those in 1.6.12, though some quantities have been removed or changed due to the release difference. In particular, the L1 trigger information has been moved to eventV from eventB.

Input files for ntuples 2.1.11

There is a summer LM1 ntuple that has been produced from:

  • /SUSY_LM1-sftsht/Summer08_IDEAL_V9_v1/GEN-SIM-RECO

Location of ntuples 2.1.11

The LM1 ntuple is located on castor at CERN at:

  • /castor/cern.ch/user/r/rebassoo/SUSYLM1_Combined/SUSYLM1Combined.root

Ntuples in 2.2.3

We have successfully run the configurableAnalysis ntuple-maker in 2.2.3 with additional tags for the PAT specified at the SUSYPAT twiki. We have included more variables in the ntuple, such as all the lepton id information, and more muon information (see documentation below for specifics). From the summer08 samples we have produced ntuples for some of the LMs and ttbar. We will be producing more ntuples from the summer08 samples soon.

Input files for ntuples 2.2.3

LM ntuples have been produced from:
  • /SUSY_LM1-sftsht/Summer08_IDEAL_V9_AODSIM_v1/AODSIM
  • /SUSY_LM2-sftsht/Summer08_IDEAL_V9_AODSIM_v1/AODSIM
  • /SUSY_LM3-sftsht/Summer08_IDEAL_V9_AODSIM_v1/AODSIM
  • /SUSY_LM5-sftsht/Summer08_IDEAL_V9_AODSIM_v1/AODSIM
  • /SUSY_LM7-sftsht/Summer08_IDEAL_V9_AODSIM_v1/AODSIM

Ttbar ntuples have been produced from tauola and madgraph samples:

  • /TauolaTTbar/Summer08_IDEAL_V9_AODSIM_v1/AODSIM
  • /TTJets-madgraph/Fall08_IDEAL_V9_v2/GEN-SIM-RECO

Location of ntuples 2.2.3

The LM ntuples (each ~200k events) are located on castor at CERN at:
  • /castor/cern.ch/user/r/rebassoo/SUSYLM1_2_2_3_Combined.root
  • /castor/cern.ch/user/r/rebassoo/SUSYLM2_2_2_3_Combined.root
  • /castor/cern.ch/user/r/rebassoo/SUSYLM3_2_2_3_Combined.root
  • /castor/cern.ch/user/r/rebassoo/SUSYLM5_2_2_3_Combined.root
  • /castor/cern.ch/user/r/rebassoo/SUSYLM7_2_2_3_Combined.root

The Tauola ttbar ntuple (~150k events) is located at:

  • /castor/cern.ch/user/r/rebassoo/ttbar_2_2_3_Combined_Tauola.root

The Madgraph ttbar ntuples (-800K events total) are located at:

  • /castor/cern.ch/user/r/rebassoo/ttbar_2_2_3_Madgraph_Combined/ttbar_2_2_3_Combined_1.root
  • /castor/cern.ch/user/r/rebassoo/ttbar_2_2_3_Madgraph_Combined/ttbar_2_2_3_Combined_2.root
  • /castor/cern.ch/user/r/rebassoo/ttbar_2_2_3_Madgraph_Combined/ttbar_2_2_3_Combined_3.root
  • /castor/cern.ch/user/r/rebassoo/ttbar_2_2_3_Madgraph_Combined/ttbar_2_2_3_Combined_4.root
  • /castor/cern.ch/user/r/rebassoo/ttbar_2_2_3_Madgraph_Combined/ttbar_2_2_3_Combined_5.root
  • /castor/cern.ch/user/r/rebassoo/ttbar_2_2_3_Madgraph_Combined/ttbar_2_2_3_Combined_6.root
  • /castor/cern.ch/user/r/rebassoo/ttbar_2_2_3_Madgraph_Combined/ttbar_2_2_3_Combined_7.root
  • /castor/cern.ch/user/r/rebassoo/ttbar_2_2_3_Madgraph_Combined/ttbar_2_2_3_Combined_8.root
  • /castor/cern.ch/user/r/rebassoo/ttbar_2_2_3_Madgraph_Combined/ttbar_2_2_3_Combined_9.root

Content of ntuples 2.2.3

The table http://hep.ucsb.edu/people/rebassoo/ForConfigurableAnalysisNtupleTwiki/SUSY_ROOT_Tree_Content_2_2_3_Feb9_2009.pdf gives an explicit description of the ntuple content. This table identifies all the collections, classes, and member data used in the ntuple.

Macro to run on ntuples 2.2.3

I have tried to include a root macro that will help first time users with the ntuples. First save all the files below to the same directory:

To run the macro simply download all the .C and .h files above into the same directory and do:

root [0] .x runningLM1.C

You can open this file to see exactly what it is doing, but for it to work you will need to make changes to the file chain_LM1.C before the macro will run. You need to change the location in this file to wherever the ntuples you are running on are located. The file PublicScriptSimple.C is where you put all your analysis code. Right now it just plots muon pt and saves it in a root file.

Recipe to create ntuples yourself 2.2.3

You can create ntuples yourself in 2.2.3. This recipe will work on summer08/fall08 samples.

First set up your environment:

scramv1 p CMSSW CMSSW_2_2_3
cd CMSSW_2_2_3/src
cmsenv

#PAT specific tags from SUSYPAT twiki
addpkg PhysicsTools/PatAlgos V04-14-18
addpkg PhysicsTools/PatUtils V03-05-02
addpkg DataFormats/PatCandidates V03-18-04

#Need updated StringParser
cvs co -r V06-09-07 PhysicsTools/Utilities

#addition to the release tags for configurableAnalysis
addpkg PhysicsTools/RecoUtils
cvs co -r V00-01-03 PhysicsTools/RecoUtils/plugins
cvs co -r V07-03-21-00 PhysicsTools/UtilAlgos

#this is for the Pat cross cleaner
cvs co -rV00-03-01 -d SusyAnalysis/PatCrossCleaner UserCode/SusyAnalysis/PatCrossCleaner

#this is to get the configurableAnalysis tool
cvs co -r U00-02-00 -d Workspace/ConfigurableAnalysis UserCode/JRVlimant/cmssw/WorkSpace/ConfigurableAnalysis

scramv1 b 

Once you have the proper environment set up you can run the ntupler. To run the ntupler make sure the input file in testFromAOD_cfg.py is correct, then do:

cd Workspace/ConfigurableAnalysis/python
cmsRun testFromAOD_cfg.py

The configuration file testFromAOD_cfg.py runs the ntupler and outputs the root file configurableAnalysis.root with the ntuples eventB and eventV in it. eventV has all the trigger information, and eventB has all the other variables.

If you want a different output file name besides configurableAnalysis.root revise Workspace/ConfigurableAnalysis/python/configurableAnalysis_cff.py by changing the string name in the line:

fileName = cms.string('configurableAnalysis.root') 

Ntuples in 2.2.6

Location, Content, macros and more for ntuples in 2.2.6

Look at the page http://positron.physics.ucsb.edu/cfA/form.html for the location, content, macros and more for these ntuples in 2.2.6. The ntuples in 2.2.6 are called version 2.

Recipe for ntuple in 2.2.6

scramv1 p CMSSW CMSSW_2_2_6
cd CMSSW_2_2_6/src
cmsenv

#PAT specific tags from SUSYPAT twiki
addpkg PhysicsTools/PatAlgos V04-14-24
addpkg PhysicsTools/PatUtils V03-05-02
addpkg DataFormats/PatCandidates V03-18-07
addpkg CondFormats/JetMETObjects V01-08-02

#Need updated StringParser with bug fix to get ecalIsoDeposit and
hcalIsoDeposit energy
cvs co -r V06-09-07-01 PhysicsTools/Utilities

#addition to the release tags for configurableAnalysis
addpkg PhysicsTools/RecoUtils
cvs co -r V00-01-03 PhysicsTools/RecoUtils/plugins

#This is for tcMET
cvs co -r V02-05-00-20 RecoMET/METAlgorithms
cvs co -r V02-08-02-16 RecoMET/METProducers
cvs co -r V00-04-02-16 RecoMET/Configuration
cvs co -r V00-06-02-09 DataFormats/METReco

#this is for the Pat cross cleaner
cvs co -rV00-03-01 -d SusyAnalysis/PatCrossCleaner
UserCode/SusyAnalysis/PatCrossCleaner

#this is to get the configurableAnalysis tool
cvs co -r U00-08-00 -d Workspace/ConfigurableAnalysis
UserCode/JRVlimant/cmssw/WorkSpace/ConfigurableAnalysis

scramv1 b

Once you have the proper environment set up you can run the ntupler. To run the ntupler make sure the input file in testFromAOD_cfg.py is correct, then do:

cd Workspace/ConfigurableAnalysis/python
cmsRun testFromAOD_cfg.py

The configuration file testFromAOD_cfg.py runs the ntupler and outputs the root file configurableAnalysis.root with the ntuples eventB and eventV in it. eventV has all the trigger information, and eventB has all the other variables.

If you want a different output file name besides configurableAnalysis.root revise Workspace/ConfigurableAnalysis/python/configurableAnalysis_cff.py by changing the string name in the line:

fileName = cms.string('configurableAnalysis.root') 

-- JeanrochVlimant - 04 Dec 2008 -- FinnRebassoo - 05 Dec 2008 -- FinnRebassoo - 11 Feb 2009 -- FinnRebassoo - 18 Feb 2009

Edit | Attach | Watch | Print version | History: r16 | r14 < r13 < r12 < r11 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r12 - 2009-07-08 - FinnRebassoo
 
    • 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-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback