Skip to content

Commit

Permalink
restrict caloParticle to HFnose; customize the associations
Browse files Browse the repository at this point in the history
  • Loading branch information
mariadalfonso committed Mar 14, 2021
1 parent cf964a2 commit f1dfd44
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
premix_stage2.toModify(layerClusterCaloParticleAssociation,
label_cp = "mixData:MergedCaloTruth"
)

layerClusterCaloParticleAssociationHFNose = layerClusterCaloParticleAssociation.clone(
label_lc = "hgcalLayerClustersHFNose"
)
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
premix_stage2.toModify(layerClusterSimClusterAssociation,
label_scl = "mixData:MergedCaloTruth"
)

layerClusterSimClusterAssociationHFNose = layerClusterSimClusterAssociation.clone(
label_lcl = "hgcalLayerClustersHFNose"
)
2 changes: 1 addition & 1 deletion SimGeneral/MixingModule/python/caloTruthProducer_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
caloParticles,
simHitCollections = dict(
hgc = caloParticles.simHitCollections.hgc + [cms.InputTag('g4SimHits','HFNoseHits')],
hcal = cms.VInputTag(cms.InputTag('g4SimHits','HcalHits'))
# hcal = cms.VInputTag(cms.InputTag('g4SimHits','HcalHits'))
)
)

Expand Down
5 changes: 5 additions & 0 deletions Validation/Configuration/python/hgcalSimValid_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
from SimCalorimetry.HGCalSimProducers.hgcHitAssociation_cfi import lcAssocByEnergyScoreProducer, scAssocByEnergyScoreProducer
from SimCalorimetry.HGCalAssociatorProducers.LCToCPAssociation_cfi import layerClusterCaloParticleAssociation as layerClusterCaloParticleAssociationProducer
from SimCalorimetry.HGCalAssociatorProducers.LCToSCAssociation_cfi import layerClusterSimClusterAssociation as layerClusterSimClusterAssociationProducer
from SimCalorimetry.HGCalAssociatorProducers.LCToCPAssociation_cfi import layerClusterCaloParticleAssociationHFNose as layerClusterCaloParticleAssociationProducerHFNose
from SimCalorimetry.HGCalAssociatorProducers.LCToSCAssociation_cfi import layerClusterSimClusterAssociationHFNose as layerClusterSimClusterAssociationProducerHFNose

from Validation.HGCalValidation.simhitValidation_cff import *
from Validation.HGCalValidation.digiValidation_cff import *
Expand Down Expand Up @@ -37,3 +39,6 @@
+ hgcalValidatorSequence
+ hgcalTiclPFValidation
+ hgcalPFJetValidation)

_hfnose_hgcalAssociatorsTask = hgcalAssociators.copy()
_hfnose_hgcalAssociatorsTask.add(layerClusterCaloParticleAssociationProducerHFNose, layerClusterSimClusterAssociationProducerHFNose)

0 comments on commit f1dfd44

Please sign in to comment.