CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
idealForDigiTrackerGeometry_cff.py
Go to the documentation of this file.
2 
4 #
5 # This cff provides a TrackerGeometry with the label 'idealForDigi' that is for sure matching
6 # the ideal one and thus should be used in the digitisers.
7 #
8 idealForDigiTrackerGeometry = Geometry.TrackerGeometryBuilder.trackerGeometry_cfi.trackerGeometry.clone()
9 # The es_module providing fake (i.e. empty) alignment constants:
11 # need to set to False, see below:
12 idealForDigiTrackerGeometry.applyAlignment = False
13 # Label of the produced TrackerGeometry:
14 idealForDigiTrackerGeometry.appendToDataLabel = 'idealForDigi'
15 # Alignments are looked for with this label:
16 idealForDigiTrackerGeometry.alignmentsLabel = 'fakeForIdeal'
17 
18 import Geometry.TrackerGeometryBuilder.trackerGeometryConstants_cfi as trackerGeometryConstants_cfi
19 idealForDigiTrackerGeometry.trackerGeometryConstants = cms.PSet(trackerGeometryConstants_cfi.trackerGeometryConstants)
20 
21 #fakeTrackerAlignmentSource = cms.ESSource("EmptyESSource",
22 # recordName = cms.string("TrackerAlignmentRcd"),
23 # firstValid = cms.vuint32(1),
24 # iovIsRunNotTime = cms.bool(True)
25 # )
26 #The follwoing to be converted as the above...
27 #es_source fakeTrackerAlignmentErrorSource = EmptyESSource {
28 # string recordName = "TrackerAlignmentErrorRcd"
29 # vuint32 firstValid = {1}
30 # bool iovIsRunNotTime = true
31 #}
32 ## care: This might lead to a duplication with DT and CSC equivalents of this file:
33 #es_source fakeGlobalPositionSource = EmptyESSource {
34 # string recordName = "GlobalPositionRcd"
35 # vuint32 firstValid = {1}
36 # bool iovIsRunNotTime = true
37 #}
38 
39 # Comments by GF:
40 # - In anticipation of the removal of the applyAlignment flag, I'd like to keep it true.
41 # - Then we would need to get IOVs for the fake alignments,
42 # * either using FakeAlignmentSource instead of FakeAlignmentProducer in fakeForIdealAlignmentProducer.cfi
43 # * or by using the commented IOV settings above.
44 # - But this causes problems in co-existence with e.g. GlobalTag:
45 # Both Globaltag as well as FakeAlignmentSource provide IOV - it is not distinguished to provide IOV for
46 # a given label only (e.g. 'fakeForIdeal' compared to '').
47 # - I'll try to contact framework people for CMSSW_2_2_0 and above.