CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
GeneralSetup Namespace Reference

Functions

def setup
 

Function Documentation

def GeneralSetup.setup (   process,
  global_tag,
  zero_tesla = False 
)
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.

References print().

Referenced by BeautifulSoup.PageElement._invert(), DQMGlobalEDAnalyzerBase< Histograms_TICLTrackstersEdgesValidation, Args...>.accumulate(), DQMEDAnalyzer.accumulate(), PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo.analyze(), DTResidualCalibration.analyze(), SiStripCommissioningSource.analyze(), GeneralPurposeTrackAnalyzer.analyze(), AlignmentProducerBase.applyAlignmentsToDB(), GenericBenchmarkAnalyzer.beginJob(), DQMOneLumiEDAnalyzer<>.beginLuminosityBlock(), DQMOneEDAnalyzer< edm::LuminosityBlockCache< alcabeammonitor::NoCache > >.beginRun(), DQMEDAnalyzer.beginRun(), GeneralPurposeTrackAnalyzer.beginRun(), CandCombinerBase< OutputCollection, CandPtr >.combine(), SectorProcessor.configure(), SiStripLorentzAngleCalibration.derivatives(), DQMOneLumiEDAnalyzer<>.endLuminosityBlockProduce(), DQMOneEDAnalyzer< edm::LuminosityBlockCache< alcabeammonitor::NoCache > >.endRunProduce(), CommissioningTask.eventSetup(), __class__< T >.filter(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.find(), edm.get(), DQMGlobalEDAnalyzerBase< Histograms_TICLTrackstersEdgesValidation, Args...>.globalBeginRun(), DQMGlobalEDAnalyzer< APVGain::APVGainHistograms >.globalEndRunProduce(), DQMGlobalRunSummaryEDAnalyzer< CaloL1Information::monitoringDataHolder, CaloL1Information::perRunSummaryMonitoringInformation, edm::StreamCache< CaloL1Information::perStreamMonitoringDataHolder >, edm::LuminosityBlockSummaryCache< CaloL1Information::perLumiBlockMonitoringInformation > >.globalEndRunProduce(), CosmicTrackingParticleSelector.select(), RPCSim.setRPCSimSetUp(), GlobalMuonRefitter.setServices(), and MuonServiceProxy.update().

2 
3 def setup(process, global_tag, zero_tesla = False):
4  """General setup of an alignment process.
5 
6  Arguments:
7  - `process`: cms.Process object
8  - `global_tag`: global tag to be used
9  - `zero_tesla`: if 'True' the B-field map for 0T is enforced
10  """
11 
12  # MessageLogger for convenient output
13  # --------------------------------------------------------------------------
14  process.load('Alignment.MillePedeAlignmentAlgorithm.alignmentsetup.myMessageLogger_cff')
15 
16  # Load the conditions
17  # --------------------------------------------------------------------------
18  if zero_tesla:
19  # actually only needed for 0T MC samples, but does not harm for 0T data:
20  process.load("Configuration.StandardSequences.MagneticField_0T_cff")
21  else:
22  process.load('Configuration.StandardSequences.MagneticField_cff')
23  process.load('Configuration.Geometry.GeometryRecoDB_cff')
24  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
25 
26  from Configuration.AlCa.GlobalTag import GlobalTag
27  process.GlobalTag = GlobalTag(process.GlobalTag, global_tag)
28  print("Using Global Tag:", process.GlobalTag.globaltag._value)
29 
30  return process # not required because the cms.Process is modified in place
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47