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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 37 of file config.py.

References update.

37  def __init__(self, **kwargs):
38  '''All keyword arguments are added as attributes.'''
39  self.__dict__.update( **kwargs )
40 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)
#define update(a, b)

Member Function Documentation

◆ __str__()

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

Definition at line 41 of file config.py.

References __class__< T >.__class__(), PixelDCSObject< T >.items, EcalContainer< DetId, T >.items(), DictTypes.SortedKeysDict.items(), EcalContainer< ESDetId, Item >.items(), EcalContainer< EcalScDetId, Item >.items(), EcalContainer< EEDetId, Item >.items(), EcalContainer< EBDetId, Item >.items(), EcalContainer< EcalTrigTowerDetId, Item >.items(), EcalContainer< DetIdT, T >.items(), Items.items(), AlignmentSurfaceDeformations.items(), betterConfigParser.AdaptedDict.items(), edm::ErrorObj.items(), FWTableViewManager.items(), betterConfigParser.BetterConfigParser.items(), svgfig.SVG.items(), join(), ElectronMVAID.ElectronMVAID.name, OAQualityTranslator.name(), RPCNameHelper.name(), FP420HitsObject.name(), TrackerHitsObject.name(), AlignableObjectId::entry.name, average.Average.name, counter.Counter.name, histograms.Histograms.name, funct::Parameter.name(), SymmetryFit.name(), RPCGeomServ.name(), TmModule.name, cond::persistency::RUN_INFO::RUN_NUMBER.name, cond::persistency::TAG::NAME.name, cond::persistency::GTEditorData.name, FWLite.ElectronMVAID.name, cond::persistency::GLOBAL_TAG::NAME.name, cond::persistency::TAG::TIME_TYPE.name, cond::persistency::RUN_INFO::START_TIME.name, ExpressionEvaluatorCut.name(), cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::RUN_INFO::END_TIME.name, core.autovars.NTupleVariable.name, cond::persistency::TAG::OBJECT_TYPE.name, CmsTrackerStringToEnum.name(), cond::persistency::GLOBAL_TAG::DESCRIPTION.name, listHistos.plotInfo.name, cond::persistency::TAG::SYNCHRONIZATION.name, HGCalAlgoWrapperBaseT< InputCollection, OutputCollection, Tparam >.name(), HGCalProcessorBaseT< InputCollection, OutputCollection >.name(), MaterialInformation.name(), cond::persistency::GLOBAL_TAG::RELEASE.name, DQMRivetClient::NormOption.name, edm::ModuleTime.name(), cond::persistency::TAG::END_OF_VALIDITY.name, AxesNames.name(), MEPSet.name, CALayer.name(), cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, cond::persistency::O2O_RUN::JOB_NAME.name, cond::persistency::TAG::DESCRIPTION.name, cms::dd::NameValuePair< T >.name, GeomDetType.name(), candidate_functions::CandidateCut.name(), ExpressionEvaluatorCutWithEventContent.name(), PCaloHit.name(), cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, cond::persistency::O2O_RUN::START_TIME.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, CaloValidationStatistics.name(), cond::persistency::O2O_RUN::END_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, BlockElementLinkerBase.name(), FWTGeoRecoGeometry::Info.name, TrackingSlaveSD.name(), cond::persistency::O2O_RUN::STATUS_CODE.name, cond::persistency::TAG::MODIFICATION_TIME.name, ResolutionModel.name(), cond::persistency::O2O_RUN::LOG.name, ParameterSet.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::PROTECTION_CODE.name, l1t::demo::BoardData.name(), RecHitTopologicalCleanerBase.name(), SeedFinderBase.name(), SingleColumn< T >.name, SingleWithNormColumn< T >.name, OutputMEPSet.name, CaloSlaveSD.name(), HistoDef.name(), MaxConsecLostHitsTrajectoryFilter.name(), MaxLostHitsTrajectoryFilter.name(), PixelModuleName.name(), HGCalTriggerGeometryBase.name(), CaloDetInfo.name(), PixelDCSObject< T >::Item.name, DDAxesNames.name(), dataset.BaseDataset.name, SummaryTableOutputBranches::NamedBranchPtr.name, edm::BaseWithDict.name(), AlignmentConstraint.name, RegionalTrajectoryFilter.name(), EventSelector.name(), cms::dd::ValuePair< T, U >.name, FileData.name(), PacketData.name(), fit::RootMinuitCommand.name, edm::MemberWithDict.name(), HcalForwardLibWriter::FileHandle.name, personalPlayback.Applet.name, BlockElementImporterBase.name(), MaxHitsTrajectoryFilter.name(), JetResolution.name(), EventStringOutputBranches::NamedBranchPtr.name, HGCalTriggerNtupleBase.name(), tfaot::Model< W >.name(), Types._Untracked.name, OffsetAnalyzerDQM::Plot1D.name, SeedExtensionTrajectoryFilter.name(), EcalPulseCovariancesGPU.name(), EcalPulseShapesGPU.name(), RPCLinkSynchroStat::LinkBoard.name(), EcalDetIdAssociator.name(), HODetIdAssociator.name(), PreshowerDetIdAssociator.name(), FuncVariable< GlobalVector, StringObjectFunction< GlobalVector >.name(), MagCylinder.name, rpcrawtodigi::ReadoutError.name(), analyzer.Analyzer.name, production_tasks.Task.name, emtf::LossFunction.name(), VariableBase.name(), HcalDetIdAssociator.name(), ChargeSignificanceTrajectoryFilter.name(), LostHitsFractionTrajectoryFilter.name(), FuncVariable< DETECTOR_T, StringObjectFunction< DETECTOR_T >.name(), FuncVariable< DETECTOR_T, StringObjectFunction< DETECTOR_T > unsigned.name(), FuncVariable< GlobalPoint, StringObjectFunction< GlobalPoint >.name(), EcalRechitADCToGeVConstantGPU.name(), EcalRechitChannelStatusGPU.name(), heppy::ParSet.name, PixelBarrelNameUpgrade.name(), MaxCCCLostHitsTrajectoryFilter.name(), citk::IsolationConeDefinitionBase.name(), CalibratedHistogramXML.name(), MTDUncalibratedRecHitAlgoBase< DataFrame >.name(), PdtEntry.name(), DQMRivetClient::LumiOption.name, ALIFileOut.name(), EcalGainRatiosGPU.name(), PFClusterEnergyCorrectorBase.name(), PixelEndcapNameUpgrade.name(), DDFilteredView.name(), DDSolidShapesName.name(), cond::persistency::GTProxyData.name, CalibrationCategory< CI >.name(), PFJetAnalyzerDQM::Plot1DInBin.name, EcalIntercalibConstantsGPU.name(), EcalLaserAlphasGPU.name(), EcalTimeCalibConstantsGPU.name(), ecal::raw::ElectronicsMappingGPU.name(), HLTPerformanceInfo::Module.name(), L1GctEtHad.name(), L1GctEtTotal.name(), hcaldqm::quantity::Quantity.name(), MuonSubDetector.name(), LooperTrajectoryFilter.name(), EcalLaserAPDPNRatiosRefGPU.name(), EcalSamplesCorrelationGPU.name(), EcalTimeBiasCorrectionsGPU.name(), rpcrawtodigi::DataRecord.name(), BeamSpotOnline.name(), DDName.name(), TriggerOutputBranches::NamedBranchPtr.name, SingleObjectCondition.name, CharmTagger::MVAVar.name, reco::tau::RecoTauNamedPlugin.name(), CaloDetIdAssociator.name(), EcalLaserAPDPNRatiosGPU.name(), EcalLinearCorrectionsGPU.name(), EcalPedestalsGPU.name(), TableOutputBranches::NamedBranchPtr.name, edm::FunctionWithDict.name(), HeavyIonCSVTagger::MVAVar.name, PFCPositionCalculatorBase.name(), edm::PathTimingSummary.name, DQMRivetClient::ScaleFactorOption.name, L1GctInternEmCand.name(), L1TriggerScalers.name(), LumiScalers.name(), cms::DDAlgoArguments.name, SummaryGenerator.name(), EgHLTOfflineSummaryClient::SumHistBinData.name, RHStopTracer::StopPoint.name, pat::helper::OverlapTest.name(), Filter.name(), MTDRecHitAlgoBase.name(), ClusterShapeTrajectoryFilter.name(), PassiveHit.name(), runEdmFileComparison.EdmObject.name, TrajectoryFilter.name(), CSCChannelMapperPostls1.name(), OpticalAlignParam.name(), PixelBarrelName.name(), DCCTBDataField.name(), Barrel.name, ClassName< T >.name(), condhdf5tohdf5.H5Payload.name(), FWGenericParameter< T >.name(), FWGenericParameterWithRange< T >.name(), FWGenericParameterWithRange< T > FWConfiguration.name(), FWGenericParameterWithRange< double >.name(), perftools::EdmEventSize::BranchRecord.name, cond::TimeTypeSpecs.name, core.autovars.NTupleObjectType.name, DDI::rep_type< N, I >.name(), FWGenericParameterWithRange< long >.name(), FWParameterBase.name(), DDI::rep_type< DDName, std::unique_ptr< DDI::Division > >.name(), DDI::rep_type< DDName, std::unique_ptr< DDI::LogicalPart > >.name(), DDI::rep_type< DDName, std::unique_ptr< DDI::Specific > >.name(), DDI::rep_type< DDName, std::unique_ptr< std::string > >.name(), CSCChannelMapperStartup.name(), DDI::rep_type< DDName, std::unique_ptr< double > >.name(), DDI::rep_type< DDName, std::unique_ptr< dd_map_type > >.name(), DDI::rep_type< N, C >.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::Solid > >.name(), DDI::rep_type< DDName, std::unique_ptr< DDI::Material > >.name(), DDI::rep_type< DDName, std::unique_ptr< std::vector< double > > >.name(), Level1TriggerScalers.name(), PixelEndcapName.name(), edm::eventsetup::ModuleMakerTraits.name(), pos::PixelDACScanRange.name(), EcalLogicID.name, LumiOutputBranches::NamedBranchPtr.name, HGCalTriggerClusterIdentificationBDT::WorkingPoint.name(), edm::PathSummary.name, edm::EventTime.name(), CSCIndexerStartup.name(), EgammaHLTHGCalIDVarProducer::PCAAssocMap.name(), ThresholdPtTrajectoryFilter.name(), edm::TypeID.name(), MinHitsTrajectoryFilter.name(), ALIFileIn.name(), L1GctJetCand.name(), lumi::TriggerInfo.name, edm::TypeIDBase.name(), tfaot::Wrapper.name(), EGEnergySysIndex.name(), XMLProcessor::_loaderBaseConfig.name, reco::CompositeCandidate.name(), PixelEndcapLinkMaker::Item.name, L1TriggerRates.name(), FWPhysicsObjectDesc.name(), pos::PixelROCMaskBits.name(), L1GctJetCounts.name(), MEtoEDM< T >::MEtoEDMObject.name, DCCTBBlockPrototype.name(), edm::eventsetup::EventSetupRecordKey.name(), edm::eventsetup::heterocontainer::HCTypeTag.name(), OmtfName.name(), CSCIndexerPostls1.name(), dirstructure.Weighted.name, FWTableViewManager::TableEntry.name, BPhysicsSpectrum.name, pos::PixelROCTrimBits.name(), reco::NamedCompositeCandidate.name(), PixelBarrelLinkMaker::Item.name, L1GctEtMiss.name(), CSCChannelMapperBase.name(), Level1TriggerRates.name(), CompositeLogicalTrajectoryFilter.name(), SeedingLayerSetsHits::SeedingLayer.name(), HLTGenValClient::EfficOption.name, cond::persistency::GTEditor.name(), L1GctEmCand.name(), L1GctHtMiss.name(), ExpressionHisto< T >.name, Entry.name(), DQMGenericClient::EfficOption.name, funct::DefaultVariable.name(), ExpressionHisto< typename C::value_type >.name, CompositeTrajectoryFilter.name(), funct::X.name(), funct::Y.name(), funct::Z.name(), edm::eventsetup::DataKey.name(), python.rootplot.utilities.Hist2D.name, DDValue.name(), FWViewEnergyScale.name(), Supermodule.name, TreeCrawler.Package.name, MonElemContainer< T >.name(), MonElemContainer< T > tightTrig looseTrig.name(), MonElemContainer< OffEle >.name(), MonElemContainer< OffPho > tightTrig looseTrig.name(), cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, MinPtTrajectoryFilter.name(), egHLT::MonElemContainer< T >.name(), edm::eventsetup::SourceMakerTraits.name(), MonElemContainer< OffEle > tightTrig looseTrig.name(), CaloTrkProcessing::Detector.name, MonElemContainer< OffPho >.name(), fwlite::Record.name(), SimpleL1MuGMTCand.name(), L1GtPatternLine.name(), cms::h5::Group.name(), cond::persistency::GLOBAL_TAG_MAP::RECORD.name, L1AcceptBunchCrossing.name(), condhdf5tohdf5.H5DataProduct.name(), options.ConnectionHLTMenu.name, edm::TRandomAdaptor.name(), OpticalObject.name(), CalibratedObject.name(), DDBase< DDName, std::unique_ptr< DDI::LogicalPart > >.name(), DDBase< DDName, std::unique_ptr< DDI::Material > >.name(), DDBase< N, C >.name(), cms::DDParsingContext::CompositeMaterial.name, MVAVar.name, ModifyObjectValueBase.name(), DDBase< DDName, std::unique_ptr< DDI::Division > >.name(), DDBase< DDName, std::unique_ptr< double > >.name(), DDBase< DDName, std::unique_ptr< dd_map_type > >.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, DDBase< DDName, std::unique_ptr< DDI::Specific > >.name(), DDBase< DDName, std::unique_ptr< std::string > >.name(), DDBase< DDName, std::unique_ptr< std::vector< std::string > > >.name(), DDBase< DDName, std::unique_ptr< DDRotationMatrix > >.name(), DDBase< DDName, std::unique_ptr< DDI::Solid > >.name(), DDBase< DDName, std::unique_ptr< std::vector< double > > >.name(), unique_ptr< DDI::Material >.name(), cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, DDExpandedView.name(), DisplayManager.DisplayManager.name, emtf::LeastSquares.name(), MuonDetIdAssociator.name(), cond::Tag_t.name, FWLite.WorkingPoints.name, nanoaod::FlatTable.name(), dqmoffline::l1t::HistDefinition.name, DQMGenericClient::ProfileOption.name, HLTPerformanceInfo::Path.name(), magneticfield::BaseVolumeHandle.name, L1MuDTTrack.name(), nanoaod::MergeableCounterTable::VectorColumn< T >.name, VectorWithNormColumn< T >.name, tnp::ProbeVariable.name(), CkfBaseTrajectoryFilter.name(), FastHFShowerLibrary.name, VectorColumn< T >.name, emtf::Node.name, PhysicsTools::Variable::Value.name, FWGeometryTableManagerBase::NodeInfo.name(), GlobalTrackingRegion.name(), h4DSegm.name, edm::Path.name(), CachingVariable.name(), L1MuBMTrack.name(), DcsStatus.name(), BTagProbabilityToDiscriminator::Discriminator.name, PrintMaterialBudgetInfo.name, DQMGenericClient::NormOption.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, L1MuGMTCand.name(), reco::ElectronSeed.name(), DQMGenericClient::CDOption.name, CounterChecker.name, DD4hep_MaterialAccountingGroup.name(), MillePedeVariables.name(), FWViewType.name(), cond::TagInfo_t.name, NanoAODDQM::Plot.name(), DetGeomDesc.name(), TrackerSectorStruct.name, edm::TriggerResults.name(), MuonGeometrySanityCheckPoint.name, PhysicsTools::Calibration::Variable.name, cond::persistency::PAYLOAD::HASH.name, DQMGenericClient::NoFlowOption.name, EDMtoMEConverter.name, BPhysicsValidation::ParticleMonitor.name, PFJetAnalyzerDQM::Plot1DInBinVariable.name, Mapper::definition< ScannerT >.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, looper.Looper.name, cond::persistency::PAYLOAD::DATA.name, cms::DDNamespace.name(), cond::persistency::PAYLOAD::STREAMER_INFO.name, python.rootplot.tree2hists.Plot.name, cond::persistency::PAYLOAD::VERSION.name, CutApplicatorBase.name(), GlobalVariablesTableProducer::Variable.name(), cond::persistency::PAYLOAD::INSERTION_TIME.name, MTDDigitizerBase.name(), PhysicsTools::TreeReader::Value.name, CSCIndexerBase.name(), classes.MonitorData.name, BPhysicsValidation.name, PhysicsTools::ProcessRegistry< Base_t, CalibBase_t, Parent_t >.name, edm::eventsetup::LooperMakerTraits.name(), Measurement.name(), condhdf5tohdf5.H5Tag.name(), pat::TriggerCondition.name(), GeometricDet.name(), cond::persistency::GTProxy.name(), HistogramManager.name, L1GObject.name(), classes.OutputData.name, FWEventItem.name(), BPHDecayToResResBuilderBase::DZSelect.name, edm::TypeWithDict.name(), L1TPhase2CorrelatorOffline::MultiCollection.name(), CosmicTrackingRegion.name(), StripSubClusterShapeTrajectoryFilter.name(), Crystal.name, HistoData.name, GeometricTimingDet.name(), h2DSegm.name, options.HLTProcessOptions.name, tnp::ProbeFlag.name(), emtf::AbsoluteDeviation.name(), cond::persistency::IOV::TAG_NAME.name, cond::persistency::IOV::SINCE.name, cond::persistency::IOV::PAYLOAD_HASH.name, utils.StatisticalTest.name, edm::ESGetToken< fwliteeswriter::DummyType, fwliteeswriter::FWLWEventSetupRecord >.name(), cond::persistency::IOV::INSERTION_TIME.name, pat::TriggerAlgorithm.name(), DetIdAssociator.name(), pat::TriggerPath.name(), DQMNet::WaitObject.name, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, cscdqm::Address.name(), python.rootplot.utilities.Hist.name, VariableComputer.name(), AlpgenParameterName.name, config.Analyzer.name, MaterialAccountingGroup.name(), geometry.Structure.name, TrackingRegion.name(), IntegratedCalibrationBase.name(), hDigis.name, core.autovars.NTupleSubObject.name, cuy.divideElement.name, Capsule.name, cuy.plotElement.name, core.autovars.NTupleObject.name, Ceramic.name, cuy.additionElement.name, PhysicsTools::Variable.name, SiStripMonitorDigi.name, cms::DDFilteredView.name(), VIDSelectorBase.VIDSelectorBase.name(), VersionedSelector< T >.name(), config.Service.name, BulkSilicon.name, cuy.superimposeElement.name, adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.name, emtf::Huber.name(), APD.name, core.autovars.NTupleCollection.name, cuy.graphElement.name, BPHRecoBuilder::BPHRecoSource.name, CaloSD::Detector.name, Folder.name(), FilterSelection.name(), nanoaod::FlatTable::Column.name, BPHRecoBuilder::BPHCompSource.name, StraightTrackAlignment::RPSetPlots.name, BasicHepMCValidation::ParticleMonitor.name, lutNN::LutNeuronLayerFixedPoint< layer2_input_I, layer2_input_F, layer1_neurons, layer2_lut_I, layer2_lut_F, layer2_neurons, layer3_input_I >.name, lutNN::LutNeuronLayerFixedPoint< input_I, input_F, inputSize, lut_I, lut_F, neurons, output_I >.name, cond::persistency::TAG_AUTHORIZATION::TAG_NAME.name, lutNN::LutNeuronLayerFixedPoint< layer3_input_I, layer3_input_F, layer3_0_inputCnt, layer3_0_lut_I, layer3_0_lut_F, 1, output0_I >.name, lutNN::LutNeuronLayerFixedPoint< input_I, input_F, inputSize, layer1_lut_I, layer1_lut_F, layer1_neurons, layer1_output_I >.name, lutNN::LutNeuronLayerFixedPoint< layer3_input_I, layer3_input_F, layer3_1_inputCnt, layer3_1_lut_I, layer3_1_lut_F, 1, output1_I >.name, cond::persistency::TAG_AUTHORIZATION::ACCESS_TYPE.name, cond::persistency::TAG_AUTHORIZATION::CREDENTIAL.name, cond::persistency::TAG_AUTHORIZATION::CREDENTIAL_TYPE.name, InnerLayerVolume.name, conddb2hdf5.DBPayload.name(), emtf::PercentErrorSquared.name(), utils.KS.name, cond::payloadInspector::TagReference.name, trklet::VarBase.name(), NanoAODDQM::SelGroupConfig.name, conddb2hdf5.DBDataProduct.name(), RectangularEtaPhiTrackingRegion.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, cond::persistency::TAG_LOG::USER_TEXT.name, conddb2hdf5.DBTag.name(), lutNN::LutNetworkFixedPointRegression2Outputs< input_I, input_F, inputSize, layer1_lut_I, layer1_lut_F, layer1_neurons, layer1_output_I, layer2_input_I, layer2_lut_I, layer2_lut_F, layer2_neurons, layer3_input_I, layer3_0_inputCnt, layer3_0_lut_I, layer3_0_lut_F, output0_I, output0_F, layer3_1_inputCnt, layer3_1_lut_I, layer3_1_lut_F, output1_I, output1_F >.name, utils.Chi2.name, personalPlayback.FrameworkJob.name, Grid.name, trklet::TrackletConfigBuilder::DTCinfo.name, Grille.name, utils_v2.StatisticalTest.name, utils.BinToBin.name, BackPipe.name, plotscripts.SawTeethFunction.name, utils_v2.KolmogorovTest.name, utils_v2.Chi2Test.name, dqm_interfaces.DirID.name, dirstructure.Comparison.name, PatchPanel.name, BackCoolTank.name, utils.BinToBin1percent.name, DryAirTube.name, python.rootplot.utilities.RootFile.name, crabFunctions.CrabTask.name, MBCoolTube.name, hHits.name, hcaldqm::quantity::FlagQuantity.name(), MBManif.name, hcaldqm::quantity::LumiSection.name(), cscdqm::ParHistoDef.name, hcaldqm::quantity::LumiSectionCoarse.name(), hcaldqm::quantity::RunNumber.name(), hDeltaR.name, hcaldqm::quantity::EventNumber.name(), hcaldqm::quantity::EventType.name(), hTMaxCell.name, validation.Sample.name(), dqm_interfaces.DirWalkerFile.name, hParam.name, hMuonStat.name, hTOF.name, hTDelay.name, hTimes< hTime >.name, SummaryOutputProducer::GenericSummary.name, validation.SimpleSample.name(), and trackingPlots.Iteration.name().

41  def __str__(self):
42  '''A useful printout'''
43  header = '{type}: {name}'.format( type=self.__class__.__name__,
44  name=self.name)
45  varlines = ['\t{var:<15}: {value}'.format(var=var, value=value) \
46  for var,value in sorted(vars(self.items())) \
47  if var is not 'name']
48  all = [ header ]
49  all.extend(varlines)
50  return '\n'.join( all )
51 
static std::string join(char **cmd)
Definition: RemoteFile.cc:21

◆ clone()

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

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