Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:12

0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003 
0004 
0005 process = cms.Process("cosmicstracks")
0006 
0007 #prepare options
0008 
0009 options = VarParsing.VarParsing("analysis")
0010 
0011 options.register ('globalTag',
0012                   "DONOTEXIST",
0013                   VarParsing.VarParsing.multiplicity.singleton, # singleton or list
0014                   VarParsing.VarParsing.varType.string,          # string, int, or float
0015                   "GlobalTag")
0016 
0017 options.parseArguments()
0018 
0019 process.options = cms.untracked.PSet(
0020     wantSummary = cms.untracked.bool(True),
0021     fileMode = cms.untracked.string("FULLMERGE")
0022     )
0023 
0024 process.load("FWCore.MessageService.MessageLogger_cfi")
0025 
0026 #----------------------------------------------------------------
0027 
0028 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0029 process.MessageLogger.cout.threshold = cms.untracked.string("INFO")
0030 process.MessageLogger.cout.default = cms.untracked.PSet(
0031     limit = cms.untracked.int32(10000000)
0032     )
0033 process.MessageLogger.cout.FwkReport = cms.untracked.PSet(
0034     reportEvery = cms.untracked.int32(10000)
0035     )
0036 
0037 process.MessageLogger.cerr.enable = cms.untracked.bool(True)
0038 process.MessageLogger.cerr.threshold = cms.untracked.string("WARNING")
0039 process.MessageLogger.cerr.default = cms.untracked.PSet(
0040     limit = cms.untracked.int32(10000000)
0041     )
0042 process.MessageLogger.cerr.FwkReport = cms.untracked.PSet(
0043     reportEvery = cms.untracked.int32(100000)
0044     )
0045 
0046 #process.MessageLogger.suppressWarning.append("consecutiveHEs")
0047 
0048 
0049 #------------------------------------------------------------------
0050 
0051 #process.MessageLogger.cout.threshold = cms.untracked.string("DEBUG")
0052 #process.MessageLogger.debugModules = cms.untracked.vstring("eventtimedistribution")
0053 
0054 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0055 
0056 process.source = cms.Source("PoolSource",
0057                     fileNames = cms.untracked.vstring(options.inputFiles),
0058 #                    skipBadFiles = cms.untracked.bool(True),
0059                     inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
0060                     )
0061 
0062 
0063 
0064 
0065 process.load("DPGAnalysis.SiStripTools.eventwithhistoryproducerfroml1abc_cfi")
0066 
0067 import DPGAnalysis.SiStripTools.apvcyclephaseproducerfroml1tsDB_cfi 
0068 process.APVPhases = DPGAnalysis.SiStripTools.apvcyclephaseproducerfroml1tsDB_cfi.APVPhases 
0069 process.load("DPGAnalysis.SiStripTools.l1TSDebugger_cfi")
0070 
0071 #------- Filter for isolated pairs
0072 process.retrigger = cms.EDFilter('EventWithHistoryEDFilter',
0073                                  commonConfiguration = cms.untracked.PSet(historyProduct= cms.untracked.InputTag("consecutiveHEs"),
0074                                                                           APVPhaseLabel= cms.untracked.string("APVPhases")
0075                                                                           ),
0076                                  filterConfigurations = cms.untracked.VPSet(cms.PSet(dbxRange = cms.untracked.vint32(0,6)))
0077                                  )
0078 process.closeretrigger = cms.EDFilter('EventWithHistoryEDFilter',
0079                                       commonConfiguration = cms.untracked.PSet(historyProduct= cms.untracked.InputTag("consecutiveHEs"),
0080                                                                                APVPhaseLabel= cms.untracked.string("APVPhases")
0081                                                                                ),
0082                                       filterConfigurations = cms.untracked.VPSet(cms.PSet(dbxRange = cms.untracked.vint32(0,3)))
0083                                       )
0084 process.load("DPGAnalysis.SiStripTools.filters.FrameHeaderEvents_cfi")
0085 process.load("DPGAnalysis.SiStripTools.filters.LatencyPlusOneEvents_cfi")
0086 
0087 process.load("DPGAnalysis.SiStripTools.apvcyclephasemonitor_cfi")
0088 
0089 process.load("DPGAnalysis.SiStripTools.eventtimedistribution_cfi")
0090 process.eventtimedistribution.wantEWHDepthHisto = cms.untracked.bool(True)
0091 process.eventtimedistribution.wantDBXvsBX = cms.untracked.bool(True)
0092 
0093 process.eventtimeretrigger = process.eventtimedistribution.clone()
0094 process.eventtimecloseretrigger = process.eventtimedistribution.clone()
0095 process.eventtimeframeheader = process.eventtimedistribution.clone()
0096 process.eventtimelatencyplusone = process.eventtimedistribution.clone()
0097 
0098 process.load("DPGAnalysis.SiStripTools.trackcount_cfi")
0099 process.trackcount.trackCollection = cms.InputTag('ctfWithMaterialTracksP5')
0100 process.trackcountretrigger = process.trackcount.clone()
0101 process.trackcountcloseretrigger = process.trackcount.clone()
0102 process.trackcountframeheader = process.trackcount.clone()
0103 process.trackcountlatencyplusone = process.trackcount.clone()
0104 
0105 process.TFileService = cms.Service('TFileService',
0106                                    fileName = cms.string('cosmicstracks.root')
0107                                    )
0108 
0109 #----GlobalTag ------------------------
0110 
0111 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0112 from Configuration.AlCa.GlobalTag import GlobalTag
0113 process.GlobalTag = GlobalTag(process.GlobalTag, options.globalTag, '')
0114 
0115 #
0116 
0117 process.p0 = cms.Path(process.consecutiveHEs
0118                       + process.APVPhases
0119                       + process.l1TSDebugger
0120                       + process.apvcyclephasemonitor
0121                       + process.eventtimedistribution
0122                       + process.trackcount
0123                       )
0124 process.pretrigger = cms.Path(process.consecutiveHEs
0125                               + process.APVPhases
0126                               + process.l1TSDebugger
0127                               + process.apvcyclephasemonitor
0128                               + process.retrigger
0129                               + process.eventtimeretrigger
0130                               + process.trackcountretrigger
0131                               )
0132 process.pcloseretrigger = cms.Path(process.consecutiveHEs
0133                                    + process.APVPhases
0134                                    + process.l1TSDebugger
0135                                    + process.apvcyclephasemonitor
0136                                    + process.closeretrigger
0137                                    + process.eventtimecloseretrigger
0138                                    + process.trackcountcloseretrigger
0139                               )
0140 process.pframeheader = cms.Path(process.consecutiveHEs
0141                                 + process.APVPhases
0142                                 + process.l1TSDebugger
0143                                 + process.apvcyclephasemonitor
0144                                 + process.frameHeaderEvents
0145                                 + process.eventtimeframeheader
0146                                 + process.trackcountframeheader
0147                               )
0148 process.platencyplusone = cms.Path(process.consecutiveHEs
0149                                 + process.APVPhases
0150                                 + process.l1TSDebugger
0151                                 + process.apvcyclephasemonitor
0152                                 + process.latencyPlusOne
0153                                 + process.eventtimelatencyplusone
0154                                 + process.trackcountlatencyplusone
0155                               )
0156 
0157 
0158 #process.schedule = cms.Schedule(process.p0)