CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DPGAnalysis/Skims/python/singlePhotonSkim_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 #from HLTrigger.HLTfilters.hltHighLevel_cfi import *
00004 #exoticaMuHLT = hltHighLevel
00005 #Define the HLT path to be used.
00006 #exoticaMuHLT.HLTPaths =['HLT_L1MuOpen']
00007 #exoticaMuHLT.TriggerResultsTag = cms.InputTag("TriggerResults","","HLT8E29")
00008 
00009 #Define the HLT quality cut 
00010 #exoticaHLTMuonFilter = cms.EDFilter("HLTSummaryFilter",
00011 #    summary = cms.InputTag("hltTriggerSummaryAOD","","HLT8E29"), # trigger summary
00012 #    member  = cms.InputTag("hltL3MuonCandidates","","HLT8E29"),      # filter or collection                                                                    
00013 #    cut     = cms.string("pt>0"),                     # cut on trigger object
00014 #    minN    = cms.int32(0)                  # min. # of passing objects needed
00015 # )
00016                                
00017 #Define the Reco quality cut
00018 singlePhotonPt20Filter = cms.EDFilter("PhotonSelector",
00019                                      src = cms.InputTag("photons"),
00020                                      cut = cms.string('pt > 20 && abs(eta) < 2.7' ),
00021                                      filter = cms.bool(True)                                                  
00022 )
00023 singlePhotonPt15Filter = cms.EDFilter("PhotonSelector",
00024                                       src = cms.InputTag("photons"),
00025                                       cut = cms.string('pt > 15 && abs(eta) < 2.7' ),
00026                                       filter = cms.bool(True)
00027                                       )
00028 singlePhotonPt10Filter = cms.EDFilter("PhotonSelector",
00029                                       src = cms.InputTag("photons"),
00030                                       cut = cms.string('pt > 10 && abs(eta) < 2.7' ),
00031                                       filter = cms.bool(True)
00032                                       )
00033 singlePhotonPt5Filter = cms.EDFilter("PhotonSelector",
00034                                      src = cms.InputTag("photons"),
00035                                      cut = cms.string('pt > 5 && abs(eta) < 2.7' ),
00036                                      filter = cms.bool(True)
00037                                      )
00038 
00039 
00040 egSuperClusterMerger =  cms.EDProducer("EgammaSuperClusterMerger",
00041                                    src = cms.VInputTag(cms.InputTag('correctedHybridSuperClusters'),
00042                                                        cms.InputTag('correctedMulti5x5SuperClustersWithPreshower'))
00043                                    )
00044 egSuperClusterCands = cms.EDProducer("ConcreteEcalCandidateProducer",
00045                                    src = cms.InputTag("egSuperClusterMerger"),
00046                                    particleType = cms.string('gamma')
00047                                    )
00048 
00049 eggoodSuperClusters = cms.EDFilter("CandViewRefSelector",
00050                                  src = cms.InputTag("egSuperClusterCands"),
00051                                  cut = cms.string('et > 3.0')
00052                                  )
00053 
00054 egSuperClusterPt5Filter = cms.EDFilter("CandViewCountFilter",
00055                                      src = cms.InputTag("eggoodSuperClusters"),
00056                                      minNumber = cms.uint32(2)
00057                                      )
00058 
00059 oneEmCluster = cms.Sequence(
00060         egSuperClusterMerger+egSuperClusterCands+eggoodSuperClusters+egSuperClusterPt5Filter
00061             )
00062 
00063 gammaJet = cms.EDFilter("EtaPtMinCandViewSelector",
00064                           src = cms.InputTag("iterativeCone5CaloJets"),
00065                           ptMin   = cms.double(5),
00066                           etaMin = cms.double(-2),
00067                           etaMax = cms.double(2)
00068                           )
00069 
00070 gammaJetFilter = cms.EDFilter("CandViewCountFilter",
00071                               src = cms.InputTag("gammaJet"),
00072                               minNumber = cms.uint32(2)
00073                               )
00074 
00075 #Define group sequence, using HLT/Reco quality cut. 
00076 #exoticaMuHLTQualitySeq = cms.Sequence()
00077 singlePhotonPt20QualitySeq = cms.Sequence(
00078     #exoticaMuHLT+
00079     singlePhotonPt20Filter
00080 )
00081 singlePhotonPt15QualitySeq = cms.Sequence(
00082         #exoticaMuHLT+
00083         singlePhotonPt15Filter
00084         )
00085 singlePhotonPt10QualitySeq = cms.Sequence(
00086         #exoticaMuHLT+
00087         singlePhotonPt10Filter
00088         )
00089 singlePhotonPt5QualitySeq = cms.Sequence(
00090         #exoticaMuHLT+
00091         oneEmCluster+gammaJet+gammaJetFilter+singlePhotonPt5Filter
00092         )
00093