Exemplo n.º 1
0
    #fileNames = cms.untracked.vstring(FileNames_CSA14Test)
    #fileNames = cms.untracked.vstring(FileNames_PionGunTest)
    #fileNames = cms.untracked.vstring("root://eoscms//eos/cms/store/data/Run2015A/Jet/RECO/PromptReco-v1/000/247/992/00000/6C94F6E2-2415-E511-BDD0-02163E011938.root")
    #skipEvents = cms.untracked.uint32(0),
    #firstEvent = cms.untracked.uint32(1),
)

### 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),
Exemplo n.º 2
0
process.TFileService = cms.Service("TFileService",
    fileName = cms.string(options.OutFilename) 
)

### Check parameters options
if   options.TrackLabel != 'generalTracks' and options.TrackLabel != 'TrackRefitter' and options.TrackLabel != 'esGeneralTracks' and options.InputRefitter == False and options.InputRefitter == False:
	print '[NOTE] Using additional track label, options.TrackLabel = '+options.TrackLabel
elif options.InputRefitter == True and options.InputReducer == True:
	print '[ERROR]: Should not make InputRefitter and InputReducer are True!'
elif options.InputRefitter == True and options.TrackLabel == 'esGeneralTracks':
	print '[ERROR]: Should not make InputRefitter is True and TrackLabel=esGeneralTracks '
elif options.InputReducer == True and options.TrackLabel == 'TrackRefitter':
	print '[ERROR]: Should not make InputReducer is True and TrackLabel=TrackRefitter '
elif options.TrackLabel == 'TrackRefitter' or options.InputRefitter == True and options.InputReducer == False:
	print '[NOTE]: Using Refitted files, options.TrackLabel = TrackRefitter'
	options.TrackLabel = 'TrackRefitter'
elif options.TrackLabel == 'esGeneralTracks' or options.InputRefitter == False and options.InputReducer == True:
	print '[NOTE]: Using Reduced files, options.TrackLabel = esGeneralTracks'
	options.TrackLabel = 'esGeneralTracks'  # it was ESTracksReducer

print 'Load lables:'
print ' options.RecHitLabel = '+options.RecHitLabel
print ' options.TrackLabel = '+options.TrackLabel

### Input parameters
process.ESAlignmentTool = cms.EDAnalyzer('SkimTest',
	RecHitLabel = cms.InputTag(options.RecHitLabel),
	TrackLabel = cms.InputTag(options.TrackLabel),
	InputRefitter = cms.bool(options.InputRefitter),
)
process.p = cms.Path(process.ESAlignmentTool)
Exemplo n.º 3
0
### input
from inputFiles_cfi import *  #FileNames
process.source = cms.Source(
    "PoolSource",
    fileNames=cms.untracked.vstring(FileNames)
    #fileNames = cms.untracked.vstring("root://eoscms//eos/cms/store/data/Run2015A/Jet/RECO/PromptReco-v1/000/247/992/00000/6C94F6E2-2415-E511-BDD0-02163E011938.root")
)

### 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),