How to Put and Get Bowed Parameters in alignments_MP.db

This page serves as How-To for putting the Bowed Surface Alignmant Parameters in the Mille/Pede Tracker alignment process, and How-To for getting the Bowed Surface Alignmant Parameters in the offline Validation process. They are advanced steps after running the Mille/Pede Tracker Alignment. see this page how to run the Mille/Pede Tracker Alignment http://grid.kfki.hu/twiki/bin/view/CMS/TrackerAlignmentHowTo.

Put the Bowed Parameters in Mille/Pede

After Mille jobs fetched ( mps_fetch.pl ), before submiting Pede jobs ( mps_fire.pl -mf ), In the jobData/jobm/alignment_merge.py file ,

Add sentence

 cms.PSet(
    record = cms.string('TrackerSurfaceDeformationRcd'),
    tag = cms.string('Deformations')
    ),

after the sentence

toPut = cms.VPSet(cms.PSet(
        record = cms.string('TrackerAlignmentRcd'),
        tag = cms.string('Alignments')
        ),

And add sentence process.AlignmentProducer.saveDeformationsToDB = True

If this 'TrackerSurfaceDeformationRcd' is not included in the jobData/jobm/alignment_merge.py file, the alignments_MP.db has a smaller size. The mps_setupm.pl could be used to setup another jobData/jobm<n> directory and then edit the jobData/jobm<n>/alignment_merge.py before runing Pede jobs by mps_fire.pl -m.

Get the Bowed Parameters in offline Validation

In the file defaultValidation_Cosmics_CMSSW_3_11_0.ini used by validateAlignments.py. The templates are setted as

[alternateTemplates]
TrackSelectionTemplate=TrackSelectionCosmicsData
offlineTemplate=CosmicsOfflineValidation

A new template CosmicsOfflineValidation_Deformations created based on template CosmicsOfflineValidation by adding the following sentences in CMSSW_4_1_2,

from CondCore.DBCommon.CondDBSetup_cfi import *
process.trackerSurfaces = cms.ESSource(
    "PoolDBESSource",
    CondDBSetup,
    connect = cms.string('.oO[dbpath]Oo.'),
    toGet = cms.VPSet(cms.PSet(record = cms.string("TrackerSurfaceDeformationRcd"),
                              tag = cms.string("Deformations")
                               )
                      )
    )
process.es_prefer_trackerSurfaces = cms.ESPrefer("PoolDBESSource", "trackerSurfaces")

The offlineTemplate=CosmicsOfflineValidation_Deformations is used for getting the "TrackerSurfaceDeformationRcd" in offline validation.

-- XiaWan - 21-Jun-2011

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2011-06-30 - unknown
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback