Skip to content

Commit

Permalink
Merge pull request #13822 from bsunanda/Run2-hcx76
Browse files Browse the repository at this point in the history
bsunanda:Run2-hcx76 Remove obsolete parameter definitions for relabelling at DIGI step
  • Loading branch information
davidlange6 committed Mar 30, 2016
2 parents f9005a1 + 7a535b7 commit 3da0c18
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 53 deletions.
Expand Up @@ -4,5 +4,3 @@
applyAlignment = cms.bool(False)
)

import Geometry.HcalEventSetup.hcalTopologyConstants_cfi as hcalTopologyConstants_cfi
CaloTowerGeometryFromDBEP.hcalTopologyConstants = cms.PSet(hcalTopologyConstants_cfi.hcalTopologyConstants)
2 changes: 0 additions & 2 deletions Geometry/HcalEventSetup/python/HcalGeometryDBReader_cfi.py
Expand Up @@ -3,8 +3,6 @@
HcalGeometryFromDBEP = cms.ESProducer("HcalGeometryFromDBEP",
applyAlignment = cms.bool(False)
)
import Geometry.HcalEventSetup.hcalTopologyConstants_cfi as hcalTopologyConstants_cfi
HcalGeometryFromDBEP.hcalTopologyConstants = cms.PSet(hcalTopologyConstants_cfi.hcalTopologyConstants)

HcalAlignmentEP = cms.ESProducer("HcalAlignmentEP")

7 changes: 2 additions & 5 deletions Geometry/HcalEventSetup/python/HcalGeometryDBWriter_cfi.py
@@ -1,15 +1,12 @@
import FWCore.ParameterSet.Config as cms
from Geometry.HcalEventSetup.HcalRelabel_cfi import HcalReLabel

HcalHardcodeGeometryEP = cms.ESProducer( "HcalHardcodeGeometryEP" ,
appendToDataLabel = cms.string("_master"),
UseOldLoader = cms.bool(False),
HcalReLabel = HcalReLabel
UseOldLoader = cms.bool(False)
)

HcalGeometryToDBEP = cms.ESProducer( "HcalGeometryToDBEP" ,
applyAlignment = cms.bool(False) ,
appendToDataLabel = cms.string("_toDB"),
HcalReLabel = HcalReLabel
appendToDataLabel = cms.string("_toDB")
)

6 changes: 2 additions & 4 deletions Geometry/HcalEventSetup/python/HcalGeometry_cfi.py
@@ -1,7 +1,5 @@
import FWCore.ParameterSet.Config as cms
from Geometry.HcalEventSetup.HcalRelabel_cfi import HcalReLabel

HcalHardcodeGeometryEP = cms.ESProducer("HcalHardcodeGeometryEP" ,
UseOldLoader = cms.bool(False),
HcalReLabel = HcalReLabel
)
UseOldLoader = cms.bool(False)
)
4 changes: 1 addition & 3 deletions Geometry/HcalEventSetup/python/HcalHardcodeGeometry_cfi.py
@@ -1,10 +1,8 @@
import FWCore.ParameterSet.Config as cms
from Geometry.HcalEventSetup.HcalRelabel_cfi import HcalReLabel

HcalHardcodeGeometryEP = cms.ESProducer("HcalHardcodeGeometryEP" ,
appendToDataLabel = cms.string("_master"),
UseOldLoader = cms.bool(False),
HcalReLabel = HcalReLabel
UseOldLoader = cms.bool(False)
)

