Public Member Functions | |
def | insertInto |
def | setRunDistribution |
Public Attributes | |
firstRun | |
setRunNumber | |
The class is a Source whose run is chosen randomly. This initializes identically to a cms.Source and after being initialized the run number distribution is set by calling 'setRunDistribution'.
Definition at line 3 of file RandomRunSource.py.
def RandomRunSource.RandomRunSource.insertInto | ( | self, | |
parameterSet, | |||
myname | |||
) |
Definition at line 14 of file RandomRunSource.py.
References HLTTauDQMSummaryPlotter.type_, FWJobMetadataManager::Data.type_, CutBasedElectronID.type_, reco::MuonMETCorrectionData.type_, HLTTauDQMTrkPlotter.type_, OpticalAlignMeasurementInfo.type_, edm::eventsetup::ComponentDescription.type_, reco::MVAMEtJetInfo.type_, StringCutObjectSelector< pat::Jet >.type_, StringCutObjectSelector< reco::CaloTau >.type_, StringCutObjectSelector< reco::JetID >.type_, StringCutObjectSelector< reco::Candidate::LorentzVector >.type_, StringObjectFunction< reco::PFTau >.type_, StringCutObjectSelector< T2 >.type_, StringCutObjectSelector< T2, true >.type_, StringCutObjectSelector< reco::GenParticle >.type_, StringObjectFunction< reco::RecoTauPiZero >.type_, StringCutObjectSelector< reco::PFCandidate >.type_, StringCutObjectSelector< pat::TriggerObjectStandAlone >.type_, StringCutObjectSelector< T1, true >.type_, StringCutObjectSelector< reco::Muon, false >.type_, StringCutObjectSelector< T, Lazy >.type_, StringCutObjectSelector< reco::Muon > vector< MatchStruct >.type_, StringCutObjectSelector< T, DefaultLazyness >.type_, StringCutObjectSelector< reco::TrackRef, false >.type_, StringCutObjectSelector< reco::RecoTauPiZero >.type_, StringCutObjectSelector< reco::Track >.type_, StringCutObjectSelector< pat::Muon >.type_, StringCutObjectSelector< T, true >.type_, StringCutObjectSelector< l1extra::L1MuonParticle >.type_, StringCutObjectSelector< typename Classifier::Categories >.type_, StringCutObjectSelector< T >.type_, StringCutObjectSelector< Object >.type_, StringCutObjectSelector< reco::Photon >.type_, StringCutObjectSelector< reco::Candidate >.type_, StringCutObjectSelector< reco::Vertex >.type_, StringCutObjectSelector< trigger::TriggerObject >.type_, StringCutObjectSelector< reco::PFTau >.type_, StringCutObjectSelector< MuonPointerPair, true >.type_, StringCutObjectSelector< reco::BeamSpot >.type_, StringObjectFunction< T, DefaultLazyness >.type_, StringCutObjectSelector< reco::GsfElectron >.type_, StringCutObjectSelector< pat::pat::DiObjectProxy >.type_, StringCutObjectSelector< reco::utils::ClusterTotals >.type_, StringCutObjectSelector< PATObjType >.type_, StringCutObjectSelector< reco::CaloMET >.type_, StringCutObjectSelector< reco::Candidate, true >.type_, StringCutObjectSelector< pat::DiObjectProxy, true >.type_, StringCutObjectSelector< reco::PFJet >.type_, StringCutObjectSelector< reco::Muon >.type_, StringCutObjectSelector< reco::CaloMuon, false >.type_, StringObjectFunction< T >.type_, StringObjectFunction< Object >.type_, StringObjectFunction< reco::Candidate >.type_, StringObjectFunction< T, true >.type_, StringObjectFunction< reco::Candidate, true >.type_, StringObjectFunction< reco::PFJet >.type_, StringCutObjectSelector< T1 >.type_, StringCutObjectSelector< reco::CaloJet >.type_, StringCutObjectSelector< reco::Jet >.type_, StringCutObjectSelector< TriggerObject >.type_, StringCutObjectSelector< GenParticle >.type_, StringObjectFunction< Object > ss.type_, StringCutObjectSelector< Object > ss.type_, MuonRefProducer.type_, pftools::ParticleFiltrationDecision.type_, AlignableBuilder::LevelInfo.type_, TauDQMHistPlotter::cfgEntryProcess.type_, pos::PixelTKFECParameters.type_, reco::TrackingRecHitInfo.type_, NoProductErrorThrower.type_, pat::TriggerFilter.type_, edm::ObjectWithDict.type_, CalibAnalyzer< Ref, Rec, Alg >.type_, pat::TriggerCondition.type_, reco::parser::AnyMethodArgumentFixup.type_, reco::MVAMEtPFCandInfo.type_, HLTTauDQMFilter.type_, DBReader.type_, GsfElectronDataAnalyzer.type_, edm::PileUp.type_, edm::ParameterWildcardBase.type_, NoBranchErrorThrower.type_, edm::eventsetup::EventSetupRecordKey.type_, edm::AllowedLabelsDescriptionBase.type_, fwlite::internal::DataKey.type_, evf::FUShmRecoCell.type_, BinomialInterval.type_, pftools::CandidateWrapper.type_, OpticalAlignInfo.type_, edm::eventsetup::DataKey.type_, l1extra::L1EmParticle.type_, l1extra::L1JetParticle.type_, ParticleReplacerClass::MinVisPtCut.type_, PFBlockLink.type_, pat::JetCorrFactorsProducer.type_, Entry.type_, edm::ParameterDescriptionBase.type_, pos::PixelPortCardConfig.type_, edm::Handle< GenericObject >.type_, BeamSpotObjects.type_, L1GctInternHFData.type_, l1extra::L1EtMissParticle.type_, edm::Handle< FWGenericObject >.type_, reco::PFBlockElement.type_, funct::RootIntegrator.type_, L1GctInternHtMiss.type_, reco::BeamSpot.type_, TrackerDpgAnalysis.type_, L1GctInternEtSum.type_, edm::TypeWithDict.type_, L1GctInternJetData.type_, edm::TypeBases.type_, SiStripConfigDb::Run.type_, edm::TypeDataMembers.type_, ConfigurableHisto.type_, edm::TypeFunctionMembers.type_, reco::Muon.type_, Mixins._TypedParameterizable.type_(), GsfElectronFakeAnalyzer.type_, edm::IndexIntoFile::IndexIntoFileItrImpl.type_, and Config.SubProcess.type_().
def RandomRunSource.RandomRunSource.setRunDistribution | ( | self, | |
runsAndProbs | |||
) |
Pass a list of tuple pairs, with the first item of the pair a run number and the second number of the pair a weight. The class will normalize the weights so you do not have to. The pairs will be used to randomly choose what Run should be assigned to the job.
Definition at line 7 of file RandomRunSource.py.
RandomRunSource.RandomRunSource.firstRun |
Definition at line 34 of file RandomRunSource.py.
RandomRunSource.RandomRunSource.setRunNumber |
Definition at line 31 of file RandomRunSource.py.