import CalibTracker.Configuration.Common.PoolDBESSource_cfi
process.trackerAlignment =  CalibTracker.Configuration.Common.PoolDBESSource_cfi.poolDBESSource.clone(
    connect = cms.string('sqlite_file:TrackerAlignment_Feb2010Cosmics_38T.db'),
    timetype = cms.string("runnumber"),
    toGet = cms.VPSet(cms.PSet(record = cms.string('TrackerAlignmentRcd'),
                               tag = cms.string('Alignments')
                               ))
    )
process.es_prefer_trackerAlignment = cms.ESPrefer("PoolDBESSource", "trackerAlignment")


from CondCore.DBCommon.CondDBSetup_cfi import *
process.APE = poolDBESSource.clone(
    connect = cms.string('frontier://FrontierProd/CMS_COND_31X_FROM21X'),
    timetype = cms.string("runnumber"),
    toGet = cms.VPSet(cms.PSet(record = cms.string('TrackerAlignmentErrorRcd'),
                               tag = cms.string('TrackerIdealGeometryErrors210_mc')
                               ))
    )
process.es_prefer_APE = cms.ESPrefer("PoolDBESSource", "APE")


## to apply misalignments
#TrackerDigiGeometryESModule.applyAlignment = True
   
### Load and Configure PeakDecoResiduals
process.load("Alignment.PeakDecoResiduals.PeakDecoResiduals_cfi")
process.PeakDecoResiduals.Tracks = 'TrackRefitter2'
process.PeakDecoResiduals.trajectoryInput = 'TrackRefitter2'
process.PeakDecoResiduals.debug = cms.bool(False)
process.PeakDecoResiduals.runOnCosmics = cms.bool(False)
Example #2
0
    toGet = cms.VPSet(cms.PSet(
    record = cms.string('TrackerAlignmentRcd'),
#    tag = cms.string('TrackerIdealGeometry210_mc')#IDEAL
    tag = cms.string('Tracker_Geometry_v5_offline')#SHMm
  ))
)
process.es_prefer_trackerAlignment = cms.ESPrefer("PoolDBESSource","myTrackerAlignment")

############################################################################
# APE always zero:
###########################################################################
process.myTrackerAlignmentErr = poolDBESSource.clone(
    connect = cms.string('frontier://FrontierProd/CMS_COND_31X_FROM21X'),
    toGet = cms.VPSet(
      cms.PSet(
       record = cms.string('TrackerAlignmentErrorRcd'),
        tag = cms.string('TrackerIdealGeometryErrors210_mc')
       )
      )
   )
process.es_prefer_trackerAlignmentErr = cms.ESPrefer("PoolDBESSource","myTrackerAlignmentErr")

#######################################################################
## Input File(s)
#######################################################################
process.source = cms.Source("PoolSource",
    fileNames = cms.untracked.vstring(
        '/store/express/BeamCommissioning09/StreamExpress/ALCARECO/v2/000/123/596/E640526B-3AE2-DE11-AAC3-000423D94990.root',
        '/store/express/BeamCommissioning09/StreamExpress/ALCARECO/v2/000/123/596/CED18FDD-34E2-DE11-BA11-000423D9A2AE.root',
        '/store/express/BeamCommissioning09/StreamExpress/ALCARECO/v2/000/123/596/CC81BA78-4DE2-DE11-8988-000423D6A6F4.root',
        '/store/express/BeamCommissioning09/StreamExpress/ALCARECO/v2/000/123/596/CA9B4219-3AE2-DE11-802D-0019B9F72CE5.root',
                                        connect = cms.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/PayLoads/CRAFT09/TrackerAlignment_2009_v1_prompt/131020-infty/TrackerAlignment_2009_v1_prompt.db'),
                                        timetype = cms.string("runnumber"),
                                        toGet = cms.VPSet(cms.PSet(record = cms.string('TrackerAlignmentRcd'),
                                                                   tag = cms.string('Alignments')
                                                                   ))
                                        )
process.es_prefer_trackerAlignment = cms.ESPrefer("PoolDBESSource", "trackerAlignment")

############################################################################
# load corrected beamspot
###########################################################################
process.myBeamspot = poolDBESSource.clone(
    connect = cms.string('frontier://PromptProd/CMS_COND_31X_BEAMSPOT'),
    toGet = cms.VPSet(
      cms.PSet(
       record = cms.string('BeamSpotObjectsRcd'),
        tag = cms.string('BeamSpotObjects_2009_v7_offline')
       )
      )
   )
process.es_prefer_corrBeamspot = cms.ESPrefer("PoolDBESSource","myBeamspot")







from CondCore.DBCommon.CondDBSetup_cfi import *
process.APE = poolDBESSource.clone(
                                        connect = cms.string('frontier://FrontierProd/CMS_COND_31X_FROM21X'),
Example #4
0
    toGet = cms.VPSet(cms.PSet(
    record = cms.string('TrackerAlignmentRcd'),
#    tag = cms.string('TrackerIdealGeometry210_mc')#IDEAL
    tag = cms.string('Tracker_Geometry_v5_offline')#SHMm
  ))
)
process.es_prefer_trackerAlignment = cms.ESPrefer("PoolDBESSource","myTrackerAlignment")

############################################################################
# APE always zero:
###########################################################################
process.myTrackerAlignmentErr = poolDBESSource.clone(
    connect = cms.string('frontier://FrontierProd/CMS_COND_31X_FROM21X'),
    toGet = cms.VPSet(
      cms.PSet(
       record = cms.string('TrackerAlignmentErrorExtendedRcd'),
        tag = cms.string('TrackerIdealGeometryErrors210_mc')
       )
      )
   )
process.es_prefer_trackerAlignmentErr = cms.ESPrefer("PoolDBESSource","myTrackerAlignmentErr")

#######################################################################
## Input File(s)
#######################################################################
process.source = cms.Source("PoolSource",
    fileNames = cms.untracked.vstring(
        '/store/express/BeamCommissioning09/StreamExpress/ALCARECO/v2/000/123/596/E640526B-3AE2-DE11-AAC3-000423D94990.root',
        '/store/express/BeamCommissioning09/StreamExpress/ALCARECO/v2/000/123/596/CED18FDD-34E2-DE11-BA11-000423D9A2AE.root',
        '/store/express/BeamCommissioning09/StreamExpress/ALCARECO/v2/000/123/596/CC81BA78-4DE2-DE11-8988-000423D6A6F4.root',
        '/store/express/BeamCommissioning09/StreamExpress/ALCARECO/v2/000/123/596/CA9B4219-3AE2-DE11-802D-0019B9F72CE5.root',