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 1 of file GeneralSetup.py.

Referenced by DTCombinatorialPatternReco4D.algoName(), DTMeantimerPatternReco4D.algoName(), DTRefitAndCombineReco4D.algoName(), DTCombinatorialPatternReco.algoName(), DTCombinatorialExtendedPatternReco.algoName(), DTMeantimerPatternReco.algoName(), DQMGenericTnPClient.analyze(), TtFullHadSignalSelMVATrainer.analyze(), TtSemiLepJetCombMVATrainer.analyze(), PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo.analyze(), TtSemiLepSignalSelMVATrainer.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(), edm::SecondaryEventProvider.beginRun(), egHLT::BinData.BinData(), TriggerBxMonitor.bookHistograms(), TriggerRatesMonitor.bookHistograms(), PixelThresholdClusterizer.clusterizeDetUnitT(), hcaldqm::quantity::CrateQuantity.CrateQuantity(), 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(), 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(), CaloTruthAccumulator.initializeEvent(), TrackingTruthAccumulator.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(), edm::DataMixingEcalDigiWorkerProd.setESAccess(), 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().

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