1 def setup(process, global_tag, zero_tesla = False):
2 """General setup of an alignment process.
5 - `process`: cms.Process object
6 - `global_tag`: global tag to be used
7 - `zero_tesla`: if 'True' the B-field map for 0T is enforced
12 process.load(
'Alignment.MillePedeAlignmentAlgorithm.alignmentsetup.myMessageLogger_cff')
18 process.load(
"Configuration.StandardSequences.MagneticField_0T_cff")
20 process.load(
'Configuration.StandardSequences.MagneticField_cff')
21 process.load(
'Configuration.Geometry.GeometryRecoDB_cff')
22 process.load(
"Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
25 process.GlobalTag =
GlobalTag(process.GlobalTag, global_tag)
26 print "Using Global Tag:", process.GlobalTag.globaltag._value