Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:09:23

0001 
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 mergedSuperClusters = cms.EDProducer("SuperClusterMerger",
0005   src = cms.VInputTag( 
0006 #    cms.InputTag("correctedHybridSuperClusters"),
0007 #    cms.InputTag("correctedMulti5x5SuperClustersWithPreshower")
0008      cms.InputTag("particleFlowSuperClusterECAL","particleFlowSuperClusterECALBarrel"),
0009      cms.InputTag("particleFlowSuperClusterECAL","particleFlowSuperClusterECALEndcapWithPreshower")
0010   )
0011 )
0012 
0013 from DQMOffline.EGamma.electronGeneralAnalyzer_cfi import *
0014 dqmElectronGeneralAnalysis.OutputFolderName = cms.string("Egamma/Electrons/Ele1_General") ;
0015 
0016 from DQMOffline.EGamma.electronAnalyzer_cfi import *
0017 dqmElectronAnalysis.MinEt = cms.double(10.) ;
0018 dqmElectronAnalysis.MaxTkIso03 = cms.double(1.) ;
0019 
0020 dqmElectronAnalysisAllElectrons = dqmElectronAnalysis.clone(
0021     Selection = 0,
0022     OutputFolderName = "Egamma/Electrons/Ele2_All"
0023 )
0024 dqmElectronAnalysisSelectionEt = dqmElectronAnalysis.clone(
0025     Selection = 1,
0026     OutputFolderName = "Egamma/Electrons/Ele3_Et10"
0027 )
0028 dqmElectronAnalysisSelectionEtIso = dqmElectronAnalysis.clone(
0029     Selection = 2,
0030     OutputFolderName = "Egamma/Electrons/Ele4_Et10TkIso1"
0031 )
0032 #dqmElectronAnalysisSelectionEtIsoElID = dqmElectronAnalysis.clone() ;
0033 #dqmElectronAnalysisSelectionEtIsoElID.Selection = 3 ;
0034 #dqmElectronAnalysisSelectionEtIsoElID.OutputFolderName = cms.string("Egamma/Electrons/Ele4_Et10TkIso1ElID") ;
0035 
0036 from DQMOffline.EGamma.electronTagProbeAnalyzer_cfi import *
0037 dqmElectronTagProbeAnalysis.MinEt = cms.double(10.) ;
0038 dqmElectronTagProbeAnalysis.MaxTkIso03 = cms.double(1.) ;
0039 dqmElectronTagProbeAnalysis.OutputFolderName = cms.string("Egamma/Electrons/Ele5_TagAndProbe") ;
0040 
0041 electronAnalyzerSequence = cms.Sequence(
0042    mergedSuperClusters
0043  * dqmElectronGeneralAnalysis
0044  * dqmElectronAnalysisAllElectrons
0045  * dqmElectronAnalysisSelectionEt
0046  * dqmElectronAnalysisSelectionEtIso
0047 # * dqmElectronAnalysisSelectionEtIsoElID
0048  * dqmElectronTagProbeAnalysis
0049 )
0050 
0051 mergedSuperClustersHGC = mergedSuperClusters.clone(
0052     src = (
0053         ("particleFlowSuperClusterECAL:particleFlowSuperClusterECALBarrel"),
0054         ("particleFlowSuperClusterHGCal")
0055     )
0056  )
0057 dqmElectronAnalysisAllElectronsHGC = dqmElectronAnalysisAllElectrons.clone(
0058     OutputFolderName = 'Egamma/Electrons/Ele2HGC_All',
0059     MaxAbsEtaMatchingObject = 3.0,
0060     EtaMax = 3.0,
0061     EtaMin = -3.0,
0062     MaxAbsEta = 3.0,
0063     ElectronCollection = 'ecalDrivenGsfElectronsHGC',
0064     MatchingObjectCollection = 'mergedSuperClustersHGC'
0065 )
0066 _electronAnalyzerSequenceHGC = electronAnalyzerSequence.copy()
0067 _electronAnalyzerSequenceHGC += cms.Sequence(mergedSuperClustersHGC+dqmElectronAnalysisAllElectronsHGC)
0068 
0069 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
0070 phase2_hgcal.toModify( mergedSuperClusters, src = cms.VInputTag( cms.InputTag("particleFlowSuperClusterECAL","particleFlowSuperClusterECALBarrel"), cms.InputTag("particleFlowSuperClusterHGCal","") ) )
0071 
0072 phase2_hgcal.toReplaceWith(
0073 electronAnalyzerSequence, _electronAnalyzerSequenceHGC
0074 )
0075 
0076