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(), counter.Counter.name, average.Average.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(), core.autovars.NTupleVariable.name, cond::persistency::RUN_INFO::START_TIME.name, cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::TAG::OBJECT_TYPE.name, HGCalProcessorBaseT< InputCollection, OutputCollection >.name(), SterneBinomialInterval.name(), FeldmanCousinsBinomialInterval.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(), cond::persistency::TAG::END_OF_VALIDITY.name, MEPSet.name, candidate_functions::CandidateCut.name(), ExpressionEvaluatorCut.name(), PCaloHit.name(), cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, GeomDetType.name(), cond::persistency::TAG::DESCRIPTION.name, CALayer.name(), cond::persistency::GTEditorData.name, CaloValidationStatistics.name(), MaxConsecLostHitsTrajectoryFilter.name(), MaxHitsTrajectoryFilter.name(), MaxLostHitsTrajectoryFilter.name(), cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, edm::ModuleTime.name(), nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, SeedFinderBase.name(), TrackingSlaveSD.name(), SingleColumn< T >.name, cond::persistency::TAG::INSERTION_TIME.name, RecHitTopologicalCleanerBase.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(), PFCPositionCalculatorBase.name(), MTDUncalibratedRecHitAlgoBase< DataFrame >.name(), PFClusterEnergyCorrectorBase.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, BeamSpotOnline.name(), ClassName< T >.name(), CSCChannelMapperPostls1.name(), PhysicsTools::Source.name, SingleObjectCondition.name, HGCalTriggerBackendAlgorithmBase.name(), OmtfName.name(), Filter.name(), CalibrationCategory< CI >.name(), FTLUncalibratedRecHitAlgoBase.name(), cond::persistency::GTProxyData.name, runEdmFileComparison.EdmObject.name, pos::PixelDACScanRange.name(), PixelBarrelName.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(), FWGenericParameterWithRange< double >.name(), FWGenericParameter< T >.name(), FWGenericParameterWithRange< T >.name(), FWGenericParameterWithRange< T > FWConfiguration.name(), FWGenericParameterWithRange< long >.name(), DDI::rep_type< DDName, std::unique_ptr< std::vector< double > > >.name(), DDI::rep_type< N, I >.name(), DDI::rep_type< N, C >.name(), DDI::rep_type< DDName, std::unique_ptr< DDI::Solid > >.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< DDName, std::unique_ptr< dd_map_type > >.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< DDRotationMatrix > >.name(), DDI::rep_type< DDName, std::unique_ptr< DDI::Division > >.name(), DDI::rep_type< DDName, std::unique_ptr< DDI::Material > >.name(), reco::CompositeCandidate.name(), VectorColumn< T >.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, BinomialInterval.name(), EGEnergySysIndex.name(), CompositeTrajectoryFilter.name(), CSCIndexerStartup.name(), cond::TimeTypeSpecs.name, LumiScalers.name(), lumi::TriggerInfo.name, edm::TypeIDBase.name(), alignment.Alignment.name, ALIFileIn.name(), L1GctJetCand.name(), L1TriggerScalers.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(), Level1TriggerScalers.name(), EcalLogicID.name, edm::EventTime.name(), funct::DefaultVariable.name(), CompositeLogicalTrajectoryFilter.name(), pos::PixelROCTrimBits.name(), L1GctEtMiss.name(), L1GctJetCounts.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, MEtoEDM< T >::MEtoEDMObject.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, cms::DDAlgoArguments.name, ExpressionHisto< typename C::value_type >.name, ExpressionHisto< T >.name, CaloTrkProcessing::Detector.name, cond::persistency::GTEditor.name(), GlobalVariablesTableProducer::Variable.name(), PrintMaterialBudgetInfo.name, funct::X.name(), BPhysicsSpectrum.name, XMLProcessor::_loaderBaseConfig.name, funct::Y.name(), GlobalTrackingRegion.name(), SeedingLayerSetsHits::SeedingLayer.name(), L1GctHtMiss.name(), funct::Z.name(), DCCTBBlockPrototype.name(), cond::persistency::PAYLOAD::HASH.name, Entry.name(), L1GctEmCand.name(), CkfBaseTrajectoryFilter.name(), L1TriggerRates.name(), edm::eventsetup::DataKey.name(), python.rootplot.utilities.Hist2D.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, fwlite::Record.name(), DDValue.name(), cond::persistency::PAYLOAD::DATA.name, PrintGeomInfoAction.name, FWViewEnergyScale.name(), edm::eventsetup::SourceMakerTraits.name(), NanoAODDQM::Plot.name(), cond::persistency::PAYLOAD::STREAMER_INFO.name, TreeCrawler.Package.name, genericValidation.GenericValidation.name, cond::persistency::PAYLOAD::VERSION.name, MagGeoBuilderFromDDD::volumeHandle.name, MuonDetIdAssociator.name(), options.ConnectionHLTMenu.name, L1GtPatternLine.name(), cond::persistency::PAYLOAD::INSERTION_TIME.name, SimpleL1MuGMTCand.name(), Level1TriggerRates.name(), edm::TRandomAdaptor.name(), CalibratedObject.name(), MVAVar.name, DisplayManager.DisplayManager.name, OpticalObject.name(), DQMGenericClient::ProfileOption.name, MonElemContainer< OffPho > tightTrig looseTrig.name(), edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, RPMisalignedAlignmentRecord >.name(), ESGetToken< PRODUCT, edm::DefaultRecord >.name(), egHLT::MonElemContainer< T >.name(), edm::ESGetToken< Alignments, CSCAlignmentRcd >.name(), edm::ESGetToken< CSCRecoDigiParameters, CSCRecoDigiParametersRcd >.name(), edm::ESGetToken< PTrackerParameters, PTrackerParametersRcd >.name(), edm::ESGetToken< DDCompactView, IdealGeometryRecord >.name(), ESGetToken< PRODUCT, T >.name(), edm::ESGetToken< ESProduct, ESRecord >.name(), edm::ESGetToken< DDDetector, GeometryFileRcd >.name(), edm::ESGetToken< Alignments, ESAlignmentRcd >.name(), edm::ESGetToken< DTGeometry, MuonGeometryRecord >.name(), ESGetToken< ProductT, DepRecordT >.name(), edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, RPRealAlignmentRecord >.name(), edm::ESGetToken< MuonDDDConstants, MuonNumberingRecord >.name(), edm::ESGetToken< EcalCondObjectContainer, EcalMappingElectronicsRcd >.name(), edm::ESGetToken< Alignments, TrackerAlignmentRcd >.name(), edm::ESGetToken< CaloSubdetectorGeometry, IdealGeometryRecord >.name(), edm::ESGetToken< DetGeomDesc, VeryForwardRealGeometryRecord >.name(), edm::ESGetToken< DDSpecParRegistry, DDSpecParRegistryRcd >.name(), ESGetToken< T, R >.name(), edm::ESGetToken< LHCInfo, LHCInfoRcd >.name(), edm::ESGetToken< MuonNumbering, MuonNumberingRecord >.name(), edm::ESGetToken< DetGeomDesc, IdealGeometryRecord >.name(), edm::ESGetToken< AlignmentErrorsExtended, TrackerAlignmentErrorExtendedRcd >.name(), edm::ESGetToken< RecoIdealGeometry, DTRecoGeometryRcd >.name(), edm::ESGetToken< GeometricDet, IdealGeometryRecord >.name(), MonElemContainer< OffEle >.name(), edm::ESGetToken< FastTimeParameters, IdealGeometryRecord >.name(), ESGetToken< EcalMappingElectronics, EcalMappingElectronicsRcd >.name(), edm::ESGetToken< HcalDDDSimConstants, HcalSimNumberingRecord >.name(), edm::ESGetToken< AlignmentErrorsExtended, DTAlignmentErrorExtendedRcd >.name(), edm::ESGetToken< ME0Geometry, MuonGeometryRecord >.name(), edm::ESGetToken< HGCalParameters, IdealGeometryRecord >.name(), edm::ESGetToken< TrackerTopology, TrackerTopologyRcd >.name(), edm::ESGetToken< Alignments, DTAlignmentRcd >.name(), edm::ESGetToken< LHCInterpolatedOpticalFunctionsSetCollection, CTPPSInterpolatedOpticsRcd >.name(), edm::ESGetToken< CaloGeometry, CaloGeometryRecord >.name(), edm::ESGetToken< FastTimeTopology, IdealGeometryRecord >.name(), edm::ESGetToken< AlignmentSurfaceDeformations, TrackerSurfaceDeformationRcd >.name(), MonElemContainer< OffPho >.name(), edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, ALIGNMENT_REC >.name(), edm::ESGetToken< RPCGeometry, MuonGeometryRecord >.name(), edm::ESGetToken< HcalParameters, HcalParametersRcd >.name(), edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord >.name(), edm::ESGetToken< DetGeomDesc, VeryForwardMisalignedGeometryRecord >.name(), edm::ESGetToken< CSCGeometry, MuonGeometryRecord >.name(), edm::ESGetToken< Alignments, GlobalPositionRcd >.name(), edm::ESGetToken< HGCalTopology, IdealGeometryRecord >.name(), edm::ESGetToken< RecoIdealGeometry, CSCRecoGeometryRcd >.name(), edm::ESGetToken< GEMGeometry, MuonGeometryRecord >.name(), edm::ESGetToken< AlignmentErrorsExtended, CSCAlignmentErrorExtendedRcd >.name(), edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord >.name(), MonElemContainer< T >.name(), MonElemContainer< T > tightTrig looseTrig.name(), MonElemContainer< OffEle > tightTrig looseTrig.name(), dqmoffline::l1t::HistDefinition.name, tnp::ProbeVariable.name(), L1AcceptBunchCrossing.name(), cms::DDNamespace.name(), CachingVariable.name(), FWLite.WorkingPoints.name, emtf::LeastSquares.name(), DQMGenericClient::NormOption.name, BTagProbabilityToDiscriminator::Discriminator.name, DetGeomDesc.name(), emtf::Node.name, FTLDigitizerBase.name(), L1MuDTTrack.name(), SimpleFlatTableProducerBase< T, TProd >::VariableBase.name(), FastHFShowerLibrary.name, h4DSegm.name, PhysicsTools::Calibration::Variable.name, PhysicsTools::Variable::Value.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, FWGeometryTableManagerBase::NodeInfo.name(), L1MuGMTCand.name(), ModifyObjectValueBase.name(), L1MuBMTrack.name(), DcsStatus.name(), DQMGenericClient::CDOption.name, TriggerObjectTableProducer::SelectedObject.name, CounterChecker.name, MillePedeVariables.name(), FWViewType.name(), DDBase< DDName, std::unique_ptr< std::vector< std::string > > >.name(), DDBase< DDName, std::unique_ptr< DDI::Solid > >.name(), DDBase< N, C >.name(), TrackerSectorStruct.name, reco::ElectronSeed.name(), DDBase< DDName, std::unique_ptr< dd_map_type > >.name(), cond::TagInfo_t.name, DDBase< DDName, std::unique_ptr< std::string > >.name(), HLTPerformanceInfo::Path.name(), DDBase< DDName, std::unique_ptr< std::vector< double > > >.name(), DDBase< DDName, std::unique_ptr< DDI::Specific > >.name(), DDBase< DDName, std::unique_ptr< double > >.name(), DDBase< DDName, std::unique_ptr< DDI::LogicalPart > >.name(), DDBase< DDName, std::unique_ptr< DDRotationMatrix > >.name(), DDBase< DDName, std::unique_ptr< DDI::Division > >.name(), DDBase< DDName, std::unique_ptr< DDI::Material > >.name(), unique_ptr< DDI::Material >.name(), ProcTMVA::Method.name, TreeSaver::Var.name, GeometricTimingDetExtra.name(), DQMGenericClient::NoFlowOption.name, BPhysicsValidation::ParticleMonitor.name, looper.Looper.name, Vispa.Gui.PortWidget.PortWidget.name(), python.rootplot.tree2hists.Plot.name, edm::Path.name(), cond::persistency::IOV::TAG_NAME.name, cond::persistency::IOV::SINCE.name, StripSubClusterShapeTrajectoryFilter.name(), EDMtoMEConverter.name, CSCIndexerBase.name(), Mapper::definition< ScannerT >.name, cond::persistency::IOV::PAYLOAD_HASH.name, edm::eventsetup::LooperMakerTraits.name(), PhysicsTools::TreeReader::Value.name, classes.MonitorData.name, cond::persistency::IOV::INSERTION_TIME.name, cond::persistency::GTProxy.name(), HistogramManager.name, BPhysicsValidation.name, edm::TriggerResults.name(), PhysicsTools::TrainProcessor.name, MuonGeometrySanityCheckPoint.name, pat::TriggerCondition.name(), CutApplicatorBase.name(), MTDDigitizerBase.name(), Measurement.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, TrackingRegion.name(), tnp::ProbeFlag.name(), pat::TriggerPath.name(), h2DSegm.name, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, nanoaod::FlatTable::Column.name, VIDSelectorBase.VIDSelectorBase.name(), VariableComputer.name(), python.rootplot.utilities.Hist.name, geometry.Structure.name, emtf::AbsoluteDeviation.name(), GeometricTimingDet.name(), MaterialAccountingGroup.name(), config.Analyzer.name, DetIdAssociator.name(), IntegratedCalibrationBase.name(), core.autovars.NTupleSubObject.name, DQMNet::WaitObject.name, cuy.divideElement.name, AlpgenParameterName.name, cscdqm::Address.name(), Folder.name(), SiStripMonitorDigi.name, NanoAODDQM::SelGroupConfig.name, cuy.plotElement.name, core.autovars.NTupleObject.name, cuy.additionElement.name, VersionedSelector< edm::Ptr< pat::Photon > >.name(), VersionedSelector< T >.name(), VersionedSelector< edm::Ptr< pat::Electron > >.name(), VersionedSelector< edm::Ptr< reco::GsfElectron > >.name(), VersionedSelector< edm::Ptr< reco::Photon > >.name(), VersionedSelector< edm::Ptr< reco::Muon > >.name(), GeometricDet.name(), public_plots_tools.ColorScheme.name, PhysicsTools::Variable.name, config.Service.name, BasicHepMCValidation::ParticleMonitor.name, cuy.superimposeElement.name, cond::persistency::TAG_LOG::TAG_NAME.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, PhysicsTools::TrainerMonitoring::Object.name, cond::persistency::TAG_LOG::USER_TEXT.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, hcaldqm::quantity::FlagQuantity.name(), utils.BinToBin1percent.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