Exemplo n.º 1
0
### output
process.TFileService = cms.Service("TFileService",
    fileName = cms.string(options.OutFilename) 
)

### Check parameters options
if options.InputRefitter == False and options.TrackLabel == 'TrackRefitter':
    print 'WARNING: Not using Refit files, options.TrackLabel = generalTracks'
    options.TrackLabel = 'generalTracks' 
print 'Load lables:'
print ' options.RecHitLabel = '+options.RecHitLabel
print ' options.TrackLabel = '+options.TrackLabel

if options.IterN == 1 and options.OverwriteRotationM == False:
    print 'WARNING: First iter, options.OverwriteRotationM = True' 
    options.OverwriteRotationM = True

### Input parameters
from AlignmentTool.ESAlignTool.DefaultESLocation_cfi import *  
from inputMatrixElements_cfi import * #MatrixElementsTmp # Modify inputMatrixElements_cfi.py for Matrix Elements 
process.ESAlignmentTool = cms.EDAnalyzer('ESAlignTool',
    RecHitLabel        = cms.InputTag(options.RecHitLabel),
    TrackLabel         = cms.InputTag(options.TrackLabel),
    IterN              = cms.uint32(options.IterN),
    Debug              = cms.bool(options.Debug),
    InputRefitter      = cms.bool(options.InputRefitter),
    DrawMagField       = cms.bool(options.DrawMagField),
    PrintPosition      = cms.bool(options.PrintPosition),
    PrintMatrix        = cms.bool(options.PrintMatrix),
    CalculateESorigin  = cms.bool(options.CalculateESorigin),
    CalculateESaxes    = cms.bool(options.CalculateESaxes),
Exemplo n.º 2
0
### output
process.TFileService = cms.Service("TFileService",
                                   fileName=cms.string(options.OutFilename))

### Check parameters options
if options.InputRefitter == False and options.TrackLabel == 'TrackRefitter':
    print 'WARNING: Not using Refit files, options.TrackLabel = generalTracks'
    options.TrackLabel = 'generalTracks'
print 'Load lables:'
print ' options.RecHitLabel = ' + options.RecHitLabel
print ' options.TrackLabel = ' + options.TrackLabel

if options.IterN == 1 and options.OverwriteRotationM == False:
    print 'WARNING: First iter, options.OverwriteRotationM = True'
    options.OverwriteRotationM = True

### Input parameters
from AlignmentTool.ESAlignTool.DefaultESLocation_cfi import *
from inputMatrixElements_cfi import *  #MatrixElementsTmp # Modify inputMatrixElements_cfi.py for Matrix Elements
process.ESAlignmentTool = cms.EDAnalyzer(
    'ESAlignTool',
    RecHitLabel=cms.InputTag(options.RecHitLabel),
    TrackLabel=cms.InputTag(options.TrackLabel),
    IterN=cms.uint32(options.IterN),
    Debug=cms.bool(options.Debug),
    InputRefitter=cms.bool(options.InputRefitter),
    DrawMagField=cms.bool(options.DrawMagField),
    PrintPosition=cms.bool(options.PrintPosition),
    PrintMatrix=cms.bool(options.PrintMatrix),
    CalculateESorigin=cms.bool(options.CalculateESorigin),