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