Skip to content

Commit

Permalink
Merge pull request #36888 from bsunanda/Phase2-TB66
Browse files Browse the repository at this point in the history
Phase2-TB66 Add selection of SD's for HGCal TB application
  • Loading branch information
cmsbuild committed Feb 14, 2022
2 parents 4e164a9 + 4e5b23b commit e248138
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 58 deletions.
3 changes: 3 additions & 0 deletions Configuration/Eras/python/Modifier_hgcaltb_cff.py
@@ -0,0 +1,3 @@
import FWCore.ParameterSet.Config as cms

hgcaltb = cms.Modifier()
1 change: 1 addition & 0 deletions Geometry/HGCalCommonData/data/TB160/16Module/hgcalCons.xml
Expand Up @@ -161,6 +161,7 @@
<Parameter name="GroupingZOut" value="-1"/>
<Parameter name="GroupingZOut" value="16"/>
<Parameter name="GroupingZOut" value="16"/>
<Parameter name="LayerOffset" value="0"/>
</SpecPar>
</SpecParSection>

Expand Down
1 change: 1 addition & 0 deletions Geometry/HGCalCommonData/data/TB160/4Module/hgcalCons.xml
Expand Up @@ -53,6 +53,7 @@
<Parameter name="GroupingZOut" value="-1"/>
<Parameter name="GroupingZOut" value="4"/>
<Parameter name="GroupingZOut" value="4"/>
<Parameter name="LayerOffset" value="0"/>
</SpecPar>
</SpecParSection>

Expand Down
1 change: 1 addition & 0 deletions Geometry/HGCalCommonData/data/TB160/hgcalCons.xml
Expand Up @@ -270,6 +270,7 @@
<Parameter name="GroupingZOut" value="28"/>
<Parameter name="GroupingZOut" value="28"/>
<Parameter name="LayerOffset" value="0"/>
<Parameter name="LayerOffset" value="0"/>
</SpecPar>
</SpecParSection>

Expand Down
7 changes: 2 additions & 5 deletions SimG4CMS/HGCalTestBeam/test/HGCalTBCERN170_cfg.py
@@ -1,6 +1,7 @@
import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Modifier_hgcaltb_cff import hgcaltb

process = cms.Process('SIM')
process = cms.Process('SIM', hgcaltb)

