CMS 3D CMS Logo

electronAnalyzer_cfi.py
Go to the documentation of this file.
1 # The following comments couldn't be translated into the new config version:
2 
3 # histos limits and binning
4 
5 import FWCore.ParameterSet.Config as cms
6 
7 #electronAnalyzerHistosCfg = cms.PSet(
8 # EfficiencyFlag = cms.bool(False),StatOverflowFlag = cms.bool(True)
9 #)
10 
11 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
12 dqmElectronAnalysis = DQMEDAnalyzer('ElectronAnalyzer',
13 
14  Verbosity = cms.untracked.int32(0),
15  FinalStep = cms.string("AtJobEnd"),
16  InputFile = cms.string(""),
17  OutputFile = cms.string(""),
18  InputFolderName = cms.string("Egamma/Electrons"),
19  OutputFolderName = cms.string("Egamma/Electrons"),
20 
21  Selection = cms.int32(1), # 0=All elec, 1=Etcut, 2=Iso, 3=eId
22  ElectronCollection = cms.InputTag("gedGsfElectrons"),
23  MatchingObjectCollection = cms.InputTag("mergedSuperClusters"),
24  TrackCollection = cms.InputTag("generalTracks"),
25  GsfTrackCollection = cms.InputTag("electronGsfTracks"),
26  VertexCollection = cms.InputTag("offlinePrimaryVertices"),
27  BeamSpot = cms.InputTag("offlineBeamSpot"),
28  ReadAOD = cms.bool(False),
29 
30  MatchingCondition = cms.string("Cone"),
31  MaxPtMatchingObject = cms.double(100.0),
32  MaxAbsEtaMatchingObject = cms.double(2.5),
33  DeltaR = cms.double(0.3),
34 
35  MinEt = cms.double(10.),
36  MinPt = cms.double(0.),
37  MaxAbsEta = cms.double(2.5),
38  SelectEb = cms.bool(False),
39  SelectEe = cms.bool(False),
40  SelectNotEbEeGap = cms.bool(False),
41  SelectEcalDriven = cms.bool(False),
42  SelectTrackerDriven = cms.bool(False),
43  MinEopBarrel = cms.double(0.),
44  MaxEopBarrel = cms.double(10000.),
45  MinEopEndcaps = cms.double(0.),
46  MaxEopEndcaps = cms.double(10000.),
47  MinDetaBarrel = cms.double(0.),
48  MaxDetaBarrel = cms.double(10000.),
49  MinDetaEndcaps = cms.double(0.),
50  MaxDetaEndcaps = cms.double(10000.),
51  MinDphiBarrel = cms.double(0.),
52  MaxDphiBarrel = cms.double(10000.),
53  MinDphiEndcaps = cms.double(0.),
54  MaxDphiEndcaps = cms.double(10000.),
55  MinSigIetaIetaBarrel = cms.double(0.),
56  MaxSigIetaIetaBarrel = cms.double(10000.),
57  MinSigIetaIetaEndcaps = cms.double(0.),
58  MaxSigIetaIetaEndcaps = cms.double(10000.),
59  MaxHoeBarrel = cms.double(10000.),
60  MaxHoeEndcaps = cms.double(10000.),
61  MinMva = cms.double(-10000.),
62  MaxTipBarrel = cms.double(10000.),
63  MaxTipEndcaps = cms.double(10000.),
64  MaxTkIso03 = cms.double(1.),
65  MaxHcalIso03Depth1Barrel = cms.double(10000.),
66  MaxHcalIso03Depth1Endcaps = cms.double(10000.),
67  MaxHcalIso03Depth2Endcaps = cms.double(10000.),
68  MaxEcalIso03Barrel = cms.double(10000.),
69  MaxEcalIso03Endcaps = cms.double(10000.),
70 
71  TriggerResults = cms.InputTag("TriggerResults::HLT"),
72 
73  NbinEta = cms.int32(50), NbinEta2D = cms.int32(50), EtaMin = cms.double(-2.5), EtaMax = cms.double(2.5),
74  NbinPhi = cms.int32(64), NbinPhi2D = cms.int32(32), PhiMax = cms.double(3.2), PhiMin = cms.double(-3.2),
75  NbinPt = cms.int32(50), NbinPtEff = cms.int32(19), NbinPt2D = cms.int32(50), PtMax = cms.double(100.0),
76  NbinP = cms.int32(50), NbinP2D = cms.int32(50), PMax = cms.double(300.0),
77  NbinEop = cms.int32(50), NbinEop2D = cms.int32(30), EopMax = cms.double(5.0), EopMaxSht = cms.double(3.0),
78  NbinDeta = cms.int32(100), DetaMin = cms.double(-0.005), DetaMax = cms.double(0.005),
79  NbinDphi = cms.int32(100), DphiMin = cms.double(-0.01), DphiMax = cms.double(0.01),
80  NbinDetaMatch = cms.int32(100), NbinDetaMatch2D = cms.int32(50), DetaMatchMin = cms.double(-0.05), DetaMatchMax = cms.double(0.05),
81  NbinDphiMatch = cms.int32(100), NbinDphiMatch2D = cms.int32(50), DphiMatchMin = cms.double(-0.2), DphiMatchMax = cms.double(0.2),
82  NbinFhits = cms.int32(30), FhitsMax = cms.double(30.0),
83  NbinLhits = cms.int32(5), LhitsMax = cms.double(10.0),
84  NbinXyz = cms.int32(50), NbinXyz2D = cms.int32(25),
85  NbinPopTrue = cms.int32(75), PopTrueMin = cms.double(0.0), PopTrueMax = cms.double(1.5),
86  NbinMee = cms.int32(100), MeeMin = cms.double(0.0), MeeMax = cms.double(150.),
87  NbinHoe = cms.int32(100), HoeMin = cms.double(0.0), HoeMax = cms.double(0.5),
88 
89 # histosCfg = cms.PSet(electronAnalyzerHistosCfg)
90 
91  )
92 
93 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
94 phase2_hgcal.toModify( dqmElectronAnalysis, ElectronCollection = cms.InputTag("ecalDrivenGsfElectrons") )