CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
singlePhotonSkim_cff.py
Go to the documentation of this file.
2 
3 #from HLTrigger.HLTfilters.hltHighLevel_cfi import *
4 #exoticaMuHLT = hltHighLevel
5 #Define the HLT path to be used.
6 #exoticaMuHLT.HLTPaths =['HLT_L1MuOpen']
7 #exoticaMuHLT.TriggerResultsTag = cms.InputTag("TriggerResults","","HLT8E29")
8 
9 #Define the HLT quality cut
10 #exoticaHLTMuonFilter = cms.EDFilter("HLTSummaryFilter",
11 # summary = cms.InputTag("hltTriggerSummaryAOD","","HLT8E29"), # trigger summary
12 # member = cms.InputTag("hltL3MuonCandidates","","HLT8E29"), # filter or collection
13 # cut = cms.string("pt>0"), # cut on trigger object
14 # minN = cms.int32(0) # min. # of passing objects needed
15 # )
16 
17 #Define the Reco quality cut
18 singlePhotonPt20Filter = cms.EDFilter("PhotonSelector",
19  src = cms.InputTag("photons"),
20  cut = cms.string('pt > 20 && abs(eta) < 2.7' ),
21  filter = cms.bool(True)
22 )
23 singlePhotonPt15Filter = cms.EDFilter("PhotonSelector",
24  src = cms.InputTag("photons"),
25  cut = cms.string('pt > 15 && abs(eta) < 2.7' ),
26  filter = cms.bool(True)
27  )
28 singlePhotonPt10Filter = cms.EDFilter("PhotonSelector",
29  src = cms.InputTag("photons"),
30  cut = cms.string('pt > 10 && abs(eta) < 2.7' ),
31  filter = cms.bool(True)
32  )
33 singlePhotonPt5Filter = cms.EDFilter("PhotonSelector",
34  src = cms.InputTag("photons"),
35  cut = cms.string('pt > 5 && abs(eta) < 2.7' ),
36  filter = cms.bool(True)
37  )
38 
39 
40 egSuperClusterMerger = cms.EDProducer("EgammaSuperClusterMerger",
41  src = cms.VInputTag(cms.InputTag('correctedHybridSuperClusters'),
42  cms.InputTag('correctedMulti5x5SuperClustersWithPreshower'))
43  )
44 egSuperClusterCands = cms.EDProducer("ConcreteEcalCandidateProducer",
45  src = cms.InputTag("egSuperClusterMerger"),
46  particleType = cms.string('gamma')
47  )
48 
49 eggoodSuperClusters = cms.EDFilter("CandViewRefSelector",
50  src = cms.InputTag("egSuperClusterCands"),
51  cut = cms.string('et > 3.0')
52  )
53 
54 egSuperClusterPt5Filter = cms.EDFilter("CandViewCountFilter",
55  src = cms.InputTag("eggoodSuperClusters"),
56  minNumber = cms.uint32(2)
57  )
58 
59 oneEmCluster = cms.Sequence(
60  egSuperClusterMerger+egSuperClusterCands+eggoodSuperClusters+egSuperClusterPt5Filter
61  )
62 
63 gammaJet = cms.EDFilter("EtaPtMinCandViewSelector",
64  src = cms.InputTag("iterativeCone5CaloJets"),
65  ptMin = cms.double(5),
66  etaMin = cms.double(-2),
67  etaMax = cms.double(2)
68  )
69 
70 gammaJetFilter = cms.EDFilter("CandViewCountFilter",
71  src = cms.InputTag("gammaJet"),
72  minNumber = cms.uint32(2)
73  )
74 
75 #Define group sequence, using HLT/Reco quality cut.
76 #exoticaMuHLTQualitySeq = cms.Sequence()
77 singlePhotonPt20QualitySeq = cms.Sequence(
78  #exoticaMuHLT+
79  singlePhotonPt20Filter
80 )
81 singlePhotonPt15QualitySeq = cms.Sequence(
82  #exoticaMuHLT+
83  singlePhotonPt15Filter
84  )
85 singlePhotonPt10QualitySeq = cms.Sequence(
86  #exoticaMuHLT+
87  singlePhotonPt10Filter
88  )
89 singlePhotonPt5QualitySeq = cms.Sequence(
90  #exoticaMuHLT+
91  oneEmCluster+gammaJet+gammaJetFilter+singlePhotonPt5Filter
92  )
93