CMS 3D CMS Logo

hgcalSimValid_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from SimCalorimetry.HGCalSimProducers.hgcHitAssociation_cfi import lcAssocByEnergyScoreProducer, scAssocByEnergyScoreProducer
4 from SimCalorimetry.HGCalAssociatorProducers.LCToCPAssociation_cfi import layerClusterCaloParticleAssociation as layerClusterCaloParticleAssociationProducer
5 from SimCalorimetry.HGCalAssociatorProducers.LCToSCAssociation_cfi import layerClusterSimClusterAssociation as layerClusterSimClusterAssociationProducer
6 from SimCalorimetry.HGCalAssociatorProducers.LCToCPAssociation_cfi import layerClusterCaloParticleAssociationHFNose as layerClusterCaloParticleAssociationProducerHFNose
7 from SimCalorimetry.HGCalAssociatorProducers.LCToSCAssociation_cfi import layerClusterSimClusterAssociationHFNose as layerClusterSimClusterAssociationProducerHFNose
8 # from SimCalorimetry.HGCalAssociatorProducers.TSToSimTSAssociation_cfi import tracksterSimTracksterAssociationLinkingSuperclustering, tracksterSimTracksterAssociationPRSuperclustering #, tracksterSimTracksterAssociationLinkingbyCLUE3DEM, tracksterSimTracksterAssociationLinkingbyCLUE3DHAD, tracksterSimTracksterAssociationPRbyCLUE3DEM, tracksterSimTracksterAssociationPRbyCLUE3DHAD
9 from RecoHGCal.TICL.mergedTrackstersProducer_cfi import mergedTrackstersProducer as _mergedTrackstersProducer
11 
12 
13 # FP 07/2024: new associators:
14 from SimCalorimetry.HGCalAssociatorProducers.LCToTSAssociator_cfi import allLayerClusterToTracksterAssociations
15 from SimCalorimetry.HGCalAssociatorProducers.HitToTracksterAssociation_cfi import allHitToTracksterAssociations
16 from SimCalorimetry.HGCalAssociatorProducers.TSToSimTSAssociation_cfi import allTrackstersToSimTrackstersAssociationsByLCs
17 from SimCalorimetry.HGCalAssociatorProducers.TSToSimTSAssociationByHits_cfi import allTrackstersToSimTrackstersAssociationsByHits
18 from SimCalorimetry.HGCalAssociatorProducers.hitToSimClusterCaloParticleAssociator_cfi import hitToSimClusterCaloParticleAssociator
19 from SimCalorimetry.HGCalAssociatorProducers.SimClusterToCaloParticleAssociation_cfi import SimClusterToCaloParticleAssociation
20 
21 
27 
28 
29 from Validation.HGCalValidation.HGCalValidator_cff import hgcalValidator
30 from Validation.RecoParticleFlow.PFJetValidation_cff import pfJetValidation1 as _hgcalPFJetValidation
31 
32 from Validation.HGCalValidation.ticlPFValidation_cfi import ticlPFValidation
33 hgcalTiclPFValidation = cms.Sequence(ticlPFValidation)
34 
35 from Validation.HGCalValidation.ticlTrackstersEdgesValidation_cfi import ticlTrackstersEdgesValidation
36 hgcalTiclTrackstersEdgesValidationSequence = cms.Sequence(ticlTrackstersEdgesValidation)
37 
38 hgcalValidatorSequence = cms.Sequence(hgcalValidator)
39 hgcalPFJetValidation = _hgcalPFJetValidation.clone(BenchmarkLabel = 'PFJetValidation/HGCAlCompWithGenJet',
40  VariablePtBins=[10., 30., 80., 120., 250., 600.],
41  DeltaPtOvPtHistoParameter = dict(EROn=True,EREtaMax=3.0, EREtaMin=1.6, slicingOn=True))
42 
43 hgcalAssociators = cms.Task(lcAssocByEnergyScoreProducer, layerClusterCaloParticleAssociationProducer,
44  scAssocByEnergyScoreProducer, layerClusterSimClusterAssociationProducer,
45  SimTauProducer,
46  # FP 07/2024 new associators:
47  # layerClusterToCLUE3DTracksterAssociation, layerClusterToTracksterMergeAssociation,
48  # layerClusterToSimTracksterAssociation, layerClusterToSimTracksterFromCPsAssociation,
49  allLayerClusterToTracksterAssociations, allHitToTracksterAssociations, allTrackstersToSimTrackstersAssociationsByLCs, allTrackstersToSimTrackstersAssociationsByHits,
50  # hitToTrackstersAssociationLinking, hitToTrackstersAssociationPR,
51  # hitToSimTracksterAssociation, hitToSimTracksterFromCPsAssociation,
52  hitToSimClusterCaloParticleAssociator,
53  SimClusterToCaloParticleAssociation,
54  )
55 
56 from Configuration.ProcessModifiers.ticl_v5_cff import ticl_v5
57 from Configuration.ProcessModifiers.ticl_superclustering_mustache_pf_cff import ticl_superclustering_mustache_pf
58 
59 
60 hgcalValidation = cms.Sequence(hgcalSimHitValidationEE
61  + hgcalSimHitValidationHEF
62  + hgcalSimHitValidationHEB
63  + hgcalDigiValidationEE
64  + hgcalDigiValidationHEF
65  + hgcalDigiValidationHEB
66  + hgcalRecHitValidationEE
67  + hgcalRecHitValidationHEF
68  + hgcalRecHitValidationHEB
69  + hgcalHitValidationSequence
70  + hgcalValidatorSequence
71  + hgcalTiclPFValidation
72  #Currently commented out until trackster edges are saved
73 # + hgcalTiclTrackstersEdgesValidationSequence
74  + hgcalPFJetValidation)
75 
76 _hfnose_hgcalAssociatorsTask = hgcalAssociators.copy()
77 _hfnose_hgcalAssociatorsTask.add(layerClusterCaloParticleAssociationProducerHFNose, layerClusterSimClusterAssociationProducerHFNose)