General setup of an alignment process.
Arguments:
- `process`: cms.Process object
- `global_tag`: global tag to be used
- `zero_tesla`: if 'True' the B-field map for 0T is enforced
Definition at line 2 of file GeneralSetup.py.
2 def setup(process, global_tag, zero_tesla = False):
3 """General setup of an alignment process.
6 - `process`: cms.Process object
7 - `global_tag`: global tag to be used
8 - `zero_tesla`: if 'True' the B-field map for 0T is enforced
13 process.load(
'Alignment.MillePedeAlignmentAlgorithm.alignmentsetup.myMessageLogger_cff')
19 process.load(
"Configuration.StandardSequences.MagneticField_0T_cff")
21 process.load(
'Configuration.StandardSequences.MagneticField_cff')
22 process.load(
'Configuration.Geometry.GeometryRecoDB_cff')
23 process.load(
"Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
26 process.GlobalTag =
GlobalTag(process.GlobalTag, global_tag)
27 print(
"Using Global Tag:", process.GlobalTag.globaltag._value)
References edm.print().