/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Alignment/TrackerAlignment/test/trackerTreeGenerator_cfg.py
84 строки
2 KB
Shahzad Malik Muzaffar
[ALCA-DB] py2/3 compatibility:drop use of __future__
22 ноя 2024, 20:15
22 ноя 2024, 20:15
c26340c
Код
Авторство
О чём код?
import FWCore.ParameterSet.Config as cms import os ## ## Process definition ## process = cms.Process("TrackerTreeGeneration") ## ## MessageLogger ## process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.threshold = 'INFO' process.MessageLogger.TrackerTreeGenerator=dict() process.MessageLogger.cerr.INFO.limit = 0 process.MessageLogger.cerr.default.limit = -1 process.MessageLogger.cerr.TrackerTreeGenerator = cms.untracked.PSet(limit = cms.untracked.int32(-1)) ## ## Process options ## process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) ) ## ## Input source ## process.source = cms.Source("EmptySource") ## ## Number of events ## process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) ) ## ## Geometry ## process.load("Configuration.Geometry.GeometryRecoDB_cff") ## ## Conditions ## # use always ideal conditions to get no influence from Alignment on absolute Positions, Orientations... # so it is clear that when choosing special regions in e.g. globalPhi, Modules of the same Rod are contained in the same region process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') from Configuration.AlCa.GlobalTag import GlobalTag #~ process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_design', '') process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_design', '') print("Using global tag "+process.GlobalTag.globaltag._value) ## ## Analyzer ## process.load("Alignment.TrackerAlignment.TrackerTreeGenerator_cfi") ## ## Output File Configuration ## process.TFileService = cms.Service("TFileService", fileName = cms.string(os.environ['CMSSW_BASE'] + '/src/Alignment/TrackerAlignment/hists/TrackerTree.root') ) ## ## Path ## process.p = cms.Path(process.TrackerTreeGenerator)