# import of standard configurations
process.load("FWCore.MessageService.MessageLogger_cfi")
Expand Down Expand Up @@ -95,10 +96,6 @@
process.VtxSmeared.MaxY = 7.5
process.g4SimHits.HGCSD.RejectMouseBite = True
process.g4SimHits.HGCSD.RotatedWafer = True
process.g4SimHits.OnlySDs = ['AHcalSensitiveDetector',
'HGCSensitiveDetector',
'HGCalTB1601SensitiveDetector',
'HcalTB06BeamDetector']
process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
HGCPassive = cms.PSet(
LVNames = cms.vstring('HGCalEE','HGCalHE','HGCalAH', 'HGCalBeam', 'CMSE'),
Expand Down
7 changes: 2 additions & 5 deletions SimG4CMS/HGCalTestBeam/test/HGCalTBCERN181Oct1DD4hep_cfg.py
@@ -1,7 +1,8 @@
import FWCore.ParameterSet.Config as cms
from Configuration.ProcessModifiers.dd4hep_cff import dd4hep
from Configuration.Eras.Modifier_hgcaltb_cff import hgcaltb

process = cms.Process('SIM',dd4hep)
process = cms.Process('SIM',dd4hep,hgcaltb)

# import of standard configurations
process.load("FWCore.MessageService.MessageLogger_cfi")
Expand Down Expand Up @@ -95,10 +96,6 @@
process.VtxSmeared.MaxY = 7.5
process.g4SimHits.HGCSD.RejectMouseBite = True
process.g4SimHits.HGCSD.RotatedWafer = True
process.g4SimHits.OnlySDs = ['AHcalSensitiveDetector',
'HGCSensitiveDetector',
'HGCalTB1601SensitiveDetector',
'HcalTB06BeamDetector']
process.DDDetectorESProducer.confGeomXMLFiles = cms.FileInPath("SimG4CMS/HGCalTestBeam/data/dd4hep/HGCalTB181Oct1.xml")

process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
Expand Down
7 changes: 2 additions & 5 deletions SimG4CMS/HGCalTestBeam/test/HGCalTBCERN181Oct1PC1mm_cfg.py
@@ -1,6 +1,7 @@
import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Modifier_hgcaltb_cff import hgcaltb

process = cms.Process('SIM')
process = cms.Process('SIM', hgcaltb)

# import of standard configurations
process.load("FWCore.MessageService.MessageLogger_cfi")
Expand Down Expand Up @@ -95,10 +96,6 @@
process.VtxSmeared.MaxY = 7.5
process.g4SimHits.HGCSD.RejectMouseBite = True
process.g4SimHits.HGCSD.RotatedWafer = True
process.g4SimHits.OnlySDs = ['AHcalSensitiveDetector',
'HGCSensitiveDetector',
'HGCalTB1601SensitiveDetector',
'HcalTB06BeamDetector']
process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
HGCPassive = cms.PSet(
LVNames = cms.vstring('HGCalEE','HGCalHE','HGCalAH', 'HGCalBeam', 'CMSE'),
Expand Down
7 changes: 2 additions & 5 deletions SimG4CMS/HGCalTestBeam/test/HGCalTBCERN181Oct1_cfg.py
@@ -1,6 +1,7 @@
import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Modifier_hgcaltb_cff import hgcaltb

process = cms.Process('SIM')
process = cms.Process('SIM', hgcaltb)

# import of standard configurations
process.load("FWCore.MessageService.MessageLogger_cfi")
Expand Down Expand Up @@ -94,10 +95,6 @@
process.VtxSmeared.MaxY = 7.5
process.g4SimHits.HGCSD.RejectMouseBite = True
process.g4SimHits.HGCSD.RotatedWafer = True
process.g4SimHits.OnlySDs = ['AHcalSensitiveDetector',
'HGCSensitiveDetector',
'HGCalTB1601SensitiveDetector',
'HcalTB06BeamDetector']
process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
HGCPassive = cms.PSet(
LVNames = cms.vstring('HGCalEE','HGCalHE','HGCalAH', 'HGCalBeam', 'CMSE'),
Expand Down
8 changes: 3 additions & 5 deletions SimG4CMS/HGCalTestBeam/test/HGCalTBCERN181Oct1el100_cfg.py
@@ -1,6 +1,7 @@
import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Modifier_hgcaltb_cff import hgcaltb

process = cms.Process('SIM')
process = cms.Process('SIM', hgcaltb)

# import of standard configurations
process.load("FWCore.MessageService.MessageLogger_cfi")
Expand Down Expand Up @@ -96,10 +97,7 @@
process.VtxSmeared.SigmaZ = 0
process.g4SimHits.HGCSD.RejectMouseBite = True
process.g4SimHits.HGCSD.RotatedWafer = True
process.g4SimHits.OnlySDs = ['AHcalSensitiveDetector',
'HGCSensitiveDetector',
'HGCalTB1601SensitiveDetector',
'HcalTB06BeamDetector']

process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
HGCPassive = cms.PSet(
LVNames = cms.vstring('HGCalEE','HGCalHE','HGCalAH', 'HGCalBeam', 'CMSE'),
Expand Down
7 changes: 2 additions & 5 deletions SimG4CMS/HGCalTestBeam/test/HGCalTBCERN181Oct2_cfg.py
@@ -1,6 +1,7 @@
import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Modifier_hgcaltb_cff import hgcaltb

process = cms.Process('SIM')
process = cms.Process('SIM', hgcaltb)

# import of standard configurations
process.load("FWCore.MessageService.MessageLogger_cfi")
Expand Down Expand Up @@ -94,10 +95,6 @@
process.VtxSmeared.MaxY = 7.5
process.g4SimHits.HGCSD.RejectMouseBite = True
process.g4SimHits.HGCSD.RotatedWafer = True
process.g4SimHits.OnlySDs = ['AHcalSensitiveDetector',
'HGCSensitiveDetector',
'HGCalTB1601SensitiveDetector',
'HcalTB06BeamDetector']
process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
HGCPassive = cms.PSet(
LVNames = cms.vstring('HGCalEE','HGCalHE','HGCalAH', 'HGCalBeam', 'CMSE'),
Expand Down
7 changes: 2 additions & 5 deletions SimG4CMS/HGCalTestBeam/test/HGCalTBCERN181Oct3_cfg.py
@@ -1,6 +1,7 @@
import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Modifier_hgcaltb_cff import hgcaltb

process = cms.Process('SIM')
process = cms.Process('SIM', hgcaltb)

# import of standard configurations
process.load("FWCore.MessageService.MessageLogger_cfi")
Expand Down Expand Up @@ -94,10 +95,6 @@
process.VtxSmeared.MaxY = 7.5
process.g4SimHits.HGCSD.RejectMouseBite = True
process.g4SimHits.HGCSD.RotatedWafer = True
process.g4SimHits.OnlySDs = ['AHcalSensitiveDetector',
'HGCSensitiveDetector',
'HGCalTB1601SensitiveDetector',
'HcalTB06BeamDetector']
process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
HGCPassive = cms.PSet(
LVNames = cms.vstring('HGCalEE','HGCalHE','HGCalAH', 'HGCalBeam', 'CMSE'),
Expand Down
7 changes: 2 additions & 5 deletions SimG4CMS/HGCalTestBeam/test/HGCalTBCERN181Oct4_cfg.py
@@ -1,6 +1,7 @@
import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Modifier_hgcaltb_cff import hgcaltb

process = cms.Process('SIM')
process = cms.Process('SIM', hgcaltb)

# import of standard configurations
process.load("FWCore.MessageService.MessageLogger_cfi")
Expand Down Expand Up @@ -94,10 +95,6 @@
process.VtxSmeared.MaxY = 7.5
process.g4SimHits.HGCSD.RejectMouseBite = True
process.g4SimHits.HGCSD.RotatedWafer = True
process.g4SimHits.OnlySDs = ['AHcalSensitiveDetector',
'HGCSensitiveDetector',
'HGCalTB1601SensitiveDetector',
'HcalTB06BeamDetector']
process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
HGCPassive = cms.PSet(
LVNames = cms.vstring('HGCalEE','HGCalHE','HGCalAH', 'HGCalBeam', 'CMSE'),
Expand Down
7 changes: 2 additions & 5 deletions SimG4CMS/HGCalTestBeam/test/HGCalTBCERN181_cfg.py
@@ -1,6 +1,7 @@
import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Modifier_hgcaltb_cff import hgcaltb

process = cms.Process('SIM')
process = cms.Process('SIM', hgcaltb)

# import of standard configurations
process.load("FWCore.MessageService.MessageLogger_cfi")
Expand Down Expand Up @@ -75,10 +76,6 @@
process.VtxSmeared.MaxY = 7.5
process.g4SimHits.HGCSD.RejectMouseBite = True
process.g4SimHits.HGCSD.RotatedWafer = True
process.g4SimHits.OnlySDs = ['AHcalSensitiveDetector',
'HGCSensitiveDetector',
'HGCalTB1601SensitiveDetector',
'HcalTB06BeamDetector']

# Path and EndPath definitions
process.generation_step = cms.Path(process.pgen)
Expand Down
6 changes: 2 additions & 4 deletions SimG4CMS/HGCalTestBeam/test/HGCalTBGenSimCERN_cfg.py
@@ -1,6 +1,7 @@
import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Modifier_hgcaltb_cff import hgcaltb

process = cms.Process('SIM')
process = cms.Process('SIM', hgcaltb)

# import of standard configurations
process.load('Configuration.StandardSequences.Services_cff')
Expand Down Expand Up @@ -101,9 +102,6 @@
process.VtxSmeared.MaxY = 7.5
process.HGCalTBAnalyzer.doDigis = False
process.HGCalTBAnalyzer.doRecHits = False
process.g4SimHits.OnlySDs = ['HGCSensitiveDetector',
'HcalTB06BeamDetector',
'HGCalTB1601SensitiveDetector']
process.g4SimHits.HGCSD.Detectors = 1
process.g4SimHits.HGCSD.UseDetector = 1

Expand Down
7 changes: 2 additions & 5 deletions SimG4CMS/HGCalTestBeam/test/HGCalTBGenSimMBNew_cfg.py
@@ -1,7 +1,8 @@
import FWCore.ParameterSet.Config as cms

from Configuration.Eras.Era_Phase2_cff import Phase2
process = cms.Process('SIM',Phase2)
from Configuration.Eras.Modifier_hgcaltb_cff import hgcaltb
process = cms.Process('SIM',Phase2,hgcaltb)

# import of standard configurations
process.load('Configuration.StandardSequences.Services_cff')
Expand Down Expand Up @@ -97,10 +98,6 @@
process.HGCalTBAnalyzer.doDigis = False
process.HGCalTBAnalyzer.doRecHits = False
process.g4SimHits.StackingAction.TrackNeutrino = True
process.g4SimHits.OnlySDs = ['AHcalSensitiveDetector',
'HGCSensitiveDetector',
'HGCalTB1601SensitiveDetector',
'HcalTB06BeamDetector']

# Path and EndPath definitions
process.generation_step = cms.Path(process.pgen)
Expand Down
8 changes: 4 additions & 4 deletions SimG4CMS/HGCalTestBeam/test/HGCalTBTimingGenSim_cfg.py
@@ -1,6 +1,7 @@
import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Modifier_hgcaltb_cff import hgcaltb

process = cms.Process('SIM')
process = cms.Process('SIM', hgcaltb)

# import of standard configurations
process.load('Configuration.StandardSequences.Services_cff')
Expand All @@ -22,7 +23,7 @@
process.load('SimG4CMS.HGCalTestBeam.HGCalTimingAnalyzer_cfi')

process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(1)
input = cms.untracked.int32(10)
)

process.MessageLogger = cms.Service("MessageLogger",
Expand Down Expand Up @@ -102,8 +103,7 @@
process.VtxSmeared.MaxY = 7.5
process.g4SimHits.HGCSD.StoreAllG4Hits = True
process.HGCalTimingAnalyzer.GroupHits = False
process.g4SimHits.OnlySDs = ['HGCSensitiveDetector',
'HcalTB06BeamDetector']

process.g4SimHits.HGCSD.Detectors = 1
process.g4SimHits.HGCSD.UseDetector = 1

Expand Down
5 changes: 5 additions & 0 deletions SimG4Core/Application/python/g4SimHits_cfi.py
Expand Up @@ -682,3 +682,8 @@
MuonSD = dict(
HaveDemoChambers = False )
)

from Configuration.Eras.Modifier_hgcaltb_cff import hgcaltb
hgcaltb.toModify(g4SimHits,
OnlySDs = ['AHcalSensitiveDetector', 'HGCSensitiveDetector', 'HGCalTB1601SensitiveDetector', 'HcalTB06BeamDetector']
)

0 comments on commit e248138

Please sign in to comment.