CMS 3D CMS Logo

List of all members | Public Member Functions
config.CFG Class Reference
Inheritance diagram for config.CFG:
config.Analyzer config.Component config.Service config.DataComponent config.MCComponent

Public Member Functions

def __init__ (self, kwargs)
 
def __str__ (self)
 
def clone (self, kwargs)
 

Detailed Description

Base configuration class. The attributes are used to store parameters of any type

Definition at line 36 of file config.py.

Constructor & Destructor Documentation

def config.CFG.__init__ (   self,
  kwargs 
)
All keyword arguments are added as attributes.

Definition at line 38 of file config.py.

38  def __init__(self, **kwargs):
39  '''All keyword arguments are added as attributes.'''
40  self.__dict__.update( **kwargs )
41 
def __init__(self, kwargs)
Definition: config.py:38

Member Function Documentation

def config.CFG.__str__ (   self)
A useful printout

Definition at line 42 of file config.py.

References join(), ElectronMVAID.ElectronMVAID.name, OAQualityTranslator.name(), FP420HitsObject.name(), TrackerHitsObject.name(), average.Average.name, counter.Counter.name, histograms.Histograms.name, AlignableObjectId::entry.name, RPCGeomServ.name(), funct::Parameter.name(), FWLite.ElectronMVAID.name, SymmetryFit.name(), TmModule.name, cond::persistency::TAG::NAME.name, cond::persistency::GLOBAL_TAG::NAME.name, cond::persistency::RUN_INFO::RUN_NUMBER.name, cond::persistency::TAG::TIME_TYPE.name, CmsMTDStringToEnum.name(), CmsTrackerStringToEnum.name(), listHistos.plotInfo.name, PassiveHit.name(), cond::persistency::GLOBAL_TAG::VALIDITY.name, core.autovars.NTupleVariable.name, cond::persistency::RUN_INFO::START_TIME.name, cond::persistency::TAG::OBJECT_TYPE.name, HGCalProcessorBaseT< InputCollection, OutputCollection >.name(), FeldmanCousinsBinomialInterval.name(), SterneBinomialInterval.name(), cond::persistency::GLOBAL_TAG::DESCRIPTION.name, cond::persistency::RUN_INFO::END_TIME.name, cond::persistency::TAG::SYNCHRONIZATION.name, cond::persistency::GLOBAL_TAG::RELEASE.name, AxesNames.name(), MEPSet.name, cond::persistency::TAG::END_OF_VALIDITY.name, candidate_functions::CandidateCut.name(), ExpressionEvaluatorCut.name(), PCaloHit.name(), cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, GeomDetType.name(), cond::persistency::TAG::DESCRIPTION.name, cond::persistency::GTEditorData.name, CALayer.name(), CaloValidationStatistics.name(), MaxConsecLostHitsTrajectoryFilter.name(), MaxHitsTrajectoryFilter.name(), MaxLostHitsTrajectoryFilter.name(), edm::ModuleTime.name(), cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, RecHitTopologicalCleanerBase.name(), SeedFinderBase.name(), TrackingSlaveSD.name(), SingleColumn< T >.name, cond::persistency::TAG::INSERTION_TIME.name, tauImpactParameter::TrackParticle.name(), SeedExtensionTrajectoryFilter.name(), DDSolidShapesName.name(), cond::persistency::TAG::MODIFICATION_TIME.name, FWTGeoRecoGeometry::Info.name, preexistingValidation.PreexistingValidation.name, ClopperPearsonBinomialInterval.name(), ResolutionModel.name(), PixelModuleName.name(), OutputMEPSet.name, BlockElementLinkerBase.name(), tauImpactParameter::LorentzVectorParticle.name(), CaloSlaveSD.name(), LostHitsFractionTrajectoryFilter.name(), EventStringOutputBranches::NamedBranchPtr.name, SummaryTableOutputBranches::NamedBranchPtr.name, edm::BaseWithDict.name(), HistoDef.name(), RegionalTrajectoryFilter.name(), dataset.BaseDataset.name, edm::MemberWithDict.name(), fit::RootMinuitCommand.name, PrintSensitive.name, ExpressionEvaluatorCutWithEventContent.name(), personalPlayback.Applet.name, Types._Untracked.name, MaxCCCLostHitsTrajectoryFilter.name(), EventSelector.name(), ParameterSet.name, PixelDCSObject< T >::Item.name, FileData.name(), PacketData.name(), ChargeSignificanceTrajectoryFilter.name(), DDAxesNames.name(), PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.name, HGCalTriggerGeometryBase.name(), BlockElementImporterBase.name(), EcalDetIdAssociator.name(), HODetIdAssociator.name(), PreshowerDetIdAssociator.name(), pos::PixelConfigAlias.name(), MinHitsTrajectoryFilter.name(), PdtEntry.name(), LooperTrajectoryFilter.name(), DQMRivetClient::LumiOption.name, MagCylinder.name, rpcrawtodigi::ReadoutError.name(), analyzer.Analyzer.name, PixelBarrelNameUpgrade.name(), production_tasks.Task.name, CharmTagger::MVAVar.name, HcalForwardLibWriter::FileHandle.name, HcalDetIdAssociator.name(), RPCLinkSynchroStat::LinkBoard.name(), TriggerOutputBranches::NamedBranchPtr.name, emtf::LossFunction.name(), MTDUncalibratedRecHitAlgoBase< DataFrame >.name(), PFClusterEnergyCorrectorBase.name(), PFCPositionCalculatorBase.name(), ClusterShapeTrajectoryFilter.name(), JetResolution.name(), PixelEndcapNameUpgrade.name(), ALIFileOut.name(), hcaldqm::quantity::Quantity.name(), DCCTBDataField.name(), HGCalTriggerFECodecBase.name(), reco::tau::RecoTauNamedPlugin.name(), ParSet.name, DDName.name(), TableOutputBranches::NamedBranchPtr.name, MuonSubDetector.name(), citk::IsolationConeDefinitionBase.name(), CalibratedHistogramXML.name(), ThresholdPtTrajectoryFilter.name(), rpcrawtodigi::DataRecord.name(), edm::FunctionWithDict.name(), pat::helper::OverlapTest.name(), edm::PathTimingSummary.name, DQMRivetClient::ScaleFactorOption.name, HLTPerformanceInfo::Module.name(), L1GctEtHad.name(), L1GctEtTotal.name(), EgHLTOfflineSummaryClient::SumHistBinData.name, RHStopTracer::StopPoint.name, ClassName< T >.name(), CSCChannelMapperPostls1.name(), BeamSpotOnline.name(), PixelBarrelName.name(), PhysicsTools::Source.name, SingleObjectCondition.name, HGCalTriggerBackendAlgorithmBase.name(), OmtfName.name(), Filter.name(), cond::persistency::GTProxyData.name, CalibrationCategory< CI >.name(), FTLUncalibratedRecHitAlgoBase.name(), runEdmFileComparison.EdmObject.name, pos::PixelDACScanRange.name(), SummaryGenerator.name(), FTLRecHitAlgoBase.name(), MTDRecHitAlgoBase.name(), MyWatcher.name, TrajectoryFilter.name(), CSCChannelMapperStartup.name(), core.autovars.NTupleObjectType.name, L1GctInternEmCand.name(), PixelEndcapName.name(), FWParameterBase.name(), edm::eventsetup::ModuleMakerTraits.name(), edm::PathSummary.name, OpticalAlignParam.name(), nanoaod::FlatTable.name(), FWGenericParameter< T >.name(), FWGenericParameterWithRange< T >.name(), FWGenericParameterWithRange< long >.name(), FWGenericParameterWithRange< double >.name(), FWGenericParameterWithRange< T > FWConfiguration.name(), DDI::rep_type< N, I >.name(), DDI::rep_type< DDName, std::unique_ptr< dd_map_type > >.name(), DDI::rep_type< DDName, std::unique_ptr< DDRotationMatrix > >.name(), DDI::rep_type< DDName, std::unique_ptr< DDI::Material > >.name(), DDI::rep_type< DDName, std::unique_ptr< DDI::Specific > >.name(), DDI::rep_type< DDName, std::unique_ptr< std::string > >.name(), DDI::rep_type< DDName, std::unique_ptr< double > >.name(), DDI::rep_type< N, C >.name(), DDI::rep_type< DDName, std::unique_ptr< DDI::LogicalPart > >.name(), DDI::rep_type< DDName, std::unique_ptr< std::vector< std::string > > >.name(), DDI::rep_type< DDName, std::unique_ptr< DDI::Solid > >.name(), DDI::rep_type< DDName, std::unique_ptr< DDI::Division > >.name(), DDI::rep_type< DDName, std::unique_ptr< std::vector< double > > >.name(), reco::CompositeCandidate.name(), nanoaod::MergeableCounterTable::VectorColumn< T >.name, VectorColumn< T >.name, BinomialInterval.name(), EGEnergySysIndex.name(), CompositeTrajectoryFilter.name(), CSCIndexerStartup.name(), lumi::TriggerInfo.name, cond::TimeTypeSpecs.name, LumiScalers.name(), edm::TypeIDBase.name(), L1TriggerScalers.name(), alignment.Alignment.name, ALIFileIn.name(), L1GctJetCand.name(), PixelEndcapLinkMaker::Item.name, dirstructure.Weighted.name, perftools::EdmEventSize::BranchRecord.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, edm::eventsetup::EventSetupRecordKey.name(), edm::eventsetup::heterocontainer::HCTypeTag.name(), DQMGenericClient::EfficOption.name, FWTableViewManager::TableEntry.name, MinPtTrajectoryFilter.name(), CSCIndexerPostls1.name(), PixelBarrelLinkMaker::Item.name, CaloDetIdAssociator.name(), pos::PixelROCMaskBits.name(), CSCChannelMapperBase.name(), reco::NamedCompositeCandidate.name(), cond::persistency::GLOBAL_TAG_MAP::RECORD.name, FWPhysicsObjectDesc.name(), EcalLogicID.name, edm::EventTime.name(), Level1TriggerScalers.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, funct::DefaultVariable.name(), CompositeLogicalTrajectoryFilter.name(), pos::PixelROCTrimBits.name(), L1GctEtMiss.name(), L1GctJetCounts.name(), cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, MEtoEDM< T >::MEtoEDMObject.name, cms::DDAlgoArguments.name, CaloTrkProcessing::Detector.name, ExpressionHisto< T >.name, GlobalVariablesTableProducer::Variable.name(), PrintMaterialBudgetInfo.name, funct::X.name(), validateAlignments.ParallelMergeJob.name, BPhysicsSpectrum.name, cond::persistency::GTEditor.name(), ExpressionHisto< typename C::value_type >.name, funct::Y.name(), GlobalTrackingRegion.name(), XMLProcessor::_loaderBaseConfig.name, SeedingLayerSetsHits::SeedingLayer.name(), L1GctHtMiss.name(), DCCTBBlockPrototype.name(), cond::persistency::PAYLOAD::HASH.name, funct::Z.name(), Entry.name(), L1GctEmCand.name(), edm::eventsetup::DataKey.name(), python.rootplot.utilities.Hist2D.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, L1TriggerRates.name(), CkfBaseTrajectoryFilter.name(), fwlite::Record.name(), DDValue.name(), PrintGeomInfoAction.name, cond::persistency::PAYLOAD::DATA.name, FWViewEnergyScale.name(), edm::eventsetup::SourceMakerTraits.name(), cond::persistency::PAYLOAD::STREAMER_INFO.name, TreeCrawler.Package.name, NanoAODDQM::Plot.name(), genericValidation.GenericValidation.name, cond::persistency::PAYLOAD::VERSION.name, MuonDetIdAssociator.name(), options.ConnectionHLTMenu.name, MagGeoBuilderFromDDD::volumeHandle.name, L1GtPatternLine.name(), cond::persistency::PAYLOAD::INSERTION_TIME.name, SimpleL1MuGMTCand.name(), Level1TriggerRates.name(), edm::TRandomAdaptor.name(), CalibratedObject.name(), MVAVar.name, DisplayManager.DisplayManager.name, DQMGenericClient::ProfileOption.name, OpticalObject.name(), edm::ESGetToken< FastTimeParameters, IdealGeometryRecord >.name(), ESGetToken< ProductT, DepRecordT >.name(), MonElemContainer< OffPho > tightTrig looseTrig.name(), MonElemContainer< OffEle > tightTrig looseTrig.name(), edm::ESGetToken< PTrackerParameters, PTrackerParametersRcd >.name(), egHLT::MonElemContainer< T >.name(), edm::ESGetToken< ESProduct, ESRecord >.name(), edm::ESGetToken< DDSpecParRegistry, DDSpecParRegistryRcd >.name(), edm::ESGetToken< HcalDDDSimConstants, HcalSimNumberingRecord >.name(), edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, RPRealAlignmentRecord >.name(), edm::ESGetToken< Alignments, GlobalPositionRcd >.name(), edm::ESGetToken< DetGeomDesc, VeryForwardRealGeometryRecord >.name(), edm::ESGetToken< HGCalTopology, IdealGeometryRecord >.name(), edm::ESGetToken< MuonDDDConstants, MuonNumberingRecord >.name(), edm::ESGetToken< Alignments, ESAlignmentRcd >.name(), edm::ESGetToken< RPCGeometry, MuonGeometryRecord >.name(), ESGetToken< T, R >.name(), edm::ESGetToken< AlignmentErrorsExtended, DTAlignmentErrorExtendedRcd >.name(), edm::ESGetToken< CaloSubdetectorGeometry, IdealGeometryRecord >.name(), ESGetToken< EcalMappingElectronics, EcalMappingElectronicsRcd >.name(), edm::ESGetToken< Alignments, DTAlignmentRcd >.name(), edm::ESGetToken< RecoIdealGeometry, DTRecoGeometryRcd >.name(), edm::ESGetToken< DDCompactView, IdealGeometryRecord >.name(), edm::ESGetToken< HGCalParameters, IdealGeometryRecord >.name(), edm::ESGetToken< EcalCondObjectContainer, EcalMappingElectronicsRcd >.name(), edm::ESGetToken< DetGeomDesc, IdealGeometryRecord >.name(), edm::ESGetToken< DDDetector, GeometryFileRcd >.name(), edm::ESGetToken< Alignments, CSCAlignmentRcd >.name(), edm::ESGetToken< ME0Geometry, MuonGeometryRecord >.name(), ESGetToken< PRODUCT, edm::DefaultRecord >.name(), edm::ESGetToken< AlignmentSurfaceDeformations, TrackerSurfaceDeformationRcd >.name(), MonElemContainer< T >.name(), edm::ESGetToken< CSCGeometry, MuonGeometryRecord >.name(), edm::ESGetToken< MuonNumbering, MuonNumberingRecord >.name(), edm::ESGetToken< CaloGeometry, CaloGeometryRecord >.name(), edm::ESGetToken< FastTimeTopology, IdealGeometryRecord >.name(), edm::ESGetToken< AlignmentErrorsExtended, TrackerAlignmentErrorExtendedRcd >.name(), edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord >.name(), edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, ALIGNMENT_REC >.name(), MonElemContainer< T > tightTrig looseTrig.name(), edm::ESGetToken< HcalParameters, HcalParametersRcd >.name(), edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord >.name(), edm::ESGetToken< Alignments, TrackerAlignmentRcd >.name(), edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, RPMisalignedAlignmentRecord >.name(), edm::ESGetToken< DTGeometry, MuonGeometryRecord >.name(), edm::ESGetToken< GeometricDet, IdealGeometryRecord >.name(), edm::ESGetToken< RecoIdealGeometry, CSCRecoGeometryRcd >.name(), edm::ESGetToken< GEMGeometry, MuonGeometryRecord >.name(), edm::ESGetToken< TrackerTopology, TrackerTopologyRcd >.name(), edm::ESGetToken< CSCRecoDigiParameters, CSCRecoDigiParametersRcd >.name(), edm::ESGetToken< DetGeomDesc, VeryForwardMisalignedGeometryRecord >.name(), edm::ESGetToken< AlignmentErrorsExtended, CSCAlignmentErrorExtendedRcd >.name(), MonElemContainer< OffEle >.name(), MonElemContainer< OffPho >.name(), ESGetToken< PRODUCT, T >.name(), L1AcceptBunchCrossing.name(), dqmoffline::l1t::HistDefinition.name, tnp::ProbeVariable.name(), cms::DDNamespace.name(), CachingVariable.name(), FWLite.WorkingPoints.name, DQMGenericClient::NormOption.name, emtf::LeastSquares.name(), FTLDigitizerBase.name(), DetGeomDesc.name(), emtf::Node.name, BTagProbabilityToDiscriminator::Discriminator.name, L1MuDTTrack.name(), SimpleFlatTableProducerBase< T, TProd >::VariableBase.name(), FastHFShowerLibrary.name, h4DSegm.name, PhysicsTools::Variable::Value.name, PhysicsTools::Calibration::Variable.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, FWGeometryTableManagerBase::NodeInfo.name(), ModifyObjectValueBase.name(), L1MuGMTCand.name(), DcsStatus.name(), L1MuBMTrack.name(), DQMGenericClient::CDOption.name, TriggerObjectTableProducer::SelectedObject.name, MillePedeVariables.name(), CounterChecker.name, FWViewType.name(), HLTPerformanceInfo::Path.name(), DDBase< DDName, std::unique_ptr< DDRotationMatrix > >.name(), DDBase< DDName, std::unique_ptr< DDI::Material > >.name(), TrackerSectorStruct.name, unique_ptr< DDI::Material >.name(), DDBase< DDName, std::unique_ptr< std::string > >.name(), DDBase< DDName, std::unique_ptr< DDI::Division > >.name(), cond::TagInfo_t.name, DDBase< DDName, std::unique_ptr< std::vector< std::string > > >.name(), DDBase< DDName, std::unique_ptr< double > >.name(), DDBase< N, C >.name(), reco::ElectronSeed.name(), DDBase< DDName, std::unique_ptr< DDI::Specific > >.name(), DDBase< DDName, std::unique_ptr< dd_map_type > >.name(), DDBase< DDName, std::unique_ptr< DDI::LogicalPart > >.name(), DDBase< DDName, std::unique_ptr< DDI::Solid > >.name(), DDBase< DDName, std::unique_ptr< std::vector< double > > >.name(), ProcTMVA::Method.name, TreeSaver::Var.name, GeometricTimingDetExtra.name(), BPhysicsValidation::ParticleMonitor.name, DQMGenericClient::NoFlowOption.name, Vispa.Gui.PortWidget.PortWidget.name(), looper.Looper.name, python.rootplot.tree2hists.Plot.name, edm::Path.name(), cond::persistency::IOV::TAG_NAME.name, cond::persistency::IOV::SINCE.name, CSCIndexerBase.name(), EDMtoMEConverter.name, StripSubClusterShapeTrajectoryFilter.name(), edm::eventsetup::LooperMakerTraits.name(), Mapper::definition< ScannerT >.name, cond::persistency::IOV::PAYLOAD_HASH.name, classes.MonitorData.name, cond::persistency::IOV::INSERTION_TIME.name, PhysicsTools::TreeReader::Value.name, BPhysicsValidation.name, cond::persistency::GTProxy.name(), HistogramManager.name, PhysicsTools::TrainProcessor.name, MuonGeometrySanityCheckPoint.name, edm::TriggerResults.name(), pat::TriggerCondition.name(), CutApplicatorBase.name(), Measurement.name(), MTDDigitizerBase.name(), L1GObject.name(), classes.OutputData.name, PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.name, CosmicTrackingRegion.name(), edm::TypeWithDict.name(), PhysicsTools::ProcessRegistry< Base_t, CalibBase_t, Parent_t >.name, pat::TriggerAlgorithm.name(), FWEventItem.name(), HistoData.name, GeometricDetExtra.name(), PhysicsTools::MVATrainer.name, options.HLTProcessOptions.name, utils.StatisticalTest.name, tnp::ProbeFlag.name(), TrackingRegion.name(), pat::TriggerPath.name(), h2DSegm.name, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, nanoaod::FlatTable::Column.name, python.rootplot.utilities.Hist.name, VariableComputer.name(), VIDSelectorBase.VIDSelectorBase.name(), geometry.Structure.name, GeometricTimingDet.name(), config.Analyzer.name, emtf::AbsoluteDeviation.name(), MaterialAccountingGroup.name(), DetIdAssociator.name(), IntegratedCalibrationBase.name(), core.autovars.NTupleSubObject.name, DQMNet::WaitObject.name, cuy.divideElement.name, AlpgenParameterName.name, cscdqm::Address.name(), Folder.name(), NanoAODDQM::SelGroupConfig.name, SiStripMonitorDigi.name, cuy.plotElement.name, core.autovars.NTupleObject.name, cuy.additionElement.name, VersionedSelector< edm::Ptr< pat::Photon > >.name(), VersionedSelector< edm::Ptr< reco::GsfElectron > >.name(), VersionedSelector< edm::Ptr< pat::Electron > >.name(), VersionedSelector< edm::Ptr< reco::Photon > >.name(), VersionedSelector< T >.name(), VersionedSelector< edm::Ptr< reco::Muon > >.name(), GeometricDet.name(), public_plots_tools.ColorScheme.name, config.Service.name, PhysicsTools::Variable.name, cond::persistency::TAG_LOG::TAG_NAME.name, BasicHepMCValidation::ParticleMonitor.name, cuy.superimposeElement.name, cond::persistency::TAG_LOG::EVENT_TIME.name, cond::persistency::TAG_LOG::USER_NAME.name, cond::persistency::TAG_LOG::HOST_NAME.name, cond::persistency::TAG_LOG::COMMAND.name, cond::persistency::TAG_LOG::ACTION.name, cond::persistency::TAG_LOG::USER_TEXT.name, PhysicsTools::TrainerMonitoring::Object.name, core.autovars.NTupleCollection.name, cuy.graphElement.name, emtf::Huber.name(), FilterSelection.name(), RectangularEtaPhiTrackingRegion.name(), BPHRecoBuilder::BPHRecoSource.name, BPHRecoBuilder::BPHCompSource.name, utils.KS.name, emtf::PercentErrorSquared.name(), utils.Chi2.name, personalPlayback.FrameworkJob.name, pos::PixelAliasList.name(), utils_v2.StatisticalTest.name, utils.BinToBin.name, plotscripts.SawTeethFunction.name, utils_v2.KolmogorovTest.name, dirstructure.Comparison.name, utils_v2.Chi2Test.name, dqm_interfaces.DirID.name, utils.BinToBin1percent.name, hcaldqm::quantity::FlagQuantity.name(), python.rootplot.utilities.RootFile.name, crabFunctions.CrabTask.name, hcaldqm::quantity::LumiSection.name(), hcaldqm::quantity::LumiSectionCoarse.name(), Vispa.Views.PropertyView.Property.name(), hTMaxCell.name, hcaldqm::quantity::RunNumber.name(), cscdqm::ParHistoDef.name, hcaldqm::quantity::EventNumber.name(), hcaldqm::quantity::EventType.name(), validation.Sample.name(), BeautifulSoup.Tag.name, dqm_interfaces.DirWalkerFile.name, Id.name, genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.name(), SummaryOutputProducer::GenericSummary.name, BeautifulSoup.SoupStrainer.name, dataset.Dataset.name(), validation.SimpleSample.name(), and trackingPlots.Iteration.name().

