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 34 of file config.py.

Constructor & Destructor Documentation

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

Definition at line 36 of file config.py.

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

Member Function Documentation

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

Definition at line 40 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(), SymmetryFit.name(), TmModule.name, cond::persistency::TAG::NAME.name, cond::persistency::GLOBAL_TAG::NAME.name, core.autovars.NTupleVariable.name, cond::persistency::RUN_INFO::RUN_NUMBER.name, cond::persistency::TAG::TIME_TYPE.name, CmsTrackerStringToEnum.name(), listHistos.plotInfo.name, candidate_functions::CandidateCut.name(), cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::RUN_INFO::START_TIME.name, DDSolidShapesName.name(), cond::persistency::TAG::OBJECT_TYPE.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(), cond::persistency::TAG::END_OF_VALIDITY.name, MEPSet.name, ExpressionEvaluatorCut.name(), PassiveHit.name(), cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, GeomDetType.name(), cond::persistency::TAG::DESCRIPTION.name, cond::persistency::GTEditorData.name, CALayer.name(), MaxConsecLostHitsTrajectoryFilter.name(), MaxHitsTrajectoryFilter.name(), MaxLostHitsTrajectoryFilter.name(), edm::ModuleTime.name(), cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, RecHitTopologicalCleanerBase.name(), SeedFinderBase.name(), CaloValidationStatistics.name(), FWTGeoRecoGeometry::Info.name, cond::persistency::TAG::INSERTION_TIME.name, tauImpactParameter::TrackParticle.name(), TrackingSlaveSD.name(), SeedExtensionTrajectoryFilter.name(), preexistingValidation.PreexistingValidation.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::MODIFICATION_TIME.name, Types._Untracked.name, SingleColumn< T >.name, SingleWithNormColumn< T >.name, dataset.BaseDataset.name, ClopperPearsonBinomialInterval.name(), ResolutionModel.name(), PCaloHit.name(), OutputMEPSet.name, BlockElementLinkerBase.name(), tauImpactParameter::LorentzVectorParticle.name(), LostHitsFractionTrajectoryFilter.name(), PixelModuleName.name(), EventStringOutputBranches::NamedBranchPtr.name, SummaryTableOutputBranches::NamedBranchPtr.name, edm::BaseWithDict.name(), personalPlayback.Applet.name, CaloSlaveSD.name(), HistoDef.name(), PdtEntry.name(), RegionalTrajectoryFilter.name(), edm::MemberWithDict.name(), fit::RootMinuitCommand.name, ExpressionEvaluatorCutWithEventContent.name(), MaxCCCLostHitsTrajectoryFilter.name(), EventSelector.name(), ParameterSet.name, PixelDCSObject< T >::Item.name, production_tasks.Task.name, FileData.name(), PacketData.name(), ChargeSignificanceTrajectoryFilter.name(), DDAxesNames.name(), BlockElementImporterBase.name(), EcalDetIdAssociator.name(), HODetIdAssociator.name(), PreshowerDetIdAssociator.name(), MinHitsTrajectoryFilter.name(), pos::PixelConfigAlias.name(), analyzer.Analyzer.name, LooperTrajectoryFilter.name(), DQMRivetClient::LumiOption.name, MagCylinder.name, CharmTagger::MVAVar.name, HcalForwardLibWriter::FileHandle.name, HcalDetIdAssociator.name(), rpcrawtodigi::ReadoutError.name(), RPCLinkSynchroStat::LinkBoard.name(), HGCalTriggerGeometryBase.name(), emtf::LossFunction.name(), PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.name, PrintSensitive.name, PFClusterEnergyCorrectorBase.name(), PFCPositionCalculatorBase.name(), ClusterShapeTrajectoryFilter.name(), JetResolution.name(), TriggerOutputBranches::NamedBranchPtr.name, ALIFileOut.name(), Filter.name(), PixelBarrelNameUpgrade.name(), DDI::rep_type< N, I >.name(), DCCTBDataField.name(), reco::tau::RecoTauNamedPlugin.name(), DDI::rep_type< N, pimpl_type >.name(), DDI::rep_type< DDName, pimpl_type >.name(), ParSet.name, TableOutputBranches::NamedBranchPtr.name, MuonSubDetector.name(), HGCalTriggerFECodecBase.name(), citk::IsolationConeDefinitionBase.name(), CalibratedHistogramXML.name(), ThresholdPtTrajectoryFilter.name(), CSCChannelMapperPostls1.name(), PixelEndcapNameUpgrade.name(), edm::FunctionWithDict.name(), pat::helper::OverlapTest.name(), DQMRivetClient::ScaleFactorOption.name, HLTPerformanceInfo::Module.name(), L1GctEtHad.name(), L1GctEtTotal.name(), rpcrawtodigi::DataRecord.name(), RHStopTracer::StopPoint.name, EgHLTOfflineSummaryClient::SumHistBinData.name, runEdmFileComparison.EdmObject.name, ClassName< T >.name(), CSCChannelMapperStartup.name(), BeamSpotOnline.name(), PhysicsTools::Source.name, SingleObjectCondition.name, OmtfName.name(), cond::persistency::GTProxyData.name, CalibrationCategory< CI >.name(), FTLUncalibratedRecHitAlgoBase.name(), pos::PixelDACScanRange.name(), core.autovars.NTupleObjectType.name, PixelEndcapName.name(), SummaryGenerator.name(), FTLRecHitAlgoBase.name(), MTDRecHitAlgoBase.name(), MyWatcher.name, TrajectoryFilter.name(), L1GctInternEmCand.name(), FWParameterBase.name(), edm::eventsetup::ModuleMakerTraits.name(), HGCalTriggerBackendAlgorithmBase.name(), edm::PathTimingSummary.name, MTDUncalibratedRecHitAlgoBase.name(), FWGenericParameterWithRange< T > FWConfiguration.name(), OpticalAlignParam.name(), FWGenericParameter< T >.name(), FWGenericParameterWithRange< T >.name(), FWGenericParameterWithRange< double >.name(), FWGenericParameterWithRange< long >.name(), nanoaod::FlatTable.name(), CSCIndexerStartup.name(), reco::CompositeCandidate.name(), PixelBarrelName.name(), cms::DDAlgoArguments.name, BinomialInterval.name(), dirstructure.Weighted.name, EGEnergySysIndex.name(), CompositeTrajectoryFilter.name(), lumi::TriggerInfo.name, alignment.Alignment.name, CSCChannelMapperBase.name(), cond::TimeTypeSpecs.name, LumiScalers.name(), DDName.name(), edm::PathSummary.name, PrintMaterialBudgetInfo.name, ALIFileIn.name(), CSCIndexerPostls1.name(), L1GctJetCand.name(), L1TriggerScalers.name(), PixelEndcapLinkMaker::Item.name, perftools::EdmEventSize::BranchRecord.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, DQMGenericClient::EfficOption.name, FWTableViewManager::TableEntry.name, MinPtTrajectoryFilter.name(), reco::NamedCompositeCandidate.name(), hcaldqm::quantity::Quantity.name(), PixelBarrelLinkMaker::Item.name, pos::PixelROCMaskBits.name(), CaloDetIdAssociator.name(), cond::persistency::GLOBAL_TAG_MAP::RECORD.name, FWPhysicsObjectDesc.name(), validateAlignments.ParallelMergeJob.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, BPhysicsSpectrum.name, MEtoEDM< T >::MEtoEDMObject.name, GlobalVariablesTableProducer::Variable.name(), ExpressionHisto< T >.name, funct::X.name(), cond::persistency::GTEditor.name(), ExpressionHisto< typename C::value_type >.name, edm::eventsetup::heterocontainer::HCTypeTag.name(), python.rootplot.utilities.Hist2D.name, funct::Y.name(), SeedingLayerSetsHits::SeedingLayer.name(), GlobalTrackingRegion.name(), XMLProcessor::_loaderBaseConfig.name, L1GctHtMiss.name(), DCCTBBlockPrototype.name(), edm::eventsetup::EventSetupRecordKey.name(), edm::TypeIDBase.name(), funct::Z.name(), cond::persistency::PAYLOAD::HASH.name, Entry.name(), L1GctEmCand.name(), CkfBaseTrajectoryFilter.name(), genericValidation.GenericValidation.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, TreeCrawler.Package.name, fwlite::Record.name(), L1TriggerRates.name(), DDValue.name(), CaloTrkProcessing::Detector.name, cond::persistency::PAYLOAD::DATA.name, FWViewEnergyScale.name(), cond::persistency::PAYLOAD::STREAMER_INFO.name, NanoAODDQM::Plot.name(), PrintGeomInfoAction.name, MagGeoBuilderFromDDD::volumeHandle.name, cond::persistency::PAYLOAD::VERSION.name, MuonDetIdAssociator.name(), edm::eventsetup::SourceMakerTraits.name(), L1GtPatternLine.name(), cond::persistency::PAYLOAD::INSERTION_TIME.name, options.ConnectionHLTMenu.name, SimpleL1MuGMTCand.name(), edm::TRandomAdaptor.name(), DisplayManager.DisplayManager.name, CalibratedObject.name(), Level1TriggerRates.name(), OpticalObject.name(), MVAVar.name, DQMGenericClient::ProfileOption.name, MonElemContainer< OffPho > tightTrig looseTrig.name(), egHLT::MonElemContainer< T >.name(), MonElemContainer< OffEle >.name(), MonElemContainer< OffEle > tightTrig looseTrig.name(), MonElemContainer< OffPho >.name(), MonElemContainer< T >.name(), MonElemContainer< T > tightTrig looseTrig.name(), dqmoffline::l1t::HistDefinition.name, tnp::ProbeVariable.name(), L1AcceptBunchCrossing.name(), VectorWithNormColumn< T >.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, VectorColumn< T >.name, cms::DDNamespace.name(), CachingVariable.name(), emtf::LeastSquares.name(), DQMGenericClient::NormOption.name, edm::eventsetup::DataKey.name(), emtf::Node.name, BTagProbabilityToDiscriminator::Discriminator.name, FTLDigitizerBase.name(), SimpleFlatTableProducerBase< T, TProd >::VariableBase.name(), h4DSegm.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, PhysicsTools::Variable::Value.name, PhysicsTools::Calibration::Variable.name, FastHFShowerLibrary.name, L1MuDTTrack.name(), CSCIndexerBase.name(), FWGeometryTableManagerBase::NodeInfo.name(), L1MuGMTCand.name(), DQMGenericClient::CDOption.name, ModifyObjectValueBase.name(), DcsStatus.name(), TriggerObjectTableProducer::SelectedObject.name, CounterChecker.name, MillePedeVariables.name(), L1MuBMTrack.name(), FWViewType.name(), cond::TagInfo_t.name, MTDDigitizerBase.name(), reco::ElectronSeed.name(), HLTPerformanceInfo::Path.name(), ProcTMVA::Method.name, edm::Path.name(), looper.Looper.name, TreeSaver::Var.name, BPhysicsValidation::ParticleMonitor.name, DQMGenericClient::NoFlowOption.name, DDBase< N, C >.name(), DDNameInterface.name(), DDBase< DDName, std::vector< std::string > * >.name(), DDBase< DDName, std::string * >.name(), python.rootplot.tree2hists.Plot.name, DDBase< DDName, DDI::Specific * >.name(), DDBase< DDName, DDI::Solid * >.name(), DDBase< DDName, DDRotationMatrix * >.name(), Vispa.Gui.PortWidget.PortWidget.name(), DDBase< DDName, DDI::LogicalPart * >.name(), DDBase< DDName, DDI::Division * >.name(), DDBase< DDName, dd_map_type * >.name(), DDBase< DDName, double * >.name(), DDBase< DDName, std::vector< double > * >.name(), DDBase< DDName, DDI::Material * >.name(), cond::persistency::IOV::TAG_NAME.name, TrackerSectorStruct.name, cond::persistency::IOV::SINCE.name, EDMtoMEConverter.name, StripSubClusterShapeTrajectoryFilter.name(), Mapper::definition< ScannerT >.name, classes.MonitorData.name, cond::persistency::IOV::PAYLOAD_HASH.name, cond::persistency::IOV::INSERTION_TIME.name, PhysicsTools::TreeReader::Value.name, BPhysicsValidation.name, edm::eventsetup::LooperMakerTraits.name(), HistogramManager.name, cond::persistency::GTProxy.name(), edm::TriggerResults.name(), PhysicsTools::TrainProcessor.name, MuonGeometrySanityCheckPoint.name, DetGeomDesc.name(), pat::TriggerCondition.name(), CutApplicatorBase.name(), Measurement.name(), L1GObject.name(), classes.OutputData.name, edm::TypeWithDict.name(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.name, CosmicTrackingRegion.name(), HistoData.name, PhysicsTools::ProcessRegistry< Base_t, CalibBase_t, Parent_t >.name, utils.StatisticalTest.name, pat::TriggerAlgorithm.name(), FWEventItem.name(), GeometricDetExtra.name(), PhysicsTools::MVATrainer.name, options.HLTProcessOptions.name, tnp::ProbeFlag.name(), TrackingRegion.name(), pat::TriggerPath.name(), h2DSegm.name, python.rootplot.utilities.Hist.name, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, VIDSelectorBase.VIDSelectorBase.name(), nanoaod::FlatTable::Column.name, VariableComputer.name(), config.Analyzer.name, geometry.Structure.name, emtf::AbsoluteDeviation.name(), DetIdAssociator.name(), core.autovars.NTupleSubObject.name, IntegratedCalibrationBase.name(), cuy.divideElement.name, DQMNet::WaitObject.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< edm::Ptr< reco::Photon > >.name(), VersionedSelector< edm::Ptr< reco::GsfElectron > >.name(), VersionedSelector< T >.name(), VersionedSelector< edm::Ptr< reco::Muon > >.name(), VersionedSelector< edm::Ptr< pat::Electron > >.name(), GeometricDet.name(), public_plots_tools.ColorScheme.name, config.Service.name, PhysicsTools::Variable.name, cuy.superimposeElement.name, cond::persistency::TAG_LOG::TAG_NAME.name, BasicHepMCValidation::ParticleMonitor.name, cond::persistency::TAG_LOG::EVENT_TIME.name, MaterialAccountingGroup.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, FilterSelection.name(), emtf::Huber.name(), RectangularEtaPhiTrackingRegion.name(), BPHRecoBuilder::BPHRecoSource.name, BPHRecoBuilder::BPHCompSource.name, utils.KS.name, cuy.FindIssue.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(), Vispa.Views.PropertyView.Property.name(), hcaldqm::quantity::LumiSectionCoarse.name(), hTMaxCell.name, cscdqm::ParHistoDef.name, hcaldqm::quantity::RunNumber.name(), hcaldqm::quantity::EventNumber.name(), validation.Sample.name(), hcaldqm::quantity::EventType.name(), dqm_interfaces.DirWalkerFile.name, BeautifulSoup.Tag.name, Id.name, genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.name(), SummaryOutputProducer::GenericSummary.name, BeautifulSoup.SoupStrainer.name, dataset.Dataset.name(), validation.SimpleSample.name(), and trackingPlots.Iteration.name().

40  def __str__(self):
41  '''A useful printout'''
42  header = '{type}: {name}'.format( type=self.__class__.__name__,
43  name=self.name)
44  varlines = ['\t{var:<15}: {value}'.format(var=var, value=value) \
45  for var,value in sorted(vars(six.iteritems(self))) \
46  if var is not 'name']
47  all = [ header ]
48  all.extend(varlines)
49  return '\n'.join( all )
50 
def __str__(self)
Definition: config.py:40
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 51 of file config.py.

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