HCAL Alignment

NEW This twiki topic is being written.

This twiki topic explains how to upload the HCAL alignment constants to CondDB.

The steps:

1. prepare the constants in text files

Here need to explain how DetId works.

For example,
https://github.com/cms-sw/cmssw/blob/CMSSW_7_6_X/Geometry/CaloEventSetup/plugins/FakeCaloAlignmentEP.cc#L197-L200 i runs from 0 to HcalGeometry::numberOfEndcapAlignments().
Then i is converted to HcalDetId by HcalGeometry::detIdFromEndcapAlignmentIndex():

HcalDetId is a subclass of DetId

https://github.com/cms-sw/cmssw/blob/CMSSW_7_6_X/DataFormats/DetId/interface/DetId.h DetID is internally merely a uint32_t and can be converted to a uint32_t.

AlignTransform is defined at:
https://github.com/cms-sw/cmssw/blob/CMSSW_7_6_X/CondFormats/Alignment/interface/AlignTransform.h It has three members: translation, euler angles, and an id. The id is align::ID, which is just a uint32_t at
: https://github.com/cms-sw/cmssw/blob/CMSSW_7_6_X/CondFormats/Alignment/interface/Definitions.h

2. convert them to sqlite

3. upload to dropbox

Responsible: TaiSakuma

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2016-02-25 - TaiSakuma
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CMSPublic All webs login

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