Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
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)