-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 #37134 from ssrothman/photon_rebase2
Dynamic Reduction Network for photon energy regression in miniAOD using the SonicTriton service
- Loading branch information
Showing
11 changed files
with
732 additions
and
0 deletions.
There are no files selected for viewing
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,9 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
from Configuration.ProcessModifiers.enableSonicTriton_cff import enableSonicTriton | ||
|
||
#behind-the-scenes modifier that only turns on the DRN photon regression | ||
_photonDRN = cms.Modifier() | ||
|
||
#modifier to enable DRN energy regression for photons | ||
#requires also having enableSonicTriton | ||
photonDRN = cms.ModifierChain(_photonDRN, enableSonicTriton) |
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
15 changes: 15 additions & 0 deletions
15
PhysicsTools/PatAlgos/python/slimming/patElectronDRNCorrector_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,15 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from RecoEgamma.EgammaTools.patElectronDRNCorrectionProducer_cfi import patElectronDRNCorrectionProducer | ||
|
||
patElectronsDRN = patElectronDRNCorrectionProducer.clone( | ||
particleSource = 'selectedPatElectrons', | ||
rhoName = 'fixedGridRhoFastjetAll', | ||
Client = patElectronDRNCorrectionProducer.Client.clone( | ||
mode = 'Async', | ||
allowedTries = 1, | ||
modelName = 'electronObjectEnsemble', | ||
modelConfigPath = 'RecoEgamma/EgammaElectronProducers/data/models/electronObjectEnsemble/config.pbtxt', | ||
timeout = 10 | ||
) | ||
) |
14 changes: 14 additions & 0 deletions
14
PhysicsTools/PatAlgos/python/slimming/patPhotonDRNCorrector_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,14 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
from RecoEgamma.EgammaTools.patPhotonDRNCorrectionProducer_cfi import patPhotonDRNCorrectionProducer | ||
|
||
patPhotonsDRN = patPhotonDRNCorrectionProducer.clone( | ||
particleSource = 'selectedPatPhotons', | ||
rhoName = 'fixedGridRhoFastjetAll', | ||
Client = patPhotonDRNCorrectionProducer.Client.clone( | ||
mode = 'Async', | ||
allowedTries = 1, | ||
modelName = 'photonObjectEnsemble', | ||
modelConfigPath = 'RecoEgamma/EgammaPhotonProducers/data/models/photonObjectEnsemble/config.pbtxt', | ||
timeout = 10 | ||
) | ||
) |
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
Oops, something went wrong.