CMS 3D CMS Logo

hltSMPValidator_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # taken from hltHiggsValidator_cfi.py in HLTriggerOffline/Higgs/python
4 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
5 hltSMPValidator = DQMEDAnalyzer('HLTHiggsValidator',
6 
7  hltProcessName = cms.string("HLT"),
8  histDirectory = cms.string("HLT/SMP"),
9  analyses = cms.vstring("SinglePhoton","SingleEle"),
10 
11  # -- The instance name of the reco::GenParticles collection
12  genParticleLabel = cms.string("genParticles"),
13 
14  # -- The instance name of the reco::GenJets collection
15  # (not used but required to be set)
16  genJetLabel = cms.string("ak5GenJets"),
17 
18  # -- The nomber of interactions in the event
19  pileUpInfoLabel = cms.string("addPileupInfo"),
20 
21  # -- The binning of the Pt efficiency plots
22  parametersTurnOn = cms.vdouble(0,
23  1, 8, 9, 10,
24  11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
25  22, 24, 26, 28, 30, 32, 34, 36, 38, 40,
26  45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100,
27  110, 120, 130, 140, 150, 160, 170, 180, 190, 200,
28  220, 250, 300, 400, 500
29  ),
30 
31  # -- (NBins, minVal, maxValue) for the Eta,Phi and nInterations efficiency plots
32  parametersEta = cms.vdouble(48, -2.400, 2.400),
33  parametersPhi = cms.vdouble(50, -3.142, 3.142),
34  parametersPu = cms.vdouble(10, 0, 20),
35 
36  # TO BE DEPRECATED --------------------------------------------
37  cutsDr = cms.vdouble(0.4, 0.4, 0.015), # TO BE DEPRECATED
38  # parameters for attempting an L1 match using a propagator
39  maxDeltaPhi = cms.double(0.4), # TO BE DEPRECATED
40  maxDeltaR = cms.double(0.4), # TO BE DEPRECATED
41  # TO BE DEPRECATED --------------------------------------------
42 
43  # Definition of generic cuts on generated and reconstructed objects (note that
44  # these cuts can be overloaded inside a particular analysis)
45  # Objects recognized: Mu Ele Photon PFTau MET
46  # Syntax in the strings: valid syntax of the StringCutObjectSelector class
47  # --- Muons
48  Mu_genCut = cms.string("pt > 10 && abs(eta) < 2.4 && abs(pdgId) == 13 && status == 1"),
49  Mu_recCut = cms.string("pt > 10 && abs(eta) < 2.4 && isGlobalMuon"),
50  Mu_cutMinPt = cms.double(10), # TO BE DEPRECATED
51  Mu_cutMaxEta = cms.double(2.4), # TO BE DEPRECATED
52 
53  # --- Electrons
54  Ele_genCut = cms.string("pt > 10 && abs(eta) < 2.5 && abs(pdgId) == 11 && status == 1"),
55  Ele_recCut = cms.string("pt > 10 && abs(eta) < 2.5 && hadronicOverEm < 0.05 && eSuperClusterOverP > 0.5 && eSuperClusterOverP < 2.5"),
56  Ele_cutMinPt = cms.double(10), # TO BE DEPRECATED
57  Ele_cutMaxEta = cms.double(2.5), # TO BE DEPRECATED
58 
59  # --- Photons
60  Photon_genCut = cms.string("abs(pdgId) == 22 && status == 1"),
61  Photon_recCut = cms.string("pt > 20 && abs(eta) < 2.4 && hadronicOverEm < 0.1 && ("+\
62  " abs(eta) < 1.479 && sigmaIetaIeta < 0.010 || "+\
63  " abs(eta) > 1.479 && sigmaIetaIeta < 0.027 ) && "+\
64  " ecalRecHitSumEtConeDR03 < (5.0+0.012*et) && hcalTowerSumEtConeDR03 < (5.0+0.0005*et ) && trkSumPtSolidConeDR03 < (5.0 + 0.0002*et)" ),
65  Photon_cutMinPt = cms.double(20), # TO BE DEPRECATED
66  Photon_cutMaxEta = cms.double(2.4),# TO BE DEPRECATED
67 
68  # The specific parameters per analysis: the name of the parameter set has to be
69  # the same as the defined ones in the 'analysis' datamember. Each analysis is a PSet
70  # with the mandatory attributes:
71  # - hltPathsToCheck (cms.vstring) : a list of all the trigger pats to be checked
72  # in this analysis. Up to the version number _v, but not including
73  # the number in order to avoid this version dependence. Example: HLT_Mu18_v
74  # - recVarLabel (cms.string): where Var can be Muon, Elec, Photon, CaloMET, PFTau. This
75  # attribute is the name of the INSTANCE LABEL for each RECO collection to
76  # be considered in the analysis. Note that the trigger paths rely on some
77  # objects which need to be defined here, otherwise the code will complain.
78  # - minCandidates (cms.uint32): the minimum number of GEN/RECO objects in the event
79  # Besides the mandatory attributes, you can redefine the generation and reconstruction cuts
80  # for any object you want.
81  # * Var_genCut, Var_recCut (cms.string): where Var=Mu, Ele, Photon, MET, PFTau (see above)
82 
83  SinglePhoton = cms.PSet(
84  hltPathsToCheck = cms.vstring(
85  "HLT_Photon33_v",
86  "HLT_Photon50_v",
87  "HLT_Photon75_v",
88  "HLT_Photon90_v",
89  "HLT_Photon120_v",
90  "HLT_Photon165_HE10_v",
91  "HLT_Photon33_R9Id90_HE10_IsoM_v",
92  "HLT_Photon50_R9Id90_HE10_IsoM_v",
93  "HLT_Photon75_R9Id90_HE10_IsoM_v",
94  "HLT_Photon90_R9Id90_HE10_IsoM_v",
95  "HLT_Photon120_R9Id90_HE10_IsoM_v",
96  "HLT_Photon165_R9Id90_HE10_IsoM_v",
97  ),
98  recPhotonLabel = cms.string("photons"),
99  # -- Analysis specific cuts
100  minCandidates = cms.uint32(1),
101  ),
102  SingleEle = cms.PSet(
103  hltPathsToCheck = cms.vstring(
104  "HLT_Ele35_WPTight_Gsf_v",
105  "HLT_Ele38_WPTight_Gsf_v",
106  "HLT_Ele40_WPTight_Gsf_v",
107  "HLT_Ele35_WPTight_Gsf_L1EGMT_v",
108  ),
109  recElecLabel = cms.string("gedGsfElectrons"),
110  # -- Analysis specific cuts
111  minCandidates = cms.uint32(1),
112  ),
113 )