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(
22 OutputFolderName =
"Egamma/Electrons/Ele2_All" 24 dqmElectronAnalysisSelectionEt = dqmElectronAnalysis.clone(
26 OutputFolderName =
"Egamma/Electrons/Ele3_Et10" 28 dqmElectronAnalysisSelectionEtIso = dqmElectronAnalysis.clone(
30 OutputFolderName =
"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 mergedSuperClustersHGC = mergedSuperClusters.clone(
53 (
"particleFlowSuperClusterECAL:particleFlowSuperClusterECALBarrel"),
54 (
"particleFlowSuperClusterHGCal")
57 dqmElectronAnalysisAllElectronsHGC = dqmElectronAnalysisAllElectrons.clone(
58 OutputFolderName =
'Egamma/Electrons/Ele2HGC_All',
59 MaxAbsEtaMatchingObject = 3.0,
63 ElectronCollection =
'ecalDrivenGsfElectronsHGC',
64 MatchingObjectCollection =
'mergedSuperClustersHGC' 66 _electronAnalyzerSequenceHGC = electronAnalyzerSequence.copy()
67 _electronAnalyzerSequenceHGC += cms.Sequence(mergedSuperClustersHGC+dqmElectronAnalysisAllElectronsHGC)
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",
"") ) )
72 phase2_hgcal.toReplaceWith(
73 electronAnalyzerSequence, _electronAnalyzerSequenceHGC