42  def __str__(self):
43  '''A useful printout'''
44  header = '{type}: {name}'.format( type=self.__class__.__name__,
45  name=self.name)
46  varlines = ['\t{var:<15}: {value}'.format(var=var, value=value) \
47  for var,value in sorted(vars(six.iteritems(self))) \
48  if var is not 'name']
49  all = [ header ]
50  all.extend(varlines)
51  return '\n'.join( all )
52 
def __str__(self)
Definition: config.py:42
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def config.CFG.clone (   self,
  kwargs 
)
Make a copy of this object, redefining (or adding) some parameters, just
   like in the CMSSW python configuration files. 

   For example, you can do
      module1 = cfg.Analyzer(SomeClass, 
          param1 = value1, 
          param2 = value2, 
          param3 = value3, 
          ...)
      module2 = module1.clone(
         param2 = othervalue,
         newparam = newvalue)
   and module2 will inherit the configuration of module2 except for
   the value of param2, and for having an extra newparam of value newvalue
   (the latter may be useful if e.g. newparam were optional, and needed
   only when param2 == othervalue)

   Note that, just like in CMSSW, this is a shallow copy and not a deep copy,
   i.e. if in the example above value1 were to be an object, them module1 and
   module2 will share the same instance of value1, and not have two copies.

Definition at line 53 of file config.py.

53  def clone(self, **kwargs):
54  '''Make a copy of this object, redefining (or adding) some parameters, just
55  like in the CMSSW python configuration files.
56 
57  For example, you can do
58  module1 = cfg.Analyzer(SomeClass,
59  param1 = value1,
60  param2 = value2,
61  param3 = value3,
62  ...)
63  module2 = module1.clone(
64  param2 = othervalue,
65  newparam = newvalue)
66  and module2 will inherit the configuration of module2 except for
67  the value of param2, and for having an extra newparam of value newvalue
68  (the latter may be useful if e.g. newparam were optional, and needed
69  only when param2 == othervalue)
70 
71  Note that, just like in CMSSW, this is a shallow copy and not a deep copy,
72  i.e. if in the example above value1 were to be an object, them module1 and
73  module2 will share the same instance of value1, and not have two copies.
74  '''
75  other = copy.copy(self)
76  for k,v in six.iteritems(kwargs):
77  setattr(other, k, v)
78  return other
def clone(self, kwargs)
Definition: config.py:53