HcalGeometryFromDBEP = cms.ESProducer("HcalGeometryFromDBEP",
Expand Down
6 changes: 0 additions & 6 deletions Geometry/HcalEventSetup/python/HcalRelabel_cfi.py
Expand Up @@ -2,10 +2,4 @@

HcalReLabel = cms.PSet(
RelabelHits = cms.untracked.bool(False),
RelabelRules = cms.untracked.PSet(
CorrectPhi = cms.untracked.bool(False),
Eta1 = cms.untracked.vint32(1,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3),
Eta16 = cms.untracked.vint32(1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3),
Eta17 = cms.untracked.vint32(1,1,2,2,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5)
)
)
3 changes: 0 additions & 3 deletions Geometry/HcalEventSetup/python/HcalTrigTowerGeometry_cfi.py
Expand Up @@ -3,6 +3,3 @@
import Geometry.HcalEventSetup.hcalTrigTowerGeometry_cfi

hcalTrigTowerGeometry = Geometry.HcalEventSetup.hcalTrigTowerGeometry_cfi.hcalTrigTowerGeometry.clone()

import Geometry.HcalEventSetup.hcalTopologyConstants_cfi as hcalTopologyConstants_cfi
hcalTrigTowerGeometry.hcalTopologyConstants = cms.PSet(hcalTopologyConstants_cfi.hcalTopologyConstants)
@@ -1,5 +1,4 @@
import FWCore.ParameterSet.Config as cms
from Geometry.HcalEventSetup.HcalRelabel_cfi import HcalReLabel

process = cms.Process("CaloTowerGeometryTest")

Expand Down
1 change: 0 additions & 1 deletion Geometry/HcalTowerAlgo/test/runHcalGeometryAnalyzer_cfg.py
@@ -1,5 +1,4 @@
import FWCore.ParameterSet.Config as cms
from Geometry.HcalEventSetup.HcalRelabel_cfi import HcalReLabel

process = cms.Process("HcalGeometryTest")

Expand Down
16 changes: 8 additions & 8 deletions Geometry/HcalTowerAlgo/test/runHcalTransGeometryAnalyzer_cfg.py
@@ -1,23 +1,23 @@
import FWCore.ParameterSet.Config as cms
from Geometry.HcalEventSetup.HcalRelabel_cfi import HcalReLabel

process = cms.Process("HcalGeometryTest")

process.load("Configuration.Geometry.GeometryExtendedPostLS2_cff")
process.load("Configuration.Geometry.GeometryExtended2023_cff")
process.load("Geometry.HcalCommonData.hcalDDConstants_cff")
process.load("Geometry.HcalEventSetup.hcalTopologyIdeal_cfi")

process.HcalHardcodeGeometryEP = cms.ESProducer( "HcalHardcodeGeometryEP" ,
appendToDataLabel = cms.string("_master"),
HcalReLabel = HcalReLabel
)
process.HcalHardcodeGeometryEP = cms.ESProducer("HcalHardcodeGeometryEP" ,
UseOldLoader = cms.bool(False),
appendToDataLabel = cms.string("_master")
)
process.source = cms.Source("EmptySource")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(1)
)

process.hga = cms.EDAnalyzer("HcalGeometryAnalyzer",
HcalReLabel = HcalReLabel,
HCALGeometryLabel = cms.string("_master"))
UseOldLoader = cms.bool(False),
GeometryFromDB = cms.bool(False))

process.Timing = cms.Service("Timing")
process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck")
Expand Down
Expand Up @@ -253,9 +253,6 @@ def customise_wo_pairs(process):
return (process)

def turnOffLegacyPhiCorrection(process):
process.simHcalUnsuppressedDigis.HcalReLabel.RelabelRules.CorrectPhi = cms.untracked.bool(False)
process.HcalHardcodeGeometryEP.HcalReLabel.RelabelRules.CorrectPhi = cms.untracked.bool(False)
process.HcalReLabel.RelabelRules.CorrectPhi = cms.untracked.bool(False)
return (process)

def customise_pu15_25ns_wo_pairs(process):
Expand Down
Expand Up @@ -67,12 +67,6 @@

#turn on hit relabeling and set depth segmentation
HcalReLabel.RelabelHits = cms.untracked.bool(True)
HcalReLabel.RelabelRules = cms.untracked.PSet(
CorrectPhi = cms.untracked.bool(True),
Eta1 = cms.untracked.vint32(1,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,5,5),
Eta16 = cms.untracked.vint32(1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3),
Eta17 = cms.untracked.vint32(1,1,2,2,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5)
)

#
doAllDigi = cms.Sequence(trDigi+calDigi+muonDigi)
Expand Down
Expand Up @@ -67,12 +67,6 @@

#turn on hit relabeling and set depth segmentation
HcalReLabel.RelabelHits = cms.untracked.bool(True)
HcalReLabel.RelabelRules = cms.untracked.PSet(
CorrectPhi = cms.untracked.bool(True),
Eta1 = cms.untracked.vint32(1,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,5,5),
Eta16 = cms.untracked.vint32(1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3),
Eta17 = cms.untracked.vint32(1,1,2,2,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5)
)

#
doAllDigi = cms.Sequence(trDigi+calDigi+muonDigi)
Expand Down
4 changes: 1 addition & 3 deletions SimCalorimetry/HcalSimProducers/src/HcalDigitizer.cc
Expand Up @@ -288,9 +288,7 @@ HcalDigitizer::HcalDigitizer(const edm::ParameterSet& ps, edm::ConsumesCollector
edm::ParameterSet ps0 = ps.getParameter<edm::ParameterSet>("HcalReLabel");
relabel_ = ps0.getUntrackedParameter<bool>("RelabelHits");
// std::cout << "Flag to see if Hit Relabeller to be initiated " << relabel_ << std::endl;
if (relabel_) {
theRelabeller=new HcalHitRelabeller(ps0.getUntrackedParameter<edm::ParameterSet>("RelabelRules"));
}
if (relabel_) theRelabeller=new HcalHitRelabeller(ps0);

bool doHPDNoise = ps.getParameter<bool>("doHPDNoise");
if(doHPDNoise) {
Expand Down

0 comments on commit 3da0c18

Please sign in to comment.