CMS 3D CMS Logo

Functions
GeneralSetup Namespace Reference

Functions

def setup (process, global_tag, zero_tesla=False)
 

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 edm.print().

Referenced by DTCombinatorialPatternReco4D.algoName(), DTMeantimerPatternReco4D.algoName(), DTRefitAndCombineReco4D.algoName(), DTCombinatorialPatternReco.algoName(), DTCombinatorialExtendedPatternReco.algoName(), DTMeantimerPatternReco.algoName(), DQMGenericTnPClient.analyze(), TtFullHadSignalSelMVATrainer.analyze(), PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo.analyze(), TtSemiLepSignalSelMVATrainer.analyze(), TtSemiLepJetCombMVATrainer.analyze(), SiStripCommissioningSource.analyze(), AlignmentProducerBase.applyAlignmentsToDB(), MuonAssociatorByHits.associateSimToReco(), TtSemiLepJetCombMaxSumPtWMass.beginJob(), TtSemiLepJetCombGeom.beginJob(), TtSemiLepJetCombWMassMaxSumPt.beginJob(), TtSemiLepJetCombWMassDeltaTopMass.beginJob(), GenericBenchmarkAnalyzer.beginJob(), DTT0Correction.beginJob(), DTTTrigCorrectionFirst.beginJob(), DTTTrigCorrection.beginJob(), DTNoiseComputation.beginJob(), edm::MixingModule.beginJob(), edm::SecondaryEventProvider.beginLuminosityBlock(), DTNoiseTask.beginLuminosityBlock(), edm::SecondaryEventProvider.beginRun(), one::dqmimplementation::DQMRunEDProducer< edm::one::WatchLuminosityBlocks >.beginRun(), egHLT::BinData.BinData(), TriggerBxMonitor.bookHistograms(), TriggerRatesMonitor.bookHistograms(), MTDThresholdClusterizer.clusterize(), PixelThresholdClusterizer.clusterizeDetUnitT(), hcaldqm::quantity::CrateQuantity.CrateQuantity(), edm::PreMixingModule.createnewEDProduct(), edm::DataMixingModule.createnewEDProduct(), SiStripCommissioningSource.createTasks(), triggerExpression::Data.Data(), SiStripLorentzAngleCalibration.derivatives(), LumiMonitor.dqmAnalyze(), edm::PileUp.dropUnwantedBranches(), egHLT::OffEgSel.eeCuts(), egHLT::EgCutValues.EgCutValues(), pat::helper::KinResolutionsLoader.enabled(), pat::helper::VertexingHelper.enabled(), ESClient.endJobAnalyze(), edm::SecondaryEventProvider.endLuminosityBlock(), DTEfficiencyTask.endLuminosityBlock(), DTResolutionAnalysisTask.endLuminosityBlock(), edm::SecondaryEventProvider.endRun(), DQMEDHarvester.endRun(), CommissioningTask.eventSetup(), hcaldqm::quantity::EventType.EventType(), hcaldqm::quantity::FEDQuantity.FEDQuantity(), edm::BMixingModule.finalizeEvent(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.find(), ConditionDumperInEdm.get(), edm.get(), ME0DigiPreRecoModel.getGeometry(), GEMDigiModel.getGeometry(), ME0DigiModel.getGeometry(), FWPathsPopup.hasChanges(), TrackingTruthAccumulator.initializeEvent(), CaloTruthAccumulator.initializeEvent(), TriggerHelper.off(), GenericTriggerEventFlag.off(), egHLT::OffEgSel.OffEgSel(), EgammaHLTPixelMatchElectronAlgo.operator=(), PdtEntry.PdtEntry(), PixelClusterSelectorTopBottom.PixelClusterSelectorTopBottom(), TtFullHadSignalSelMVAComputer.produce(), TtSemiLepSignalSelMVAComputer.produce(), TtSemiLepJetCombMVAComputer.produce(), EDMtoMEConverter.produce(), ElectronSeedGenerator.run(), SiStripElectronSeedGenerator.run(), CosmicTrackingParticleSelector.select(), triggerExpression::Data.setEvent(), EcalFenixTcp.setPointers(), RPCSim.setRPCSimSetUp(), CmsShowMainBase.startupTasks(), StripClusterSelectorTopBottom.StripClusterSelectorTopBottom(), MuonServiceProxy.update(), AlignmentAlgorithmBase.~AlignmentAlgorithmBase(), BaseTagInfoPlotter.~BaseTagInfoPlotter(), hcaldqm::quantity::CrateQuantity.~CrateQuantity(), DTRecSegment2DBaseAlgo.~DTRecSegment2DBaseAlgo(), DTRecSegment4DBaseAlgo.~DTRecSegment4DBaseAlgo(), EcalTrigPrimFunctionalAlgo.~EcalTrigPrimFunctionalAlgo(), hcaldqm::quantity::FEDQuantity.~FEDQuantity(), HIPAlignmentAlgorithm.~HIPAlignmentAlgorithm(), IntegratedCalibrationBase.~IntegratedCalibrationBase(), pat::JetCorrFactorsProducer.~JetCorrFactorsProducer(), reco::helper::JetIDHelper.~JetIDHelper(), SingleTopTChannelLepton_miniAOD::MonitorEnsemble.~MonitorEnsemble(), TopSingleLepton_miniAOD::MonitorEnsemble.~MonitorEnsemble(), TopSingleLepton::MonitorEnsemble.~MonitorEnsemble(), SingleTopTChannelLepton::MonitorEnsemble.~MonitorEnsemble(), TopDiLeptonOffline::MonitorEnsemble.~MonitorEnsemble(), MuonDTLocalMillepedeAlgorithm.~MuonDTLocalMillepedeAlgorithm(), MuonMillepedeAlgorithm.~MuonMillepedeAlgorithm(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >.~MVAModuleHelper(), PatJetAnalyzer.~PatJetAnalyzer(), PatZToMuMuAnalyzer.~PatZToMuMuAnalyzer(), PrescaleWeightProvider.~PrescaleWeightProvider(), reco::tau::RecoTauEventHolderPlugin.~RecoTauEventHolderPlugin(), RPCRecHitBaseAlgo.~RPCRecHitBaseAlgo(), RPCRecHitProducer.~RPCRecHitProducer(), SelectionStep< Object >.~SelectionStep(), SingleTopTChannelLeptonDQM.~SingleTopTChannelLeptonDQM(), SingleTopTChannelLeptonDQM_miniAOD.~SingleTopTChannelLeptonDQM_miniAOD(), TopDiLeptonOfflineDQM.~TopDiLeptonOfflineDQM(), TopSingleLeptonDQM.~TopSingleLeptonDQM(), TopSingleLeptonDQM_miniAOD.~TopSingleLeptonDQM_miniAOD(), EgammaHLTGsfTrackVarProducer::TrackExtrapolator.~TrackExtrapolator(), and l1t::WriterProxy.~WriterProxy().

2 def setup(process, global_tag, zero_tesla = False):
3  """General setup of an alignment process.
4 
5  Arguments:
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
9  """
10 
11  # MessageLogger for convenient output
12  # --------------------------------------------------------------------------
13  process.load('Alignment.MillePedeAlignmentAlgorithm.alignmentsetup.myMessageLogger_cff')
14 
15  # Load the conditions
16  # --------------------------------------------------------------------------
17  if zero_tesla:
18  # actually only needed for 0T MC samples, but does not harm for 0T data:
19  process.load("Configuration.StandardSequences.MagneticField_0T_cff")
20  else:
21  process.load('Configuration.StandardSequences.MagneticField_cff')
22  process.load('Configuration.Geometry.GeometryRecoDB_cff')
23  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
24 
25  from Configuration.AlCa.GlobalTag import GlobalTag
26  process.GlobalTag = GlobalTag(process.GlobalTag, global_tag)
27  print("Using Global Tag:", process.GlobalTag.globaltag._value)
28 
29  return process # not required because the cms.Process is modified in place
30 
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66