Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:06:45

0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003 
0004 process = cms.Process("TIDTECInnerRingInvestigator")
0005 
0006 #prepare options
0007 
0008 options = VarParsing.VarParsing("analysis")
0009 
0010 options.register ('globalTag',
0011                   "DONOTEXIST",
0012                   VarParsing.VarParsing.multiplicity.singleton, # singleton or list
0013                   VarParsing.VarParsing.varType.string,          # string, int, or float
0014                   "GlobalTag")
0015 
0016 options.parseArguments()
0017 
0018 #
0019 
0020 process.options = cms.untracked.PSet(
0021     wantSummary = cms.untracked.bool(True),
0022     fileMode = cms.untracked.string("FULLMERGE")
0023     )
0024 
0025 process.load("FWCore.MessageService.MessageLogger_cfi")
0026 
0027 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0028 process.MessageLogger.cout.threshold = cms.untracked.string("INFO")
0029 process.MessageLogger.cout.default = cms.untracked.PSet(
0030     limit = cms.untracked.int32(10000000)
0031     )
0032 process.MessageLogger.cout.FwkReport = cms.untracked.PSet(
0033     reportEvery = cms.untracked.int32(10000)
0034     )
0035 
0036 process.MessageLogger.cerr.enable = cms.untracked.bool(True)
0037 process.MessageLogger.cerr.threshold = cms.untracked.string("WARNING")
0038 process.MessageLogger.cerr.default = cms.untracked.PSet(
0039     limit = cms.untracked.int32(10000000)
0040     )
0041 process.MessageLogger.cerr.FwkReport = cms.untracked.PSet(
0042     reportEvery = cms.untracked.int32(100000)
0043     )
0044 
0045 
0046 #------------------------------------------------------------------
0047 
0048 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(options.maxEvents) )
0049 
0050 process.source = cms.Source("PoolSource",
0051                     fileNames = cms.untracked.vstring(options.inputFiles),
0052 #                    skipBadFiles = cms.untracked.bool(True),
0053                     inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
0054                     )
0055 
0056 #--------------------------------------
0057 
0058 
0059 process.froml1abcHEs = cms.EDProducer("EventWithHistoryProducerFromL1ABC",
0060                                       l1ABCCollection=cms.InputTag("scalersRawToDigi")
0061                                       )
0062 process.load("DPGAnalysis.SiStripTools.apvcyclephaseproducerfroml1tsDB_cfi")
0063 process.load("DPGAnalysis.SiStripTools.eventtimedistribution_cfi")
0064 
0065 process.seqEventHistoryReco = cms.Sequence(process.froml1abcHEs + process.APVPhases)
0066 process.seqEventHistory = cms.Sequence(process.eventtimedistribution)
0067 
0068 process.eventtimedistribution.historyProduct = cms.InputTag("froml1abcHEs")
0069 
0070 
0071 
0072 process.load("DPGAnalysis.SiStripTools.sistripclustermultiplicityprod_cfi")
0073 
0074 #process.ssclustermultprod.withClusterSize=cms.untracked.bool(True)
0075 
0076 process.ssclustermultprod.wantedSubDets = cms.VPSet(
0077     cms.PSet(detSelection = cms.uint32(101),detLabel = cms.string("TIDring1"),selection=cms.untracked.vstring("0x1e000600-0x18000200")),
0078     cms.PSet(detSelection = cms.uint32(102),detLabel = cms.string("TIDring2"),selection=cms.untracked.vstring("0x1e000600-0x18000400")),
0079     cms.PSet(detSelection = cms.uint32(201),detLabel = cms.string("TECring1"),selection=cms.untracked.vstring("0x1e0000e0-0x1c000020")),
0080     cms.PSet(detSelection = cms.uint32(202),detLabel = cms.string("TECring2"),selection=cms.untracked.vstring("0x1e0000e0-0x1c000040"))
0081 )
0082 
0083 process.seqMultProd = cms.Sequence(process.ssclustermultprod)
0084 
0085 
0086 process.load("RecoLocalTracker.SiStripClusterizer.SiStripClusterToDigiProducer_cfi")
0087 
0088 
0089 process.seqProducers = cms.Sequence(process.seqEventHistoryReco + process.seqMultProd + process.siStripClustersToDigis)
0090 
0091 #from HLTrigger.HLTfilters.triggerResultsFilter_cfi import *
0092 #process.hltSelection = triggerResultsFilter.clone(
0093 #                                          triggerConditions = cms.vstring("HLT_ZeroBias_*"),
0094 #                                          hltResults = cms.InputTag( "TriggerResults", "", "HLT" ),
0095 #                                          l1tResults = cms.InputTag( "" ),
0096 #                                          throw = cms.bool(False)
0097 #                                          )
0098 
0099 
0100 process.load("DPGAnalysis.SiStripTools.ssclusmultinvestigator_cfi")
0101 process.ssclusmultinvestigator.runHisto = cms.untracked.bool(True)
0102 process.ssclusmultinvestigator.scaleFactor=cms.untracked.int32(1)
0103 process.ssclusmultinvestigator.wantedSubDets = cms.untracked.VPSet(    
0104     cms.PSet(detSelection = cms.uint32(101),detLabel = cms.string("TIDring1"), binMax = cms.int32(1000)),
0105     cms.PSet(detSelection = cms.uint32(102),detLabel = cms.string("TIDring2"), binMax = cms.int32(1000)),
0106     cms.PSet(detSelection = cms.uint32(201),detLabel = cms.string("TECring1"), binMax = cms.int32(1000)),
0107     cms.PSet(detSelection = cms.uint32(202),detLabel = cms.string("TECring2"), binMax = cms.int32(1000))
0108     )
0109 
0110 process.load("DPGAnalysis.SiStripTools.clusterbigeventsdebugger_cfi")
0111 process.clusterbigeventsdebugger.selections = cms.VPSet(
0112 cms.PSet(detSelection = cms.uint32(101),label = cms.string("TIDring1"),selection=cms.untracked.vstring("0x1e000600-0x18000200")),
0113 cms.PSet(detSelection = cms.uint32(102),label = cms.string("TIDring2"),selection=cms.untracked.vstring("0x1e000600-0x18000400")),
0114 cms.PSet(detSelection = cms.uint32(201),label = cms.string("TECring1"),selection=cms.untracked.vstring("0x1e0000e0-0x1c000020")),
0115 cms.PSet(detSelection = cms.uint32(202),label = cms.string("TECring2"),selection=cms.untracked.vstring("0x1e0000e0-0x1c000040"))
0116 )
0117 
0118 process.load("DPGAnalysis.SiStripTools.digibigeventsdebugger_cfi")
0119 process.digibigeventsdebugger.selections = process.clusterbigeventsdebugger.selections
0120 process.digibigeventsdebugger.collection = cms.InputTag("siStripClustersToDigis","ZeroSuppressed")
0121 #process.digibigeventsdebugger.foldedStrips = cms.untracked.bool(True)
0122 
0123 process.seqClusMultInvest = cms.Sequence(process.ssclusmultinvestigator + process.clusterbigeventsdebugger + process.digibigeventsdebugger ) 
0124 
0125 
0126 
0127 process.p0 = cms.Path(
0128     #    process.hltSelection +
0129     process.seqProducers +
0130     process.seqEventHistory +
0131     process.seqClusMultInvest)
0132 
0133 #----GlobalTag ------------------------
0134 
0135 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0136 from Configuration.AlCa.GlobalTag import GlobalTag
0137 process.GlobalTag = GlobalTag(process.GlobalTag, options.globalTag, '')
0138 
0139 process.TFileService = cms.Service('TFileService',
0140                                    fileName = cms.string('TIDTECInnerRingInvestigator_'+options.tag+'.root')
0141                                    )
0142 
0143 #print process.dumpPython()