CMS 3D CMS Logo

electronAnalyzerSequence_cff.py
Go to the documentation of this file.
1 
2 import FWCore.ParameterSet.Config as cms
3 
4 mergedSuperClusters = cms.EDProducer("SuperClusterMerger",
5  src = cms.VInputTag(
6 # cms.InputTag("correctedHybridSuperClusters"),
7 # cms.InputTag("correctedMulti5x5SuperClustersWithPreshower")
8  cms.InputTag("particleFlowSuperClusterECAL","particleFlowSuperClusterECALBarrel"),
9  cms.InputTag("particleFlowSuperClusterECAL","particleFlowSuperClusterECALEndcapWithPreshower")
10  )
11 )
12 
14 dqmElectronGeneralAnalysis.OutputFolderName = cms.string("Egamma/Electrons/Ele1_General") ;
15 
17 dqmElectronAnalysis.MinEt = cms.double(10.) ;
18 dqmElectronAnalysis.MaxTkIso03 = cms.double(1.) ;
19 
20 dqmElectronAnalysisAllElectrons = dqmElectronAnalysis.clone(
21  Selection = 0,
22  OutputFolderName = "Egamma/Electrons/Ele2_All"
23 )
24 dqmElectronAnalysisSelectionEt = dqmElectronAnalysis.clone(
25  Selection = 1,
26  OutputFolderName = "Egamma/Electrons/Ele3_Et10"
27 )
28 dqmElectronAnalysisSelectionEtIso = dqmElectronAnalysis.clone(
29  Selection = 2,
30  OutputFolderName = "Egamma/Electrons/Ele4_Et10TkIso1"
31 )
32 #dqmElectronAnalysisSelectionEtIsoElID = dqmElectronAnalysis.clone() ;
33 #dqmElectronAnalysisSelectionEtIsoElID.Selection = 3 ;
34 #dqmElectronAnalysisSelectionEtIsoElID.OutputFolderName = cms.string("Egamma/Electrons/Ele4_Et10TkIso1ElID") ;
35 
37 dqmElectronTagProbeAnalysis.MinEt = cms.double(10.) ;
38 dqmElectronTagProbeAnalysis.MaxTkIso03 = cms.double(1.) ;
39 dqmElectronTagProbeAnalysis.OutputFolderName = cms.string("Egamma/Electrons/Ele5_TagAndProbe") ;
40 
41 electronAnalyzerSequence = cms.Sequence(
42  mergedSuperClusters
43  * dqmElectronGeneralAnalysis
44  * dqmElectronAnalysisAllElectrons
45  * dqmElectronAnalysisSelectionEt
46  * dqmElectronAnalysisSelectionEtIso
47 # * dqmElectronAnalysisSelectionEtIsoElID
48  * dqmElectronTagProbeAnalysis
49 )
50 
51 mergedSuperClustersHGC = mergedSuperClusters.clone(
52  src = (
53  ("particleFlowSuperClusterECAL:particleFlowSuperClusterECALBarrel"),
54  ("particleFlowSuperClusterHGCal")
55  )
56  )
57 dqmElectronAnalysisAllElectronsHGC = dqmElectronAnalysisAllElectrons.clone(
58  OutputFolderName = 'Egamma/Electrons/Ele2HGC_All',
59  MaxAbsEtaMatchingObject = 3.0,
60  EtaMax = 3.0,
61  EtaMin = -3.0,
62  MaxAbsEta = 3.0,
63  ElectronCollection = 'ecalDrivenGsfElectronsHGC',
64  MatchingObjectCollection = 'mergedSuperClustersHGC'
65 )
66 _electronAnalyzerSequenceHGC = electronAnalyzerSequence.copy()
67 _electronAnalyzerSequenceHGC += cms.Sequence(mergedSuperClustersHGC+dqmElectronAnalysisAllElectronsHGC)
68 
69 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
70 phase2_hgcal.toModify( mergedSuperClusters, src = cms.VInputTag( cms.InputTag("particleFlowSuperClusterECAL","particleFlowSuperClusterECALBarrel"), cms.InputTag("particleFlowSuperClusterHGCal","") ) )
71 
72 phase2_hgcal.toReplaceWith(
73 electronAnalyzerSequence, _electronAnalyzerSequenceHGC
74 )
75 
76