Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:14:27

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 import Geometry.DTGeometryBuilder.dtGeometryDB_cfi
0004 #
0005 # This cff provides a DTGeometry with the label 'idealForDigi' that is for sure matching
0006 # the ideal one and thus should be used in the digitisers.
0007 #
0008 idealForDigiDTGeometry = Geometry.DTGeometryBuilder.dtGeometryDB_cfi.DTGeometryESModule.clone()
0009 # The es_module providing fake (i.e. empty) alignment constants:
0010 from Alignment.CommonAlignmentProducer.fakeForIdealAlignmentProducer_cfi import *
0011 # need to set to False, see below:
0012 idealForDigiDTGeometry.applyAlignment = False
0013 # Label of the produced DTGeometry:
0014 idealForDigiDTGeometry.appendToDataLabel = 'idealForDigi'
0015 # Alignments are looked for with this label:
0016 idealForDigiDTGeometry.alignmentsLabel = 'fakeForIdeal'
0017 # would need conversion to python
0018 #es_source fakeDTAlignmentSource = EmptyESSource {
0019 #    string recordName = "DTAlignmentRcd"
0020 #    vuint32 firstValid = {1}
0021 #    bool iovIsRunNotTime = true
0022 #}
0023 #es_source fakeDTAlignmentErrorSource = EmptyESSource {
0024 #    string recordName = "DTAlignmentErrorExtendedRcd"
0025 #    vuint32 firstValid = {1}
0026 #    bool iovIsRunNotTime = true
0027 #}
0028 ## care: This might lead to a duplication with CSC and tracker equivalents of this file:
0029 #es_source fakeGlobalPositionSource = EmptyESSource {
0030 #    string recordName = "GlobalPositionRcd"
0031 #    vuint32 firstValid = {1}
0032 #    bool iovIsRunNotTime = true
0033 #}
0034 
0035 # Comments by GF:
0036 # - In anticipation of the removal of the applyAlignment flag, I'd like to keep it true.
0037 # - Then we would need to get IOVs for the fake alignments,
0038 #   * either using FakeAlignmentSource instead of FakeAlignmentProducer in fakeForIdealAlignmentProducer.cfi
0039 #   * or by using the commented IOV settings above.
0040 # - But this causes problems in co-existence with e.g. GlobalTag: 
0041 #   Both Globaltag as well as FakeAlignmentSource provide IOV - it is not distinguished to provide IOV for 
0042 #   a given label only (e.g. 'fakeForIdeal' compared to '').
0043 # - I'll try to contact framework people for CMSSW_2_2_0 and above.