Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-24 01:11:14

0001 # Auto generated configuration file
0002 # using: 
0003 # Revision: 1.381.2.28 
0004 # Source: /local/reps/CMSSW/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v 
0005 # with command line options: step3 --datatier ALCARECO --conditions auto:com10 -s ALCA:PromptCalibProdSiStripGains --eventcontent ALCARECO -n 100 --dasquery=file dataset=/MinimumBias/Run2012C-SiStripCalMinBias-v2/ALCARECO run=200190 --fileout file:step3.root --no_exec
0006 import FWCore.ParameterSet.Config as cms
0007 from FWCore.ParameterSet.VarParsing import VarParsing
0008 
0009 options = VarParsing("analysis")
0010 options.register("calibTreeName", "gainCalibrationTreeStdBunch/tree", VarParsing.multiplicity.singleton, VarParsing.varType.string, "Name of the TTree in the calibtree files")
0011 options.register("firstRun", 0, VarParsing.multiplicity.singleton, VarParsing.varType.int, "First run of the calibration range")
0012 options.register("lastRun", 0, VarParsing.multiplicity.singleton, VarParsing.varType.int, "Last run of the calibration range")
0013 options.register("globalTag", "auto:run3_data_express", VarParsing.multiplicity.singleton, VarParsing.varType.string, "Global tag (express, to check the homogeneity of the calibration range")
0014 options.parseArguments()
0015 
0016 process = cms.Process('ALCA')
0017 
0018 # import of standard configurations
0019 process.load('Configuration.StandardSequences.Services_cff')
0020 process.load('FWCore.MessageService.MessageLogger_cfi')
0021 process.load('Configuration.EventContent.EventContent_cff')
0022 
0023 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0024 process.SiStripCalib = DQMEDAnalyzer(
0025     "SiStripGainsCalibTreeWorker",
0026     minTrackMomentum    = cms.untracked.double(2),
0027     maxNrStrips         = cms.untracked.uint32(8),
0028     Validation          = cms.untracked.bool(False),
0029     OldGainRemoving     = cms.untracked.bool(False),
0030     FirstSetOfConstants = cms.untracked.bool(True),
0031     UseCalibration      = cms.untracked.bool(False),
0032     DQMdir              = cms.untracked.string('AlCaReco/SiStripGains'),
0033     calibrationMode     = cms.untracked.string('StdBunch'),
0034     ChargeHisto         = cms.untracked.vstring('TIB','TIB_layer_1','TOB','TOB_layer_1','TIDminus','TIDplus','TECminus','TECplus','TEC_thin','TEC_thick'),
0035     gain                = cms.untracked.PSet(
0036                             prefix = cms.untracked.string("GainCalibration"), 
0037                             suffix = cms.untracked.string('')
0038                             ),
0039     evtinfo             = cms.untracked.PSet(
0040                             prefix = cms.untracked.string(""), 
0041                             suffix = cms.untracked.string('')
0042                             ),
0043     tracks              = cms.untracked.PSet(
0044                             prefix = cms.untracked.string("track"), 
0045                             suffix = cms.untracked.string('')
0046                             ),
0047     CalibTreeName = cms.untracked.string(options.calibTreeName),
0048     )
0049 
0050 process.SiStripCalib.CalibTreeFiles = cms.untracked.vstring(options.inputFiles)
0051 
0052 process.MEtoEDMConvertSiStripGains = cms.EDProducer("MEtoEDMConverter",
0053         Name = cms.untracked.string('MEtoEDMConverter'),
0054         Verbosity = cms.untracked.int32(0), # 0 provides no output
0055         # 1 provides basic output
0056         # 2 provide more detailed output
0057         Frequency = cms.untracked.int32(50),
0058         MEPathToSave = cms.untracked.string('AlCaReco/SiStripGains'),
0059         deleteAfterCopy = cms.untracked.bool(True)
0060         )
0061 process.seqALCARECOPromptCalibProdSiStripGains = cms.Sequence(
0062         process.SiStripCalib *
0063         process.MEtoEDMConvertSiStripGains
0064         )
0065 process.pathALCARECOPromptCalibProdSiStripGains = cms.Path(process.seqALCARECOPromptCalibProdSiStripGains)
0066 
0067 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0068 process.load('Configuration.Geometry.GeometryRecoDB_cff')
0069 process.load('Configuration.StandardSequences.MagneticField_cff')
0070 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0071 
0072 process.maxEvents = cms.untracked.PSet(
0073     input = cms.untracked.int32(-1)
0074 )
0075 
0076 # Input source
0077 process.source = cms.Source("EmptyIOVSource",
0078    timetype   = cms.string('runnumber'),
0079    interval   = cms.uint64(1),
0080    firstValue = cms.uint64(options.firstRun),
0081    lastValue  = cms.uint64(options.lastRun)
0082 )
0083 
0084 # Uncomment to turn on verbosity output
0085 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0086 #process.MessageLogger.threshold = cms.untracked.string('INFO')
0087 process.MessageLogger.cout.threshold = cms.untracked.string('INFO')
0088 process.MessageLogger.debugModules = cms.untracked.vstring("*")
0089 #process.MessageLogger.destinations = cms.untracked.vstring('cout')
0090 process.MessageLogger.cout = cms.untracked.PSet( threshold = cms.untracked.string('INFO'))
0091 
0092 #process.Tracer = cms.Service("Tracer")
0093 
0094 process.options = cms.untracked.PSet(
0095     Rethrow = cms.untracked.vstring('ProductNotFound'),
0096     fileMode = cms.untracked.string('FULLMERGE')
0097 )
0098 
0099 process.maxEvents = cms.untracked.PSet(
0100     input = cms.untracked.int32(1)
0101 )
0102 
0103 # Production Info
0104 process.configurationMetadata = cms.untracked.PSet(
0105     version = cms.untracked.string('$Revision: 1.381.2.28 $'),
0106     annotation = cms.untracked.string('step3 nevts:100'),
0107     name = cms.untracked.string('PyReleaseValidation')
0108 )
0109 
0110 # Output definition
0111 
0112 process.ALCARECOStreamPromptCalibProdSiStripGains = cms.OutputModule("PoolOutputModule",
0113     SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('pathALCARECOPromptCalibProdSiStripGains')),
0114     outputCommands = cms.untracked.vstring(
0115         'keep *_alcaBeamSpotProducer_*_*',
0116         'keep *_MEtoEDMConvertSiStripGains_*_*'),
0117     fileName = cms.untracked.string(options.outputFile),
0118     dataset = cms.untracked.PSet(
0119         filterName = cms.untracked.string("PromptCalibProdSiStripGains"),
0120         dataTier = cms.untracked.string('ALCARECO')
0121     ),
0122     eventAutoFlushCompressedSize = cms.untracked.int32(5242880)
0123 )
0124 
0125 # Other statements
0126 from Configuration.AlCa.GlobalTag import GlobalTag
0127 process.GlobalTag = GlobalTag(process.GlobalTag, options.globalTag, '')
0128 
0129 # Path and EndPath definitions
0130 process.endjob_step = cms.EndPath(process.endOfProcess)
0131 process.ALCARECOStreamPromptCalibProdSiStripGainsOutPath = cms.EndPath(process.ALCARECOStreamPromptCalibProdSiStripGains)
0132 
0133 # Schedule definition
0134 process.schedule = cms.Schedule(process.pathALCARECOPromptCalibProdSiStripGains,
0135                                 process.endjob_step,
0136                                 process.ALCARECOStreamPromptCalibProdSiStripGainsOutPath)