Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32826 from lecriste/removeDuplication
Reverse dependency
- Loading branch information
Showing
9 changed files
with
55 additions
and
48 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
SimCalorimetry/HGCalAssociatorProducers/interface/AssociatorTools.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
void removeCPFromPU(const std::vector<CaloParticle>& caloParticles, std::vector<size_t>& cPIndices) { | ||
//Consider CaloParticles coming from the hard scatterer | ||
//excluding the PU contribution and save the indices. | ||
for (unsigned int cpId = 0; cpId < caloParticles.size(); ++cpId) { | ||
if (caloParticles[cpId].g4Tracks()[0].eventId().event() != 0 or | ||
caloParticles[cpId].g4Tracks()[0].eventId().bunchCrossing() != 0) { | ||
LogDebug("HGCalValidator") << "Excluding CaloParticles from event: " | ||
<< caloParticles[cpId].g4Tracks()[0].eventId().event() | ||
<< " with BX: " << caloParticles[cpId].g4Tracks()[0].eventId().bunchCrossing() | ||
<< std::endl; | ||
continue; | ||
} | ||
cPIndices.emplace_back(cpId); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
SimCalorimetry/HGCalAssociatorProducers/python/LCToCPAssociation_cfi.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
layerClusterCaloParticleAssociation = cms.EDProducer("LCToCPAssociatorEDProducer", | ||
associator = cms.InputTag('lcAssocByEnergyScoreProducer'), | ||
label_cp = cms.InputTag("mix","MergedCaloTruth"), | ||
label_lc = cms.InputTag("hgcalLayerClusters") | ||
) | ||
|
||
from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2 | ||
premix_stage2.toModify(layerClusterCaloParticleAssociation, | ||
label_cp = "mixData:MergedCaloTruth" | ||
) |
12 changes: 12 additions & 0 deletions
12
SimCalorimetry/HGCalAssociatorProducers/python/LCToSCAssociation_cfi.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
layerClusterSimClusterAssociation = cms.EDProducer("LCToSCAssociatorEDProducer", | ||
associator = cms.InputTag('scAssocByEnergyScoreProducer'), | ||
label_scl = cms.InputTag("mix","MergedCaloTruth"), | ||
label_lcl = cms.InputTag("hgcalLayerClusters") | ||
) | ||
|
||
from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2 | ||
premix_stage2.toModify(layerClusterSimClusterAssociation, | ||
label_scl = "mixData:MergedCaloTruth" | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters