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

Constructor & Destructor Documentation

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

Definition at line 35 of file config.py.

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

Member Function Documentation

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

Definition at line 39 of file config.py.

References join(), ElectronMVAID.ElectronMVAID.name, OAQualityTranslator.name(), FP420HitsObject.name(), TrackerHitsObject.name(), counter.Counter.name, average.Average.name, AlignableObjectId::entry.name, histograms.Histograms.name, RPCGeomServ.name(), funct::Parameter.name(), SymmetryFit.name(), TmModule.name, cond::persistency::TAG::NAME.name, core.autovars.NTupleVariable.name, cond::persistency::GLOBAL_TAG::NAME.name, cond::persistency::RUN_INFO::RUN_NUMBER.name, cond::persistency::TAG::TIME_TYPE.name, CmsTrackerStringToEnum.name(), candidate_functions::CandidateCut.name(), listHistos.plotInfo.name, cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::RUN_INFO::START_TIME.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(), MEPSet.name, cond::persistency::TAG::END_OF_VALIDITY.name, ExpressionEvaluatorCut.name(), PassiveHit.name(), cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, GeomDetType.name(), cond::persistency::TAG::DESCRIPTION.name, cond::persistency::GTEditorData.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, RecHitTopologicalCleanerBase.name(), SeedFinderBase.name(), CALayer.name(), FWTGeoRecoGeometry::Info.name, CaloValidationStatistics.name(), Types._Untracked.name, SingleColumn< T >.name, DDSolidShapesName.name(), preexistingValidation.PreexistingValidation.name, cond::persistency::TAG::INSERTION_TIME.name, tauImpactParameter::TrackParticle.name(), TrackingSlaveSD.name(), SeedExtensionTrajectoryFilter.name(), dataset.BaseDataset.name, cond::persistency::TAG::MODIFICATION_TIME.name, ClopperPearsonBinomialInterval.name(), ResolutionModel.name(), PCaloHit.name(), OutputMEPSet.name, BlockElementLinkerBase.name(), tauImpactParameter::LorentzVectorParticle.name(), LostHitsFractionTrajectoryFilter.name(), PixelModuleName.name(), SummaryTableOutputBranches::NamedBranchPtr.name, edm::BaseWithDict.name(), personalPlayback.Applet.name, CaloSlaveSD.name(), PdtEntry.name(), HistoDef.name(), RegionalTrajectoryFilter.name(), production_tasks.Task.name, fit::RootMinuitCommand.name, edm::MemberWithDict.name(), ExpressionEvaluatorCutWithEventContent.name(), MaxCCCLostHitsTrajectoryFilter.name(), ParameterSet.name, EventSelector.name(), PixelDCSObject< T >::Item.name, FileData.name(), PacketData.name(), ChargeSignificanceTrajectoryFilter.name(), DDAxesNames.name(), BlockElementImporterBase.name(), EcalDetIdAssociator.name(), HODetIdAssociator.name(), PreshowerDetIdAssociator.name(), pos::PixelConfigAlias.name(), MinHitsTrajectoryFilter.name(), analyzer.Analyzer.name, DQMRivetClient::LumiOption.name, LooperTrajectoryFilter.name(), MagCylinder.name, CharmTagger::MVAVar.name, HcalForwardLibWriter::FileHandle.name, emtf::LossFunction.name(), HcalDetIdAssociator.name(), rpcrawtodigi::ReadoutError.name(), RPCLinkSynchroStat::LinkBoard.name(), TriggerOutputBranches::NamedBranchPtr.name, PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.name, HGCalTriggerGeometryBase.name(), PrintSensitive.name, PFCPositionCalculatorBase.name(), PFClusterEnergyCorrectorBase.name(), ClusterShapeTrajectoryFilter.name(), JetResolution.name(), Filter.name(), ALIFileOut.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(), runEdmFileComparison.EdmObject.name, edm::FunctionWithDict.name(), pat::helper::OverlapTest.name(), DQMRivetClient::ScaleFactorOption.name, HLTPerformanceInfo::Module.name(), L1GctEtHad.name(), L1GctEtTotal.name(), rpcrawtodigi::DataRecord.name(), EgHLTOfflineSummaryClient::SumHistBinData.name, RHStopTracer::StopPoint.name, ClassName< T >.name(), CSCChannelMapperStartup.name(), BeamSpotOnline.name(), PhysicsTools::Source.name, SingleObjectCondition.name, OmtfName.name(), CalibrationCategory< CI >.name(), FTLUncalibratedRecHitAlgoBase.name(), cond::persistency::GTProxyData.name, core.autovars.NTupleObjectType.name, pos::PixelDACScanRange.name(), PixelEndcapName.name(), SummaryGenerator.name(), Mapper::definition< ScannerT >.name, MyWatcher.name, FTLRecHitAlgoBase.name(), TrajectoryFilter.name(), L1GctInternEmCand.name(), FWParameterBase.name(), edm::eventsetup::ModuleMakerTraits.name(), HGCalTriggerBackendAlgorithmBase.name(), edm::PathTimingSummary.name, FWGenericParameterWithRange< long >.name(), FWGenericParameter< T >.name(), FWGenericParameterWithRange< T >.name(), FWGenericParameterWithRange< T > FWConfiguration.name(), FWGenericParameterWithRange< double >.name(), OpticalAlignParam.name(), nanoaod::FlatTable.name(), PixelBarrelName.name(), CSCIndexerStartup.name(), reco::CompositeCandidate.name(), nanoaod::MergeableCounterTable::VectorColumn< T >.name, VectorColumn< T >.name, dirstructure.Weighted.name, BinomialInterval.name(), alignment.Alignment.name, CompositeTrajectoryFilter.name(), LumiScalers.name(), lumi::TriggerInfo.name, CSCChannelMapperBase.name(), cond::TimeTypeSpecs.name, DDName.name(), PrintMaterialBudgetInfo.name, ALIFileIn.name(), edm::PathSummary.name, CSCIndexerPostls1.name(), L1GctJetCand.name(), L1TriggerScalers.name(), PixelEndcapLinkMaker::Item.name, DQMGenericClient::EfficOption.name, perftools::EdmEventSize::BranchRecord.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, FWTableViewManager::TableEntry.name, MinPtTrajectoryFilter.name(), hcaldqm::quantity::Quantity.name(), PixelBarrelLinkMaker::Item.name, validateAlignments.ParallelMergeJob.name, CaloDetIdAssociator.name(), pos::PixelROCMaskBits.name(), reco::NamedCompositeCandidate.name(), cond::persistency::GLOBAL_TAG_MAP::RECORD.name, Level1TriggerScalers.name(), FWPhysicsObjectDesc.name(), EcalLogicID.name, edm::EventTime.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, GlobalVariablesTableProducer::Variable.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, ExpressionHisto< T >.name, funct::X.name(), BPhysicsSpectrum.name, ExpressionHisto< typename C::value_type >.name, cond::persistency::GTEditor.name(), edm::eventsetup::heterocontainer::HCTypeTag.name(), python.rootplot.utilities.Hist2D.name, funct::Y.name(), GlobalTrackingRegion.name(), XMLProcessor::_loaderBaseConfig.name, SeedingLayerSetsHits::SeedingLayer.name(), L1GctHtMiss.name(), DCCTBBlockPrototype.name(), edm::eventsetup::EventSetupRecordKey.name(), edm::TypeIDBase.name(), TreeCrawler.Package.name, cond::persistency::PAYLOAD::HASH.name, funct::Z.name(), Entry.name(), L1GctEmCand.name(), CkfBaseTrajectoryFilter.name(), genericValidation.GenericValidation.name, CaloTrkProcessing::Detector.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, fwlite::Record.name(), L1TriggerRates.name(), DDValue.name(), cond::persistency::PAYLOAD::DATA.name, FWViewEnergyScale.name(), PrintGeomInfoAction.name, NanoAODDQM::Plot.name(), cond::persistency::PAYLOAD::STREAMER_INFO.name, MuonDetIdAssociator.name(), cond::persistency::PAYLOAD::VERSION.name, options.ConnectionHLTMenu.name, MagGeoBuilderFromDDD::volumeHandle.name, edm::eventsetup::SourceMakerTraits.name(), L1GtPatternLine.name(), cond::persistency::PAYLOAD::INSERTION_TIME.name, SimpleL1MuGMTCand.name(), DisplayManager.DisplayManager.name, edm::TRandomAdaptor.name(), CalibratedObject.name(), DQMGenericClient::ProfileOption.name, Level1TriggerRates.name(), OpticalObject.name(), MonElemContainer< T >.name(), egHLT::MonElemContainer< T >.name(), MonElemContainer< OffPho >.name(), MonElemContainer< OffEle > tightTrig looseTrig.name(), MonElemContainer< OffEle >.name(), MonElemContainer< OffPho > tightTrig looseTrig.name(), MonElemContainer< T > tightTrig looseTrig.name(), tnp::ProbeVariable.name(), L1AcceptBunchCrossing.name(), DeepFlavourJetTagsProducer::MVAVar.name, emtf::LeastSquares.name(), DQMGenericClient::NormOption.name, CachingVariable.name(), edm::eventsetup::DataKey.name(), BTagProbabilityToDiscriminator::Discriminator.name, emtf::Node.name, FTLDigitizerBase.name(), SimpleFlatTableProducerBase< T, TProd >::VariableBase.name(), h4DSegm.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, PhysicsTools::Calibration::Variable.name, PhysicsTools::Variable::Value.name, L1MuDTTrack.name(), FastHFShowerLibrary.name, CSCIndexerBase.name(), FWGeometryTableManagerBase::NodeInfo.name(), DQMGenericClient::CDOption.name, L1MuGMTCand.name(), ModifyObjectValueBase.name(), DcsStatus.name(), TriggerObjectTableProducer::SelectedObject.name, MillePedeVariables.name(), CounterChecker.name, L1MuBMTrack.name(), edm::Path.name(), cond::TagInfo_t.name, EDMtoMEConverter.name, FWViewType.name(), reco::ElectronSeed.name(), HLTPerformanceInfo::Path.name(), looper.Looper.name, ProcTMVA::Method.name, TreeSaver::Var.name, BPhysicsValidation::ParticleMonitor.name, DDBase< N, C >.name(), DDBase< DDName, std::vector< double > * >.name(), Vispa.Gui.PortWidget.PortWidget.name(), DDBase< DDName, std::vector< std::string > * >.name(), DDBase< DDName, DDI::Solid * >.name(), python.rootplot.tree2hists.Plot.name, DDBase< DDName, DDRotationMatrix * >.name(), DDBase< DDName, dd_map_type * >.name(), DDBase< DDName, std::string * >.name(), DDBase< DDName, DDI::Specific * >.name(), DDBase< DDName, DDI::Material * >.name(), DDBase< DDName, DDI::Division * >.name(), DDNameInterface.name(), DDBase< DDName, double * >.name(), DDBase< DDName, DDI::LogicalPart * >.name(), cond::persistency::IOV::TAG_NAME.name, StripSubClusterShapeTrajectoryFilter.name(), cond::persistency::IOV::SINCE.name, TrackerSectorStruct.name, cond::persistency::IOV::PAYLOAD_HASH.name, classes.MonitorData.name, PhysicsTools::TreeReader::Value.name, cond::persistency::IOV::INSERTION_TIME.name, edm::eventsetup::LooperMakerTraits.name(), HistogramManager.name, cond::persistency::GTProxy.name(), BPhysicsValidation.name, PhysicsTools::TrainProcessor.name, MuonGeometrySanityCheckPoint.name, edm::TriggerResults.name(), DetGeomDesc.name(), pat::TriggerCondition.name(), CutApplicatorBase.name(), FastTimerSD.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, TrackingRegion.name(), tnp::ProbeFlag.name(), pat::TriggerPath.name(), h2DSegm.name, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, python.rootplot.utilities.Hist.name, VIDSelectorBase.VIDSelectorBase.name(), nanoaod::FlatTable::Column.name, VariableComputer.name(), config.Analyzer.name, emtf::AbsoluteDeviation.name(), geometry.Structure.name, DetIdAssociator.name(), IntegratedCalibrationBase.name(), core.autovars.NTupleSubObject.name, cuy.divideElement.name, DQMNet::WaitObject.name, AlpgenParameterName.name, cscdqm::Address.name(), Folder.name(), cuy.plotElement.name, NanoAODDQM::SelGroupConfig.name, SiStripMonitorDigi.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< T >.name(), VersionedSelector< edm::Ptr< reco::Muon > >.name(), VersionedSelector< edm::Ptr< reco::Photon > >.name(), GeometricDet.name(), config.Service.name, public_plots_tools.ColorScheme.name, cuy.superimposeElement.name, PhysicsTools::Variable.name, BasicHepMCValidation::ParticleMonitor.name, cond::persistency::TAG_LOG::TAG_NAME.name, MaterialAccountingGroup.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, HRes1DHit.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, HEff1DHit.name, hcaldqm::quantity::FlagQuantity.name(), utils_v2.KolmogorovTest.name, plotscripts.SawTeethFunction.name, dirstructure.Comparison.name, utils_v2.Chi2Test.name, dqm_interfaces.DirID.name, hcaldqm::quantity::LumiSection.name(), utils.BinToBin1percent.name, hcaldqm::quantity::RunNumber.name(), python.rootplot.utilities.RootFile.name, crabFunctions.CrabTask.name, Vispa.Views.PropertyView.Property.name(), hcaldqm::quantity::EventNumber.name(), hTMaxCell.name, HRes2DHit.name, cscdqm::ParHistoDef.name, hcaldqm::quantity::EventType.name(), validation.Sample.name(), dqm_interfaces.DirWalkerFile.name, BeautifulSoup.Tag.name, Id.name, genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.name(), HEff2DHit.name, SummaryOutputProducer::GenericSummary.name, BeautifulSoup.SoupStrainer.name, dataset.Dataset.name(), HRes4DHit.name, validation.SimpleSample.name(), HEff4DHit.name, and trackingPlots.Iteration.name().

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

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