Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:17

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("eg")
0004 
0005 # The number of events to be processed.
0006 process.maxEvents = cms.untracked.PSet(
0007     input = cms.untracked.int32(300000)
0008 )
0009 
0010 # Include the RandomNumberGeneratorService definition
0011 process.load("IOMC.RandomEngine.IOMC_cff")
0012 
0013 # Histograms
0014 process.load("DQMServices.Core.DQM_cfg")
0015 
0016 # Input
0017 process.source = cms.Source(
0018     "PoolSource",
0019 #    debugVebosity = cms.untracked.uint32(10),
0020 #    debugFlag = cms.untracked.bool(True),
0021     # untracked vstring fileNames = {'file:ecal_digis.root'}
0022     # untracked vstring fileNames = {'/store/unmerged/RelVal/2006/9/24/RelVal101Z-EE/GEN-SIM-DIGI-RECO/0005/0AC156B5-094C-DB11-A4D3-000E0C4D2475.root'}
0023     # untracked uint32 skipEvents = 476
0024     fileNames = cms.untracked.vstring(
0025         '/store/relval/CMSSW_3_8_2/RelValSingleElectronPt35/GEN-SIM-RECO/MC_38Y_V9-v1/0018/E4F2A372-B8AF-DF11-8CAB-001A928116AE.root',
0026         '/store/relval/CMSSW_3_8_2/RelValSingleElectronPt35/GEN-SIM-RECO/MC_38Y_V9-v1/0017/6A590E94-7CAF-DF11-AC72-001A9281171C.root'
0027     ),
0028     noEventSort = cms.untracked.bool(True),
0029     duplicateCheckMode = cms.untracked.string('noDuplicateCheck')
0030 )
0031 
0032 # Famos configuration
0033 process.load("FastSimulation.Configuration.CommonInputs_cff")
0034 from Configuration.AlCa.autoCond import autoCond
0035 process.GlobalTag.globaltag = autoCond['mc']
0036 
0037 # Famos sequences
0038 process.load("FastSimulation.Configuration.FamosSequences_cff")
0039 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0040 process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True
0041 # No SimHits
0042 #process.simulation = cms.Sequence(process.simulationWithFamos)
0043 process.famosSimHits.SimulateCalorimetry = False
0044 process.famosSimHits.SimulateTracking = False
0045 # Number of pileup events per crossing
0046 process.famosPileUp.PileUpSimulator.averageNumber = 0.0
0047 # No vertex smearing
0048 process.famosSimHits.VertexGenerator.BetaStar = 0.00001
0049 # Use CMMSW170 tuning
0050 process.misalignedTrackerInteractionGeometry.TrackerMaterial.TrackerMaterialVersion = 4
0051 process.TrackerInteractionGeometryESProducer.TrackerMaterial.TrackerMaterialVersion = 4
0052 
0053 
0054 #process.testME = cms.EDFilter(
0055 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0056 process.testME = DQMEDAnalyzer(
0057    "testMaterialEffects",
0058 
0059     # Full, Fast radii and lengths for plots
0060     BPCylinderRadius = cms.untracked.vdouble(3.2, 3.05),
0061     BPCylinderLength = cms.untracked.vdouble(999.0, 28.2),
0062 
0063     PXB1CylinderRadius = cms.untracked.vdouble(6.0, 6.0),
0064     PXB1CylinderLength = cms.untracked.vdouble(27.5, 28.2),
0065 
0066     PXB2CylinderRadius = cms.untracked.vdouble(8.5, 8.5),
0067     PXB2CylinderLength = cms.untracked.vdouble(27.5, 28.2),
0068 
0069     PXB3CylinderRadius = cms.untracked.vdouble(11.5, 11.5),
0070     PXB3CylinderLength = cms.untracked.vdouble(27.5, 28.2),
0071 
0072     PXBCablesCylinderRadius = cms.untracked.vdouble(16.9, 16.9),
0073     PXBCablesCylinderLength = cms.untracked.vdouble(30.0, 30.0),
0074 
0075     PXD1CylinderRadius = cms.untracked.vdouble(16.0, 17.0),
0076     PXD1CylinderLength = cms.untracked.vdouble(40.0, 40.0),
0077 
0078     PXD2CylinderRadius = cms.untracked.vdouble(16.0, 17.0),
0079     PXD2CylinderLength = cms.untracked.vdouble(52.0, 52.0),
0080 
0081     PXDCablesCylinderRadius = cms.untracked.vdouble(22.0, 20.2),
0082     PXDCablesCylinderLength = cms.untracked.vdouble(230.0, 100.0),
0083 
0084     TIB1CylinderRadius = cms.untracked.vdouble(30.0, 28.0),
0085     TIB1CylinderLength = cms.untracked.vdouble(68.0, 69.0),
0086 
0087     TIB2CylinderRadius = cms.untracked.vdouble(38.0, 37.0),
0088     TIB2CylinderLength = cms.untracked.vdouble(68.0, 69.0),
0089 
0090     TIB3CylinderRadius = cms.untracked.vdouble(46.0, 45.0),
0091     TIB3CylinderLength = cms.untracked.vdouble(68.0, 69.0),
0092 
0093     TIB4CylinderRadius = cms.untracked.vdouble(54.0, 53.0),
0094     TIB4CylinderLength = cms.untracked.vdouble(68.0, 69.0),
0095 
0096     TIBCablesCylinderRadius = cms.untracked.vdouble(53.0, 54.0),
0097     TIBCablesCylinderLength = cms.untracked.vdouble(74.0, 75.0),
0098 
0099     TID1CylinderRadius = cms.untracked.vdouble(52.0, 54.0),
0100     TID1CylinderLength = cms.untracked.vdouble(83.0, 83.0),
0101 
0102     TID2CylinderRadius = cms.untracked.vdouble(52.0, 54.0),
0103     TID2CylinderLength = cms.untracked.vdouble(95.0, 95.0),
0104 
0105     TID3CylinderRadius = cms.untracked.vdouble(52.0, 54.0),
0106     TID3CylinderLength = cms.untracked.vdouble(110.0, 106.0),
0107 
0108     TIDCablesCylinderRadius = cms.untracked.vdouble(58.2, 55.5),
0109     TIDCablesCylinderLength = cms.untracked.vdouble(122.0, 108.5),
0110 
0111     TOB1CylinderRadius = cms.untracked.vdouble(66.6, 65.0),
0112     TOB1CylinderLength = cms.untracked.vdouble(109.0, 109.0),
0113 
0114     TOB2CylinderRadius = cms.untracked.vdouble(75.5, 75.0),
0115     TOB2CylinderLength = cms.untracked.vdouble(109.0, 109.0),
0116 
0117     TOB3CylinderRadius = cms.untracked.vdouble(84.1, 83.0),
0118     TOB3CylinderLength = cms.untracked.vdouble(109.0, 109.0),
0119 
0120     TOB4CylinderLength = cms.untracked.vdouble(109.0, 109.0),
0121     TOB4CylinderRadius = cms.untracked.vdouble(94.0, 92.0),
0122 
0123     TOB5CylinderRadius = cms.untracked.vdouble(105.5, 103.0),
0124     TOB5CylinderLength = cms.untracked.vdouble(109.0, 109.0),
0125 
0126     TOB6CylinderRadius = cms.untracked.vdouble(113.0, 113.0),
0127     TOB6CylinderLength = cms.untracked.vdouble(109.0, 109.0),
0128 
0129     TOBCablesCylinderRadius = cms.untracked.vdouble(113.0, 113.0),
0130     TOBCablesCylinderLength = cms.untracked.vdouble(125.0, 125.0),
0131 
0132     TEC1CylinderRadius = cms.untracked.vdouble(110.0, 110.0),
0133     TEC1CylinderLength = cms.untracked.vdouble(138.0, 138.0),
0134 
0135     TEC2CylinderRadius = cms.untracked.vdouble(110.0, 110.0),
0136     TEC2CylinderLength = cms.untracked.vdouble(152.0, 152.0),
0137 
0138     TEC3CylinderRadius = cms.untracked.vdouble(110.0, 110.0),
0139     TEC3CylinderLength = cms.untracked.vdouble(166.0, 166.0),
0140 
0141     TEC4CylinderRadius = cms.untracked.vdouble(110.0, 110.0),
0142     TEC4CylinderLength = cms.untracked.vdouble(180.0, 180.0),
0143 
0144     TEC5CylinderRadius = cms.untracked.vdouble(110.0, 110.0),
0145     TEC5CylinderLength = cms.untracked.vdouble(195.0, 195.0),
0146 
0147     TEC6CylinderRadius = cms.untracked.vdouble(110.0, 110.0),
0148     TEC6CylinderLength = cms.untracked.vdouble(212.0, 212.0),
0149 
0150     TEC7CylinderRadius = cms.untracked.vdouble(110.0, 110.0),
0151     TEC7CylinderLength = cms.untracked.vdouble(232.0, 232.0),
0152 
0153     TEC8CylinderRadius = cms.untracked.vdouble(110.0, 110.0),
0154     TEC8CylinderLength = cms.untracked.vdouble(254.0, 254.0),
0155     
0156     TEC9CylinderRadius = cms.untracked.vdouble(110.0, 110.0),
0157     TEC9CylinderLength = cms.untracked.vdouble(272.0, 272.0),
0158 
0159     TrackerCablesCylinderRadius = cms.untracked.vdouble(125.0, 121.0),
0160     TrackerCablesCylinderLength = cms.untracked.vdouble(301.0, 301.0),
0161 
0162     TestParticleFilter = cms.PSet(
0163         # Particles with |eta| > etaMax (momentum direction at primary vertex) 
0164         # are not simulated 
0165         etaMax = cms.double(5.0),
0166         # Charged particles with pT < pTMin (GeV/c) are not simulated
0167         pTMin = cms.double(0.0),
0168         # Particles with energy smaller than EMin (GeV) are not simulated
0169         EMin = cms.double(0.0),
0170         # Protons with energy in excess of this value (GeV) will kept no matter what
0171         EProton = cms.double(99999.0)
0172     )
0173 )
0174 
0175 # Path to run what is needed
0176 process.p = cms.Path(
0177     process.offlineBeamSpot+
0178     process.famosPileUp+
0179     process.famosSimHits+
0180     process.testME
0181 )
0182 
0183 
0184 # Keep the logging output to a nice level #
0185 process.load("FWCore.MessageService.MessageLogger_cfi")
0186 process.MessageLogger.cerr.enable = False
0187 process.MessageLogger.files.detailedInfo= dict(extension='.txt')
0188