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.simTracksterAssociatorByEnergyScore_cfi import simTracksterAssociatorByEnergyScore as simTsAssocByEnergyScoreProducer
5 from SimCalorimetry.HGCalAssociatorProducers.layerClusterSimTracksterAssociatorByEnergyScore_cfi import layerClusterSimTracksterAssociatorByEnergyScore as lcSimTSAssocByEnergyScoreProducer
6 from SimCalorimetry.HGCalAssociatorProducers.LCToCPAssociation_cfi import layerClusterCaloParticleAssociation as layerClusterCaloParticleAssociationProducer
7 from SimCalorimetry.HGCalAssociatorProducers.simTracksterHitLCAssociatorByEnergyScore_cfi import simTracksterHitLCAssociatorByEnergyScore as simTracksterHitLCAssociatorByEnergyScoreProducer
8 from SimCalorimetry.HGCalAssociatorProducers.LCToSCAssociation_cfi import layerClusterSimClusterAssociation as layerClusterSimClusterAssociationProducer
9 from SimCalorimetry.HGCalAssociatorProducers.LCToSimTSAssociation_cfi import layerClusterSimTracksterAssociation as layerClusterSimTracksterAssociationProducer
10 from SimCalorimetry.HGCalAssociatorProducers.LCToCPAssociation_cfi import layerClusterCaloParticleAssociationHFNose as layerClusterCaloParticleAssociationProducerHFNose
11 from SimCalorimetry.HGCalAssociatorProducers.LCToSCAssociation_cfi import layerClusterSimClusterAssociationHFNose as layerClusterSimClusterAssociationProducerHFNose
12 from SimCalorimetry.HGCalAssociatorProducers.TSToSimTSAssociation_cfi import tracksterSimTracksterAssociationLinking, tracksterSimTracksterAssociationPR,tracksterSimTracksterAssociationLinkingbyCLUE3D, tracksterSimTracksterAssociationPRbyCLUE3D, tracksterSimTracksterAssociationLinkingPU, tracksterSimTracksterAssociationPRPU
14 
20 
21 
22 from Validation.HGCalValidation.HGCalValidator_cfi import hgcalValidator
23 from Validation.RecoParticleFlow.PFJetValidation_cff import pfJetValidation1 as _hgcalPFJetValidation
24 
25 from Validation.HGCalValidation.ticlPFValidation_cfi import ticlPFValidation
26 hgcalTiclPFValidation = cms.Sequence(ticlPFValidation)
27 
28 from Validation.HGCalValidation.ticlTrackstersEdgesValidation_cfi import ticlTrackstersEdgesValidation
29 hgcalTiclTrackstersEdgesValidationSequence = cms.Sequence(ticlTrackstersEdgesValidation)
30 
31 hgcalValidatorSequence = cms.Sequence(hgcalValidator)
32 hgcalPFJetValidation = _hgcalPFJetValidation.clone(BenchmarkLabel = 'PFJetValidation/HGCAlCompWithGenJet',
33  VariablePtBins=[10., 30., 80., 120., 250., 600.],
34  DeltaPtOvPtHistoParameter = dict(EROn=True,EREtaMax=3.0, EREtaMin=1.6, slicingOn=True))
35 
36 hgcalAssociators = cms.Task(lcAssocByEnergyScoreProducer, layerClusterCaloParticleAssociationProducer,
37  scAssocByEnergyScoreProducer, layerClusterSimClusterAssociationProducer,
38  lcSimTSAssocByEnergyScoreProducer, layerClusterSimTracksterAssociationProducer,
39  simTsAssocByEnergyScoreProducer, simTracksterHitLCAssociatorByEnergyScoreProducer,
40  tracksterSimTracksterAssociationLinking, tracksterSimTracksterAssociationPR,
41  tracksterSimTracksterAssociationLinkingbyCLUE3D, tracksterSimTracksterAssociationPRbyCLUE3D,
42  tracksterSimTracksterAssociationLinkingPU, tracksterSimTracksterAssociationPRPU,
43  SimTauProducer
44  )
45 
46 hgcalValidation = cms.Sequence(hgcalSimHitValidationEE
47  + hgcalSimHitValidationHEF
48  + hgcalSimHitValidationHEB
49  + hgcalDigiValidationEE
50  + hgcalDigiValidationHEF
51  + hgcalDigiValidationHEB
52  + hgcalRecHitValidationEE
53  + hgcalRecHitValidationHEF
54  + hgcalRecHitValidationHEB
55  + hgcalHitValidationSequence
56  + hgcalValidatorSequence
57  + hgcalTiclPFValidation
58  #Currently commented out until trackster edges are saved
59 # + hgcalTiclTrackstersEdgesValidationSequence
60  + hgcalPFJetValidation)
61 
62 _hfnose_hgcalAssociatorsTask = hgcalAssociators.copy()
63 _hfnose_hgcalAssociatorsTask.add(layerClusterCaloParticleAssociationProducerHFNose, layerClusterSimClusterAssociationProducerHFNose)