Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:23

0001 
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 process = cms.Process("Rec")
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 
0007 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0008 
0009 
0010 process.maxEvents = cms.untracked.PSet(  input = cms.untracked.int32(20) )
0011 #can be 300 in that file
0012 process.source = cms.Source("PoolSource",
0013     fileNames = cms.untracked.vstring(
0014 #MC relval SINGLE MUON
0015     ###'/store/relval/CMSSW_2_1_9/RelValSingleMuPt10/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v2/0000/EA123BEB-9F85-DD11-AB1D-000423D9870C.root'
0016 
0017 #MC relval singlemu
0018     #'/store/relval/CMSSW_3_1_0_pre3/RelValSingleMuPt10/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_30X_v1/0001/581655A2-7D0A-DE11-B548-0019DB2F3F9A.root'
0019 
0020 #MC relval ttbar
0021     '/store/relval/CMSSW_3_1_0_pre3/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_30X_v1/0001/1EE2ECB6-170A-DE11-BE8C-0016177CA7A0.root',  
0022     #'/store/relval/CMSSW_3_1_0_pre3/RelValTTbar/GEN-SIM-RECO/IDEAL_30X_v1/0001/3C8AABDF-FA0A-DE11-80A5-001D09F290BF.root'
0023     )
0024 )
0025 
0026 # output module
0027 #
0028 process.load("Configuration.EventContent.EventContentCosmics_cff")
0029 
0030 process.FEVT = cms.OutputModule("PoolOutputModule",
0031     process.FEVTEventContent,
0032     dataset = cms.untracked.PSet(dataTier = cms.untracked.string('RECO')),
0033     fileName = cms.untracked.string('promptrecoCosmics.root')
0034 )
0035 
0036 process.FEVT.outputCommands.append('keep CSCDetIdCSCALCTDigiMuonDigiCollection_muonCSCDigis_MuonCSCALCTDigi_*')
0037 process.FEVT.outputCommands.append('keep CSCDetIdCSCCLCTDigiMuonDigiCollection_muonCSCDigis_MuonCSCCLCTDigi_*')
0038 process.FEVT.outputCommands.append('keep CSCDetIdCSCComparatorDigiMuonDigiCollection_muonCSCDigis_MuonCSCComparatorDigi_*')
0039 process.FEVT.outputCommands.append('keep CSCDetIdCSCCorrelatedLCTDigiMuonDigiCollection_csctfDigis_*_*')
0040 process.FEVT.outputCommands.append('keep CSCDetIdCSCCorrelatedLCTDigiMuonDigiCollection_muonCSCDigis_MuonCSCCorrelatedLCTDigi_*')
0041 process.FEVT.outputCommands.append('keep CSCDetIdCSCRPCDigiMuonDigiCollection_muonCSCDigis_MuonCSCRPCDigi_*')
0042 process.FEVT.outputCommands.append('keep CSCDetIdCSCStripDigiMuonDigiCollection_muonCSCDigis_MuonCSCStripDigi_*')
0043 process.FEVT.outputCommands.append('keep CSCDetIdCSCWireDigiMuonDigiCollection_muonCSCDigis_MuonCSCWireDigi_*')
0044 process.FEVT.outputCommands.append('keep cscL1TrackCSCDetIdCSCCorrelatedLCTDigiMuonDigiCollectionstdpairs_csctfDigis_*_*')
0045 process.FEVT.outputCommands.append('keep DTChamberIdDTLocalTriggerMuonDigiCollection_muonDTDigis_*_*')
0046 process.FEVT.outputCommands.append('keep DTLayerIdDTDigiMuonDigiCollection_muonDTDigis_*_*')
0047 process.FEVT.outputCommands.append('keep intL1CSCSPStatusDigisstdpair_csctfDigis_*_*')
0048 process.FEVT.outputCommands.append('keep L1MuDTChambPhContainer_dttfDigis_*_*')
0049 process.FEVT.outputCommands.append('keep L1MuDTChambThContainer_dttfDigis_*_*')
0050 process.FEVT.outputCommands.append('keep L1MuDTTrackContainer_dttfDigis_DATA_*')
0051 process.FEVT.outputCommands.append('keep PixelDigiedmDetSetVector_siPixelDigis_*_*')
0052 process.FEVT.outputCommands.append('keep RPCDetIdRPCDigiMuonDigiCollection_muonRPCDigis_*_*')
0053 
0054 process.configurationMetadata = cms.untracked.PSet(
0055     version = cms.untracked.string(''),
0056     name = cms.untracked.string(''),
0057     annotation = cms.untracked.string('CRUZET Prompt Reco with DQM with Mag field at 0T')
0058 )
0059 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) ) ## default is false
0060 
0061 # Conditions (Global Tag is used here):
0062 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0063 ####process.GlobalTag.connect = "frontier://PromptProd/CMS_COND_21X_GLOBALTAG"
0064 process.GlobalTag.globaltag = "IDEAL_V9::All"
0065 process.GlobalTag.globaltag = "IDEAL_30X::All"
0066 process.es_prefer_GlobalTag = cms.ESPrefer('PoolDBESSource','GlobalTag')
0067 ###process.prefer("GlobalTag")
0068 
0069 # Magnetic field: force mag field to be 0 tesla
0070 process.load("Configuration.StandardSequences.MagneticField_0T_cff")
0071 
0072 #Geometry
0073 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0074 
0075 # Real data raw to digi
0076 ##process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0077 process.load("Configuration.StandardSequences.RawToDigi_cff")
0078 
0079 # reconstruction sequence for Cosmics
0080 #process.load("Configuration.StandardSequences.ReconstructionCosmics_cff")
0081 process.load("Configuration.StandardSequences.Reconstruction_cff")
0082 
0083 # offline DQM
0084 ##process.load("DQMOffline.Configuration.DQMOfflineCosmics_cff")
0085 process.load("DQMOffline.Configuration.DQMOffline_cff")
0086 process.load("DQMServices.Components.MEtoEDMConverter_cff")
0087 
0088 #L1 trigger validation
0089 #process.load("L1Trigger.HardwareValidation.L1HardwareValidation_cff")
0090 process.load("L1Trigger.Configuration.L1Config_cff")
0091 process.load("L1TriggerConfig.CSCTFConfigProducers.CSCTFConfigProducer_cfi")
0092 process.load("L1TriggerConfig.CSCTFConfigProducers.L1MuCSCTFConfigurationRcdSrc_cfi")
0093 
0094 ##new##
0095 process.load("Configuration.StandardSequences.Simulation_cff")
0096 
0097 #MC
0098 process.SiPixelTrackResidualSource.TrackCandidateProducer = cms.string('newTrackCandidateMaker')
0099 process.SiPixelTrackResidualSource.trajectoryInput = cms.InputTag('generalTracks')
0100 process.SiPixelTrackResidualSource.saveFile = cms.untracked.bool(True)
0101 process.SiPixelTrackResidualSource.modOn = cms.untracked.bool(True)
0102 process.SiPixelClusterSource.modOn = cms.untracked.bool(True)
0103 
0104 #event content analyzer
0105 process.dump = cms.EDAnalyzer('EventContentAnalyzer')
0106 
0107 #Paths
0108 ##process.allPath = cms.Path( process.RawToDigi_woGCT * process.reconstructionCosmics *  process.DQMOfflineCosmics * process.MEtoEDMConverter)
0109 ##process.allPath = cms.Path( process.RawToDigi * process.reconstruction * process.DQMOffline * process.MEtoEDMConverter)
0110 
0111 #######process.allPath = cms.Path( process.RawToDigi * process.reconstruction * process.DQMOffline)
0112 
0113 process.allPath = cms.Path( process.RawToDigi * process.reconstruction * process.SiPixelClusterSource * process.SiPixelTrackResidualSource)
0114 
0115 process.outpath = cms.EndPath(process.FEVT)