2 import FWCore.ParameterSet.Config
as cms
4 mergedSuperClusters = cms.EDProducer(
"SuperClusterMerger",
8 cms.InputTag(
"particleFlowSuperClusterECAL",
"particleFlowSuperClusterECALBarrel"),
9 cms.InputTag(
"particleFlowSuperClusterECAL",
"particleFlowSuperClusterECALEndcapWithPreshower")
14 dqmElectronGeneralAnalysis.OutputFolderName = cms.string(
"Egamma/Electrons/Ele1_General") ;
17 dqmElectronAnalysis.MinEt = cms.double(10.) ;
18 dqmElectronAnalysis.MaxTkIso03 = cms.double(1.) ;
20 dqmElectronAnalysisAllElectrons = dqmElectronAnalysis.clone() ;
21 dqmElectronAnalysisAllElectrons.Selection = 0 ;
22 dqmElectronAnalysisAllElectrons.OutputFolderName = cms.string(
"Egamma/Electrons/Ele2_All") ;
24 dqmElectronAnalysisSelectionEt = dqmElectronAnalysis.clone() ;
25 dqmElectronAnalysisSelectionEt.Selection = 1 ;
26 dqmElectronAnalysisSelectionEt.OutputFolderName = cms.string(
"Egamma/Electrons/Ele3_Et10") ;
28 dqmElectronAnalysisSelectionEtIso = dqmElectronAnalysis.clone() ;
29 dqmElectronAnalysisSelectionEtIso.Selection = 2 ;
30 dqmElectronAnalysisSelectionEtIso.OutputFolderName = cms.string(
"Egamma/Electrons/Ele4_Et10TkIso1") ;
37 dqmElectronTagProbeAnalysis.MinEt = cms.double(10.) ;
38 dqmElectronTagProbeAnalysis.MaxTkIso03 = cms.double(1.) ;
39 dqmElectronTagProbeAnalysis.OutputFolderName = cms.string(
"Egamma/Electrons/Ele5_TagAndProbe") ;
41 electronAnalyzerSequence = cms.Sequence(
43 * dqmElectronGeneralAnalysis
44 * dqmElectronAnalysisAllElectrons
45 * dqmElectronAnalysisSelectionEt
46 * dqmElectronAnalysisSelectionEtIso
48 * dqmElectronTagProbeAnalysis
51 mergedSuperClustersFromMultiCl = mergedSuperClusters.clone()
52 mergedSuperClustersFromMultiCl.src = cms.VInputTag(
53 cms.InputTag(
"particleFlowSuperClusterECAL",
"particleFlowSuperClusterECALBarrel"),
54 cms.InputTag(
"particleFlowSuperClusterHGCalFromMultiCl",
"")
56 dqmElectronAnalysisAllElectronsFromMultiCl = dqmElectronAnalysisAllElectrons.clone()
57 dqmElectronAnalysisAllElectronsFromMultiCl.OutputFolderName =
'Egamma/Electrons/Ele2FromMultiCl_All' 58 dqmElectronAnalysisAllElectronsFromMultiCl.MaxAbsEtaMatchingObject = 3.0
59 dqmElectronAnalysisAllElectronsFromMultiCl.EtaMax = 3.0
60 dqmElectronAnalysisAllElectronsFromMultiCl.EtaMin = -3.0
61 dqmElectronAnalysisAllElectronsFromMultiCl.MaxAbsEta = 3.0
62 dqmElectronAnalysisAllElectronsFromMultiCl.ElectronCollection =
'ecalDrivenGsfElectronsFromMultiCl' 63 dqmElectronAnalysisAllElectronsFromMultiCl.MatchingObjectCollection =
'mergedSuperClustersFromMultiCl' 65 _electronAnalyzerSequenceFromMultiCl = electronAnalyzerSequence.copy()
66 _electronAnalyzerSequenceFromMultiCl += cms.Sequence(mergedSuperClustersFromMultiCl+dqmElectronAnalysisAllElectronsFromMultiCl)
68 from Configuration.Eras.Modifier_phase2_hgcal_cff
import phase2_hgcal
69 phase2_hgcal.toModify( mergedSuperClusters, src = cms.VInputTag( cms.InputTag(
"particleFlowSuperClusterECAL",
"particleFlowSuperClusterECALBarrel"), cms.InputTag(
"particleFlowSuperClusterHGCal",
"") ) )
71 phase2_hgcal.toReplaceWith(
72 electronAnalyzerSequence, _electronAnalyzerSequenceFromMultiCl