-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Phase2-TB63Z Rearrange the header file and make first example for dd4hep (replacing #34752) #34791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,39 @@ | ||
| <?xml version="1.0"?> | ||
|
|
||
| <DDDefinition> | ||
| <debug> | ||
| <!-- | ||
| <debug_shapes/> | ||
| <debug_rotations/> | ||
| <debug_volumes/> | ||
| <debug_placements/> | ||
| <debug_algorithms/> | ||
| <debug_constants/> | ||
| <debug_includes/> | ||
| <debug_materials/> | ||
| <debug_namespaces/> | ||
| <debug_visattr/> | ||
| --> | ||
| </debug> | ||
|
|
||
| <open_geometry/> | ||
| <close_geometry/> | ||
|
|
||
| <IncludeSection> | ||
| <Include ref='Geometry/CMSCommonData/data/materials/2021/v2/materials.xml'/> | ||
| <Include ref='SimG4CMS/CherenkovAnalysis/data/singleDREAM.xml'/> | ||
| <Include ref='Geometry/CMSCommonData/data/materials.xml'/> | ||
| <Include ref='Geometry/CMSCommonData/data/rotations.xml'/> | ||
| <Include ref='Geometry/HGCalCommonData/data/hgcalMaterial/v1/hgcalMaterial.xml'/> | ||
| <Include ref='Geometry/HGCalCommonData/data/TB181/Oct181/cms.xml'/> | ||
| <Include ref='Geometry/HGCalCommonData/data/TB181/Oct181/hgcal.xml'/> | ||
| <Include ref='Geometry/HGCalCommonData/data/TB181/Oct181/hgcalEE.xml'/> | ||
| <Include ref='Geometry/HGCalCommonData/data/TB181/Oct181/hgcalHE.xml'/> | ||
| <Include ref='Geometry/HGCalCommonData/data/TB181/ahcal.xml'/> | ||
| <Include ref='Geometry/HGCalCommonData/data/TB181/Oct181/hgcalBeam.xml'/> | ||
| <Include ref='Geometry/HGCalCommonData/data/hgcalwafer/v7/hgcalwafer.xml'/> | ||
| <Include ref='Geometry/HGCalCommonData/data/TB181/Oct181/hgcalsense.xml'/> | ||
| <Include ref='Geometry/HGCalCommonData/data/TB181/hgcProdCuts.xml'/> | ||
| <Include ref='Geometry/HGCalCommonData/data/TB181/Oct181/hgcalCons.xml'/> | ||
| </IncludeSection> | ||
| </DDDefinition> |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
151 changes: 151 additions & 0 deletions
151
SimG4CMS/HGCalTestBeam/test/HGCalTBCERN181Oct1DD4Hep_cfg.py
This file contains hidden or 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,151 @@ | ||
| import FWCore.ParameterSet.Config as cms | ||
| from Configuration.ProcessModifiers.dd4hep_cff import dd4hep | ||
|
|
||
| process = cms.Process('SIM',dd4hep) | ||
|
|
||
| # import of standard configurations | ||
| process.load("FWCore.MessageService.MessageLogger_cfi") | ||
| process.load('Configuration.StandardSequences.Services_cff') | ||
| process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') | ||
| process.load('Configuration.EventContent.EventContent_cff') | ||
| process.load('SimGeneral.MixingModule.mixNoPU_cfi') | ||
| process.load("Configuration.Geometry.GeometryDD4hep_cff") | ||
| process.load('Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi') | ||
| process.load('Geometry.HGCalCommonData.hgcalParametersInitialization_cfi') | ||
| process.load('Geometry.HcalTestBeamData.hcalTB06Parameters_cff') | ||
| process.load('Configuration.StandardSequences.MagneticField_0T_cff') | ||
| process.load('Configuration.StandardSequences.Generator_cff') | ||
| process.load('IOMC.EventVertexGenerators.VtxSmearedFlat_cfi') | ||
| process.load('GeneratorInterface.Core.genFilterSummary_cff') | ||
| process.load('Configuration.StandardSequences.SimIdeal_cff') | ||
| process.load('Configuration.StandardSequences.EndOfProcess_cff') | ||
| process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') | ||
| process.load('SimG4CMS.HGCalTestBeam.HGCalTBAnalyzer_cfi') | ||
| process.load('SimG4CMS.HGCalTestBeam.HGCalTBCheckGunPosition_cfi') | ||
|
|
||
| process.maxEvents = cms.untracked.PSet( | ||
| input = cms.untracked.int32(10) | ||
| ) | ||
|
|
||
| if 'MessageLogger' in process.__dict__: | ||
| process.MessageLogger.HGCalGeom=dict() | ||
| process.MessageLogger.HGCSim=dict() | ||
| process.MessageLogger.HcalSim=dict() | ||
| process.MessageLogger.HcalTB06BeamSD=dict() | ||
| # process.MessageLogger.SimG4CoreGeometry=dict() | ||
|
|
||
| # Input source | ||
| process.source = cms.Source("EmptySource") | ||
|
|
||
| process.options = cms.untracked.PSet( | ||
| ) | ||
|
|
||
| # Production Info | ||
| process.configurationMetadata = cms.untracked.PSet( | ||
| annotation = cms.untracked.string('SingleMuonE200_cfi nevts:10'), | ||
| name = cms.untracked.string('Applications'), | ||
| version = cms.untracked.string('$Revision: 1.19 $') | ||
| ) | ||
|
|
||
| # Output definition | ||
|
|
||
| process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule", | ||
| SelectEvents = cms.untracked.PSet( | ||
| SelectEvents = cms.vstring('generation_step') | ||
| ), | ||
| dataset = cms.untracked.PSet( | ||
| dataTier = cms.untracked.string('GEN-SIM'), | ||
| filterName = cms.untracked.string('') | ||
| ), | ||
| fileName = cms.untracked.string('file:TBGenSim181Oct1DD4Hep.root'), | ||
| outputCommands = process.FEVTDEBUGEventContent.outputCommands, | ||
| splitLevel = cms.untracked.int32(0) | ||
| ) | ||
|
|
||
| # Additional output definition | ||
| process.TFileService = cms.Service("TFileService", | ||
| fileName = cms.string('TBGenSimDD4Hep.root') | ||
| ) | ||
|
|
||
| # Other statements | ||
| process.genstepfilter.triggerConditions=cms.vstring("generation_step") | ||
| from Configuration.AlCa.GlobalTag import GlobalTag | ||
| process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '') | ||
|
|
||
| process.generator = cms.EDProducer("FlatRandomEThetaGunProducer", | ||
| AddAntiParticle = cms.bool(False), | ||
| PGunParameters = cms.PSet( | ||
| MinE = cms.double(99.99), | ||
| MaxE = cms.double(100.01), | ||
| MinTheta = cms.double(0.0), | ||
| MaxTheta = cms.double(0.0), | ||
| MinPhi = cms.double(-3.14159265359), | ||
| MaxPhi = cms.double(3.14159265359), | ||
| PartID = cms.vint32(11) | ||
| ), | ||
| Verbosity = cms.untracked.int32(0), | ||
| firstRun = cms.untracked.uint32(1), | ||
| psethack = cms.string('single muon E 100') | ||
| ) | ||
| process.VtxSmeared.MinZ = -800.0 | ||
| process.VtxSmeared.MaxZ = -800.0 | ||
| process.VtxSmeared.MinX = -7.5 | ||
| process.VtxSmeared.MaxX = 7.5 | ||
| process.VtxSmeared.MinY = -7.5 | ||
| 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( | ||
| HGCPassive = cms.PSet( | ||
| LVNames = cms.vstring('HGCalEE','HGCalHE','HGCalAH', 'HGCalBeam', 'CMSE'), | ||
| MotherName = cms.string('OCMS'), | ||
| IfDD4Hep = cms.bool(True), | ||
| ), | ||
| type = cms.string('HGCPassive'), | ||
| ) | ||
| ) | ||
| process.HGCalTBAnalyzer.doDigis = False | ||
| process.HGCalTBAnalyzer.doRecHits = False | ||
| process.HGCalTBAnalyzer.useFH = True | ||
| process.HGCalTBAnalyzer.useBH = True | ||
| process.HGCalTBAnalyzer.useBeam = True | ||
| process.HGCalTBAnalyzer.zFrontEE = 1110.0 | ||
| process.HGCalTBAnalyzer.zFrontFH = 1176.5 | ||
| process.HGCalTBAnalyzer.zFrontFH = 1307.5 | ||
| process.HGCalTBAnalyzer.maxDepth = 39 | ||
| process.HGCalTBAnalyzer.deltaZ = 26.2 | ||
| process.HGCalTBAnalyzer.zFirst = 22.8 | ||
| process.HGCalTBAnalyzer.doPassive = True | ||
| process.HGCalTBAnalyzer.doPassiveEE = True | ||
| process.HGCalTBAnalyzer.doPassiveHE = True | ||
| process.HGCalTBAnalyzer.doPassiveBH = True | ||
|
|
||
| # Path and EndPath definitions | ||
| process.generation_step = cms.Path(process.pgen) | ||
| process.gunfilter_step = cms.Path(process.HGCalTBCheckGunPostion) | ||
| process.simulation_step = cms.Path(process.psim) | ||
| process.genfiltersummary_step = cms.EndPath(process.genFilterSummary) | ||
| process.analysis_step = cms.Path(process.HGCalTBAnalyzer) | ||
| process.endjob_step = cms.EndPath(process.endOfProcess) | ||
| process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput) | ||
|
|
||
| # Schedule definition | ||
| process.schedule = cms.Schedule(process.generation_step, | ||
| process.genfiltersummary_step, | ||
| process.simulation_step, | ||
| process.gunfilter_step, | ||
| process.analysis_step, | ||
| process.endjob_step, | ||
| process.FEVTDEBUGoutput_step | ||
| ) | ||
| # filter all path with the production filter sequence | ||
| for path in process.paths: | ||
| getattr(process,path)._seq = process.generator * getattr(process,path)._seq | ||
|
|
||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bsunanda , I am sorry, but recent requirement from @smuzaffar was to have include files for plugin inside plugin directory. This include files should not be used by any other class except producer itself HGCPassive.cc, normally these two files should be merged together into HGCPassive.cc, two separate files only if the producer is too big.