4.2.5. Using PAT On Data


This is an example for how to run on data in the Jet PD.

4.5.1. Prescription

To know more about what data are available for analysis and what are the conditions under which they have been taken have a look to the PdmV2012Analysis page of the PPD. A prescription to run the first data in CMSSW_7_4_15 is available on SWGuidePATReleaseNotes41X. Please follow this link to keep up to date with latest updates. Due to the rapidly changing start-up conditions in software it is beneficial to check this often for the next few weeks.

Input files

The triggers for the Jet PD are listed here. Let's take all of them :

 Jet = cms.vstring( 'HLT_DiJetAve100U_v4',
   'HLT_Jet80_v1' ),

The first few files are given below:


These files are used in the configuration file in the next section.

Making PAT-tuples

The PAT-tuples are made (without DCSTRONLY for the moment) with this configuration file. This file will produce pat::Jets from reco::PFJets and use the PFJetIDSelectionFunctor in the full framework to write out only jets that pass jet ID. Thus it is unnecessary to apply jet ID in FWLite.

To run it do the following:

cmsRun PhysicsTools/PatExamples/test/patTuple_data_cfg.py

This will create a file called "jet2011A_aod.root" out of the first 1000 events. The event content is:

cmslpc06:$ edmDumpEventContent jet2011A_aod.root 
Type                                  Module                      Label            Process   
edm::TriggerResults                   "TriggerResults"            ""               "HLT"     
trigger::TriggerEvent                 "hltTriggerSummaryAOD"      ""               "HLT"     
L1GlobalTriggerReadoutRecord          "gtDigis"                   ""               "RECO"    
edm::ConditionsInEventBlock           "conditionsInEdm"           ""               "RECO"    
edm::SortedCollection<CaloTower,edm::StrictWeakOrdering<CaloTower> >    "towerMaker"                ""               "RECO"    
edm::TriggerResults                   "TriggerResults"            ""               "RECO"    
reco::BeamSpot                        "offlineBeamSpot"           ""               "RECO"    
vector<reco::Track>                   "generalTracks"             ""               "RECO"    
vector<reco::Vertex>                  "offlinePrimaryVertices"    ""               "RECO"    
vector<reco::Vertex>                  "offlinePrimaryVerticesWithBS"   ""               "RECO"    
edm::OwnVector<reco::BaseTagInfo,edm::ClonePolicy<reco::BaseTagInfo> >    "selectedPatJets"           "tagInfos"       "PAT"     
edm::TriggerResults                   "TriggerResults"            ""               "PAT"     
vector<CaloTower>                     "selectedPatJets"           "caloTowers"     "PAT"     
vector<pat::Electron>                 "selectedPatElectrons"      ""               "PAT"     
vector<pat::Jet>                      "goodPatJets"               ""               "PAT"     
vector<pat::MET>                      "patMETs"                   ""               "PAT"     
vector<pat::MET>                      "patMETsPF"                 ""               "PAT"     
vector<pat::Muon>                     "selectedPatMuons"          ""               "PAT"     
vector<pat::Photon>                   "selectedPatPhotons"        ""               "PAT"     
vector<reco::GenJet>                  "selectedPatJets"           "genJets"        "PAT"     
vector<reco::PFCandidate>             "selectedPatJets"           "pfCandidates"   "PAT"    

Running with FWLite

In order to analyse this in FWLite, use this executable and this configuration file.

PatBasicFWLiteJetAnalyzer PhysicsTools/PatExamples/bin/analyzePatJetFWLite_cfg.py

This will make some distributions of the Jets in the event and write to the file analyzePatBasics.root. The histograms are:

 KEY: TH1F   jetPt;1   pt
 KEY: TH1F   jetEta;1   eta
 KEY: TH1F   jetPhi;1   phi
 KEY: TH1F   disc;1   Discriminant
 KEY: TH1F   constituentPt;1   Constituent pT

Have fun!!!

-- SalvatoreRoccoRappoccio - 21-Mar-2011

Topic attachments
I Attachment History Action Size Date Who Comment
Cascading Style Sheet filecss tutorial.css r1 manage 0.2 K 2011-03-22 - 18:01 RogerWolf  
Edit | Attach | Watch | Print version | History: r23 < r22 < r21 < r20 < r19 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r23 - 2014-07-31 - XuanChen



    • 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