CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
validation.Sample Class Reference

Public Member Functions

def __init__ (self, sample, append=None, midfix=None, putype=None, punum=0, fastsim=False, fastsimCorrespondingFullsimPileup=None, doElectron=None, doConversion=None, doBHadron=None, version="v1", dqmVersion="0001", scenario=None, overrideGlobalTag=None, appendGlobalTag="")
 
def datasetpattern (self, newRelease)
 
def digest (self)
 
def dirname (self, newRepository, newRelease, newSelection)
 
def doBHadron (self)
 
def doConversion (self)
 
def doElectron (self)
 
def fastsim (self)
 
def fastsimCorrespondingFullsimPileup (self)
 
def filename (self, newRelease)
 
def fullsim (self)
 
def hasOverrideGlobalTag (self)
 
def hasPileup (self)
 
def hasScenario (self)
 
def label (self)
 
def name (self)
 
def overrideGlobalTag (self)
 
def pileup (self)
 
def pileupEnabled (self)
 
def pileupNumber (self)
 
def pileupType (self, release=None)
 
def sample (self)
 
def scenario (self)
 
def version (self, release=None)
 

Private Attributes

 _append
 
 _appendGlobalTag
 
 _doBHadron
 
 _doConversion
 
 _doElectron
 
 _dqmVersion
 
 _fastsim
 
 _fastsimCorrespondingFullsimPileup
 
 _midfix
 
 _overrideGlobalTag
 
 _punum
 
 _putype
 
 _sample
 
 _scenario
 
 _version
 

Detailed Description

Represents a RelVal sample.

Definition at line 474 of file validation.py.

Constructor & Destructor Documentation

◆ __init__()

def validation.Sample.__init__ (   self,
  sample,
  append = None,
  midfix = None,
  putype = None,
  punum = 0,
  fastsim = False,
  fastsimCorrespondingFullsimPileup = None,
  doElectron = None,
  doConversion = None,
  doBHadron = None,
  version = "v1",
  dqmVersion = "0001",
  scenario = None,
  overrideGlobalTag = None,
  appendGlobalTag = "" 
)
Constructor.

Arguments:
sample -- String for name of the sample

Keyword arguments
append  -- String for a variable name within the DWM file names, to be directly appended to sample name (e.g. "HS"; default None)
midfix  -- String for a variable name within the DQM file names, to be appended after underscore to "sample name+append" (e.g. "13", "UP15"; default None)
putype  -- String for pileup type (e.g. "25ns"/"50ns" for FullSim, "AVE20" for FastSim; default None)
punum   -- String for amount of pileup (default None)
fastsim -- Bool indicating the FastSim status (default False)
fastsimCorrespondingFullSimPileup -- String indicating what is the FullSim pileup sample corresponding this FastSim sample. Must be set if fastsim=True and putype!=None (default None)
doElectron -- Bool specifying if electron-specific plots should be produced (default depends on sample)
doConversion -- Bool specifying if conversion-specific plots should be produced (default depends on sample)
doBHadron -- Bool specifying if B-hadron-specific plots should be produced (default depends on sample)
version -- String for dataset/DQM file version (default "v1")
scenario -- Geometry scenario for upgrade samples (default None)
overrideGlobalTag -- GlobalTag obtained from release information (in the form of {"release": "actualRelease"}; default None)
appendGlobalTag -- String to append to GlobalTag (intended for one-time hacks; default "")

Definition at line 476 of file validation.py.

476  def __init__(self, sample, append=None, midfix=None, putype=None, punum=0,
477  fastsim=False, fastsimCorrespondingFullsimPileup=None,
478  doElectron=None, doConversion=None, doBHadron=None,
479  version="v1", dqmVersion="0001", scenario=None, overrideGlobalTag=None, appendGlobalTag=""):
480  """Constructor.
481 
482  Arguments:
483  sample -- String for name of the sample
484 
485  Keyword arguments
486  append -- String for a variable name within the DWM file names, to be directly appended to sample name (e.g. "HS"; default None)
487  midfix -- String for a variable name within the DQM file names, to be appended after underscore to "sample name+append" (e.g. "13", "UP15"; default None)
488  putype -- String for pileup type (e.g. "25ns"/"50ns" for FullSim, "AVE20" for FastSim; default None)
489  punum -- String for amount of pileup (default None)
490  fastsim -- Bool indicating the FastSim status (default False)
491  fastsimCorrespondingFullSimPileup -- String indicating what is the FullSim pileup sample corresponding this FastSim sample. Must be set if fastsim=True and putype!=None (default None)
492  doElectron -- Bool specifying if electron-specific plots should be produced (default depends on sample)
493  doConversion -- Bool specifying if conversion-specific plots should be produced (default depends on sample)
494  doBHadron -- Bool specifying if B-hadron-specific plots should be produced (default depends on sample)
495  version -- String for dataset/DQM file version (default "v1")
496  scenario -- Geometry scenario for upgrade samples (default None)
497  overrideGlobalTag -- GlobalTag obtained from release information (in the form of {"release": "actualRelease"}; default None)
498  appendGlobalTag -- String to append to GlobalTag (intended for one-time hacks; default "")
499  """
500  self._sample = sample
501  self._append = append
502  self._midfix = midfix
503  self._putype = putype
504  self._punum = punum
505  self._fastsim = fastsim
506  self._fastsimCorrespondingFullsimPileup = fastsimCorrespondingFullsimPileup
507  self._version = version
508  self._dqmVersion = dqmVersion
509  self._scenario = scenario
510  self._overrideGlobalTag = overrideGlobalTag
511  self._appendGlobalTag = appendGlobalTag
512 
513  if doElectron is not None:
514  self._doElectron = doElectron
515  else:
516  self._doElectron = (sample in _doElectronSamples)
517  if doConversion is not None:
518  self._doConversion = doConversion
519  else:
520  self._doConversion = (sample in _doConversionSamples)
521  if doBHadron is not None:
522  self._doBHadron = doBHadron
523  else:
524  self._doBHadron = (sample in _doBHadronSamples)
525 
526  if self._fastsim and self.hasPileup() and self._fastsimCorrespondingFullsimPileup is None:
527  self._fastsimCorrespondingFullsimPileup = self._putype
528 

Member Function Documentation

◆ datasetpattern()

def validation.Sample.datasetpattern (   self,
  newRelease 
)
Return the dataset pattern

Arguments:
newRelease -- String for CMSSW release

Definition at line 659 of file validation.py.

659  def datasetpattern(self, newRelease):
660  """Return the dataset pattern
661 
662  Arguments:
663  newRelease -- String for CMSSW release
664  """
665  pileup = ""
666  fastsim = ""
667  digi = ""
668  if self.hasPileup():
669  pileup = "-PU_"
670  if self._fastsim:
671  fastsim = "_FastSim-"
672  digi = "DIGI-"
673  else:
674  fastsim = "*"
675  globalTag = _getGlobalTag(self, newRelease)
676  return "{sample}/{newrelease}-{pileup}{globaltag}{fastsim}{version}/GEN-SIM-{digi}RECO".format(
677  sample=self._sample, newrelease=newRelease,
678  pileup=pileup, globaltag=globalTag, fastsim=fastsim, digi=digi,
679  version=self.version(newRelease)
680  )
681 

References validation.Sample._fastsim, validation._getGlobalTag(), validation.Sample._sample, html.IndexSection._sample, validation.Sample.hasPileup(), SiPixelFedCabling.version(), pos::PixelVersionAlias.version(), GEMELMap.version(), GEMeMap.version(), PixelToFEDAssociateFromAscii.version(), L1TUtmCutValue.version, PixelToFEDAssociate.version(), PixelToLNKAssociateFromAscii.version(), SiPixelFedCablingTree.version(), DTRecoUncertainties.version(), SiPixelFedCablingMap.version(), L1TUtmBin.version, FEDHeader.version(), FWConfigurableParameterizable.version(), LTCDigi.version(), MagFieldConfig.version, L1TriggerScalers.version(), Phase2Tracker::FEDDAQHeader.version(), DTRecoConditions.version(), RPCReadOutMapping.version(), BeamSpotOnline.version(), lumi::Lumi2DB::LumiSource.version, Level1TriggerScalers.version(), LumiScalers.version(), SiPixelTemplateDBObject::Reader.version(), FWConfiguration.version(), L1TriggerRates.version(), L1TUtmCondition.version, cond::auth::DecodingKey.version(), options.ConnectionHLTMenu.version, MatrixInjector.MatrixInjector.version, Level1TriggerRates.version(), online::Data_v1.version, TrackerInteractionGeometry.version, SiPixelCPEGenericErrorParm.version(), HcalTrigTowerDetId.version(), L1CaloGeometry.version(), online::Data_v2.version, L1TUtmScale.version, SiPixelGenErrorDBObject.version(), SiPixel2DTemplateDBObject.version(), npstat::StorableMultivariateFunctor.version(), L1TUtmAlgorithm.version, confdbOfflineConverter.OfflineConverter.version, DTCCBConfig.version(), DcsStatus.version(), npstat::UniformAxis.version(), MatacqTBRawEvent::matacqHeader_t.version, DTLVStatus.version(), DTTPGParameters.version(), DTRangeT0.version(), DTT0.version(), DQMNet::CoreObject.version, L1TUtmObject.version, gem::VFATdata.version(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >.version(), npstat::DualAxis.version(), npstat::NUHistoAxis.version(), DTHVStatus.version(), L1TUtmCut.version, SiPixelTemplateDBObject.version(), npstat::GridAxis.version(), DTTtrig.version(), EcalMatacqDigi.version(), XMLProcessor::_DBConfig.version, DTDeadFlag.version(), npstat::HistoAxis.version(), npstat::DualHistoAxis.version(), DTMtime.version(), DTStatusFlag.version(), DTPerformance.version(), FRDEventMsgView.version(), npstat::BoxND< Numeric >.version(), npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >.version(), L1TUtmTriggerMenu.version, ScalersEventRecordRaw_v1.version, ScalersEventRecordRaw_v2.version, ScalersEventRecordRaw_v3.version, sistrip::FEDDAQHeader.version(), ScalersEventRecordRaw_v4.version, ScalersEventRecordRaw_v5.version, npstat::LinInterpolatedTableND< Numeric, Axis >.version(), ScalersEventRecordRaw_v6.version, pos::PixelAliasList.version(), cmsHarvester.CMSHarvester.version, validation.Sample.version(), npstat::HistoND< Numeric, Axis >.version(), and npstat::ArrayND< Numeric, StackLen, StackDim >.version().

◆ digest()

def validation.Sample.digest (   self)
Return a tuple uniquely identifying the sample, to be used e.g. as a key to dict

Definition at line 529 of file validation.py.

529  def digest(self):
530  """Return a tuple uniquely identifying the sample, to be used e.g. as a key to dict"""
531  return (self.name(), self.pileupNumber(), self.pileupType(), self.scenario(), self.fastsim())
532 

References validation.Sample.fastsim(), ElectronMVAID.ElectronMVAID.name, DigiComparisonTask.name, OAQualityTranslator.name(), TPComparisonTask.name, HcalOfflineHarvesting.name, HcalOnlineHarvesting.name, LaserTask.name, NoCQTask.name, PedestalTask.name, QIE10Task.name, QIE11Task.name, HFRaddamTask.name, RecHitTask.name, UMNioTask.name, ZDCTask.name, RPCNameHelper.name(), FP420HitsObject.name(), TrackerHitsObject.name(), AlignableObjectId::entry.name, RawTask.name, average.Average.name, counter.Counter.name, TPTask.name, listHistos.plotInfo.name, SymmetryFit.name(), DigiTask.name, histograms.Histograms.name, LEDTask.name, funct::Parameter.name(), RPCGeomServ.name(), cond::persistency::TAG::NAME.name, cond::persistency::RUN_INFO::RUN_NUMBER.name, TmModule.name, cond::persistency::GTEditorData.name, cond::persistency::GLOBAL_TAG::NAME.name, FWLite.ElectronMVAID.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, cond::persistency::TAG::OBJECT_TYPE.name, core.autovars.NTupleVariable.name, CmsTrackerStringToEnum.name(), cond::persistency::GLOBAL_TAG::DESCRIPTION.name, DQMRivetClient::NormOption.name, cond::persistency::TAG::SYNCHRONIZATION.name, HGCalProcessorBaseT< InputCollection, OutputCollection >.name(), MaterialInformation.name(), cond::persistency::GLOBAL_TAG::RELEASE.name, edm::ModuleTime.name(), AxesNames.name(), cond::persistency::TAG::END_OF_VALIDITY.name, CALayer.name(), MEPSet.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, SeedFinderBase.name(), CaloValidationStatistics.name(), FWTGeoRecoGeometry::Info.name, cond::persistency::O2O_RUN::END_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, BlockElementLinkerBase.name(), TrackingSlaveSD.name(), MaxConsecLostHitsTrajectoryFilter.name(), MaxLostHitsTrajectoryFilter.name(), SeedExtensionTrajectoryFilter.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, RecHitTopologicalCleanerBase.name(), tauImpactParameter::TrackParticle.name(), preexistingValidation.PreexistingValidation.name, CaloSlaveSD.name(), OutputMEPSet.name, MaxHitsTrajectoryFilter.name(), HistoDef.name(), PixelModuleName.name(), CaloDetInfo.name(), LostHitsFractionTrajectoryFilter.name(), MaxCCCLostHitsTrajectoryFilter.name(), EventSelector.name(), PixelDCSObject< T >::Item.name, DDAxesNames.name(), edm::BaseWithDict.name(), dataset.BaseDataset.name, SummaryTableOutputBranches::NamedBranchPtr.name, RegionalTrajectoryFilter.name(), AlignmentConstraint.name, BlockElementImporterBase.name(), FileData.name(), cms::dd::ValuePair< T, U >.name, PacketData.name(), edm::MemberWithDict.name(), fit::RootMinuitCommand.name, ChargeSignificanceTrajectoryFilter.name(), personalPlayback.Applet.name, Types._Untracked.name, JetResolution.name(), EventStringOutputBranches::NamedBranchPtr.name, HGCalTriggerGeometryBase.name(), LooperTrajectoryFilter.name(), MinHitsTrajectoryFilter.name(), OffsetAnalyzerDQM::Plot1D.name, EcalPulseCovariancesGPU.name(), EcalPulseShapesGPU.name(), RPCLinkSynchroStat::LinkBoard.name(), EcalDetIdAssociator.name(), HODetIdAssociator.name(), PreshowerDetIdAssociator.name(), pos::PixelConfigAlias.name(), rpcrawtodigi::ReadoutError.name(), MagCylinder.name, analyzer.Analyzer.name, production_tasks.Task.name, HcalDetIdAssociator.name(), emtf::LossFunction.name(), HcalForwardLibWriter::FileHandle.name, DQMRivetClient::LumiOption.name, EcalRechitADCToGeVConstantGPU.name(), EcalRechitChannelStatusGPU.name(), PixelBarrelNameUpgrade.name(), heppy::ParSet.name, citk::IsolationConeDefinitionBase.name(), PdtEntry.name(), CalibratedHistogramXML.name(), MTDUncalibratedRecHitAlgoBase< DataFrame >.name(), ALIFileOut.name(), EcalGainRatiosGPU.name(), PFClusterEnergyCorrectorBase.name(), PixelEndcapNameUpgrade.name(), DDFilteredView.name(), DDSolidShapesName.name(), CalibrationCategory< CI >.name(), cond::persistency::GTProxyData.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(), PFCPositionCalculatorBase.name(), EcalLaserAPDPNRatiosRefGPU.name(), EcalTimeBiasCorrectionsGPU.name(), EcalSamplesCorrelationGPU.name(), rpcrawtodigi::DataRecord.name(), BeamSpotOnline.name(), DDName.name(), TableOutputBranches::NamedBranchPtr.name, CharmTagger::MVAVar.name, ClusterShapeTrajectoryFilter.name(), reco::tau::RecoTauNamedPlugin.name(), CaloDetIdAssociator.name(), edm::PathTimingSummary.name, EcalLaserAPDPNRatiosGPU.name(), EcalLinearCorrectionsGPU.name(), EcalPedestalsGPU.name(), DQMRivetClient::ScaleFactorOption.name, edm::FunctionWithDict.name(), TriggerOutputBranches::NamedBranchPtr.name, HeavyIonCSVTagger::MVAVar.name, ThresholdPtTrajectoryFilter.name(), SingleObjectCondition.name, EgHLTOfflineSummaryClient::SumHistBinData.name, L1GctInternEmCand.name(), L1TriggerScalers.name(), LumiScalers.name(), cms::DDAlgoArguments.name, SummaryGenerator.name(), PassiveHit.name(), pat::helper::OverlapTest.name(), Filter.name(), RHStopTracer::StopPoint.name, MTDRecHitAlgoBase.name(), TrajectoryFilter.name(), runEdmFileComparison.EdmObject.name, CSCChannelMapperPostls1.name(), Barrel.name, PixelBarrelName.name(), DCCTBDataField.name(), tauImpactParameter::LorentzVectorParticle.name(), ClassName< T >.name(), CSCChannelMapperStartup.name(), OpticalAlignParam.name(), cond::TimeTypeSpecs.name, perftools::EdmEventSize::BranchRecord.name, DDI::rep_type< N, I >.name(), core.autovars.NTupleObjectType.name, FWParameterBase.name(), MyWatcher.name, edm::PathSummary.name, Level1TriggerScalers.name(), PixelEndcapName.name(), edm::eventsetup::ModuleMakerTraits.name(), pos::PixelDACScanRange.name(), EcalLogicID.name, CompositeTrajectoryFilter.name(), CSCIndexerStartup.name(), edm::EventTime.name(), EgammaHLTHGCalIDVarProducer::PCAAssocMap.name(), alignment.Alignment.name, ALIFileIn.name(), L1GctJetCand.name(), lumi::TriggerInfo.name, edm::TypeIDBase.name(), EGEnergySysIndex.name(), reco::CompositeCandidate.name(), PixelEndcapLinkMaker::Item.name, L1TriggerRates.name(), FWPhysicsObjectDesc.name(), XMLProcessor::_loaderBaseConfig.name, dirstructure.Weighted.name, pos::PixelROCMaskBits.name(), CSCIndexerPostls1.name(), FWTableViewManager::TableEntry.name, L1GctJetCounts.name(), MEtoEDM< T >::MEtoEDMObject.name, BPhysicsSpectrum.name, DCCTBBlockPrototype.name(), edm::eventsetup::EventSetupRecordKey.name(), edm::eventsetup::heterocontainer::HCTypeTag.name(), OmtfName.name(), pos::PixelROCTrimBits.name(), reco::NamedCompositeCandidate.name(), L1GctEtMiss.name(), PixelBarrelLinkMaker::Item.name, CSCChannelMapperBase.name(), Level1TriggerRates.name(), CompositeLogicalTrajectoryFilter.name(), cond::persistency::GTEditor.name(), SeedingLayerSetsHits::SeedingLayer.name(), MinPtTrajectoryFilter.name(), DQMGenericClient::EfficOption.name, L1GctEmCand.name(), L1GctHtMiss.name(), ExpressionHisto< T >.name, PrintMaterialBudgetInfo.name, funct::DefaultVariable.name(), Entry.name(), CkfBaseTrajectoryFilter.name(), funct::X.name(), python.rootplot.utilities.Hist2D.name, funct::Y.name(), fwlite::Record.name(), edm::eventsetup::DataKey.name(), funct::Z.name(), TreeCrawler.Package.name, Supermodule.name, DDValue.name(), FWViewEnergyScale.name(), genericValidation.GenericValidation.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, egHLT::MonElemContainer< T >.name(), edm::eventsetup::SourceMakerTraits.name(), NanoAODDQM::Plot.name(), CaloTrkProcessing::Detector.name, SimpleL1MuGMTCand.name(), L1GtPatternLine.name(), options.ConnectionHLTMenu.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.name, L1AcceptBunchCrossing.name(), edm::TRandomAdaptor.name(), CalibratedObject.name(), OpticalObject.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, nanoaod::FlatTable.name(), DDBase< N, C >.name(), GlobalVariablesTableProducer::Variable.name(), ModifyObjectValueBase.name(), MVAVar.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, DDExpandedView.name(), cms::DDParsingContext::CompositeMaterial.name, emtf::LeastSquares.name(), DisplayManager.DisplayManager.name, MuonDetIdAssociator.name(), FWLite.WorkingPoints.name, GlobalTrackingRegion.name(), cond::Tag_t.name, FastHFShowerLibrary.name, dqmoffline::l1t::HistDefinition.name, DQMGenericClient::ProfileOption.name, HLTPerformanceInfo::Path.name(), magneticfield::BaseVolumeHandle.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, tnp::ProbeVariable.name(), L1MuDTTrack.name(), FWGeometryTableManagerBase::NodeInfo.name(), PhysicsTools::Variable::Value.name, emtf::Node.name, h4DSegm.name, CachingVariable.name(), L1MuBMTrack.name(), L1MuGMTCand.name(), BTagProbabilityToDiscriminator::Discriminator.name, DcsStatus.name(), DQMGenericClient::NormOption.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, looper.Looper.name, DD4hep_MaterialAccountingGroup.name(), reco::ElectronSeed.name(), DQMGenericClient::CDOption.name, MillePedeVariables.name(), PhysicsTools::Calibration::Variable.name, cond::TagInfo_t.name, DetGeomDesc.name(), TriggerObjectTableProducer::SelectedObject.name, edm::Path.name(), TrackerSectorStruct.name, MuonGeometrySanityCheckPoint.name, SimpleFlatTableProducerBase< T, TProd >::VariableBase.name(), cond::persistency::PAYLOAD::HASH.name, FCDTask.name, BPhysicsValidation::ParticleMonitor.name, DQMGenericClient::NoFlowOption.name, CounterChecker.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, Mapper::definition< ScannerT >.name, PFJetAnalyzerDQM::Plot1DInBinVariable.name, cond::persistency::PAYLOAD::DATA.name, EDMtoMEConverter.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, cms::DDNamespace.name(), python.rootplot.tree2hists.Plot.name, cond::persistency::PAYLOAD::VERSION.name, CutApplicatorBase.name(), edm::TriggerResults.name(), edm::ESGetToken< ESProduct, ESRecord >.name(), cond::persistency::PAYLOAD::INSERTION_TIME.name, MTDDigitizerBase.name(), CSCIndexerBase.name(), FWViewType.name(), PhysicsTools::TreeReader::Value.name, BPhysicsValidation.name, classes.MonitorData.name, edm::eventsetup::LooperMakerTraits.name(), PhysicsTools::ProcessRegistry< Base_t, CalibBase_t, Parent_t >.name, cond::persistency::GTProxy.name(), Measurement.name(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.name, GeometricDet.name(), pat::TriggerCondition.name(), L1GObject.name(), HistogramManager.name, StripSubClusterShapeTrajectoryFilter.name(), classes.OutputData.name, FWEventItem.name(), edm::TypeWithDict.name(), Crystal.name, HistoData.name, CosmicTrackingRegion.name(), GeometricTimingDet.name(), h2DSegm.name, options.HLTProcessOptions.name, tnp::ProbeFlag.name(), cond::persistency::IOV::TAG_NAME.name, emtf::AbsoluteDeviation.name(), cond::persistency::IOV::SINCE.name, utils.StatisticalTest.name, cond::persistency::IOV::PAYLOAD_HASH.name, cond::persistency::IOV::INSERTION_TIME.name, pat::TriggerPath.name(), pat::TriggerAlgorithm.name(), DQMNet::WaitObject.name, DetIdAssociator.name(), core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, python.rootplot.utilities.Hist.name, cscdqm::Address.name(), VIDSelectorBase.VIDSelectorBase.name(), AlpgenParameterName.name, VariableComputer.name(), config.Analyzer.name, MaterialAccountingGroup.name(), geometry.Structure.name, TrackingRegion.name(), IntegratedCalibrationBase.name(), core.autovars.NTupleSubObject.name, cuy.divideElement.name, Capsule.name, cuy.plotElement.name, core.autovars.NTupleObject.name, VersionedSelector< T >.name(), Ceramic.name, cuy.additionElement.name, PhysicsTools::Variable.name, SiStripMonitorDigi.name, cms::DDFilteredView.name(), config.Service.name, BulkSilicon.name, cuy.superimposeElement.name, emtf::Huber.name(), CaloSD::Detector.name, Folder.name(), APD.name, nanoaod::FlatTable::Column.name, core.autovars.NTupleCollection.name, cuy.graphElement.name, NanoAODDQM::SelGroupConfig.name, BPHRecoBuilder::BPHRecoSource.name, FilterSelection.name(), BPHRecoBuilder::BPHCompSource.name, StraightTrackAlignment::RPSetPlots.name, BasicHepMCValidation::ParticleMonitor.name, cond::persistency::TAG_AUTHORIZATION::TAG_NAME.name, cond::persistency::TAG_AUTHORIZATION::ACCESS_TYPE.name, cond::persistency::TAG_AUTHORIZATION::CREDENTIAL.name, cond::persistency::TAG_AUTHORIZATION::CREDENTIAL_TYPE.name, InnerLayerVolume.name, RectangularEtaPhiTrackingRegion.name(), emtf::PercentErrorSquared.name(), cond::payloadInspector::TagReference.name, utils.KS.name, trklet::VarBase.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, utils.Chi2.name, personalPlayback.FrameworkJob.name, pos::PixelAliasList.name(), Grid.name, Grille.name, utils_v2.StatisticalTest.name, utils.BinToBin.name, BackPipe.name, plotscripts.SawTeethFunction.name, utils_v2.KolmogorovTest.name, dirstructure.Comparison.name, utils_v2.Chi2Test.name, dqm_interfaces.DirID.name, PatchPanel.name, BackCoolTank.name, utils.BinToBin1percent.name, hcaldqm::quantity::FlagQuantity.name(), DryAirTube.name, crabFunctions.CrabTask.name, python.rootplot.utilities.RootFile.name, MBCoolTube.name, MBManif.name, hcaldqm::quantity::LumiSection.name(), cscdqm::ParHistoDef.name, hcaldqm::quantity::LumiSectionCoarse.name(), hcaldqm::quantity::RunNumber.name(), hcaldqm::quantity::EventNumber.name(), hcaldqm::quantity::EventType.name(), validation.Sample.name(), hTMaxCell.name, BeautifulSoup.Tag.name, dqm_interfaces.DirWalkerFile.name, genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.name(), SummaryOutputProducer::GenericSummary.name, BeautifulSoup.SoupStrainer.name, dataset.Dataset.name(), trackingPlots.Iteration.name(), validation.Sample.pileupNumber(), validation.Sample.pileupType(), CalibratedDigis.scenario, and validation.Sample.scenario().

◆ dirname()

def validation.Sample.dirname (   self,
  newRepository,
  newRelease,
  newSelection 
)
Return the output directory name

Arguments:
newRepository -- String for base directory for output files
newRelease    -- String for CMSSW release
newSelection  -- String for histogram selection

Definition at line 607 of file validation.py.

607  def dirname(self, newRepository, newRelease, newSelection):
608  """Return the output directory name
609 
610  Arguments:
611  newRepository -- String for base directory for output files
612  newRelease -- String for CMSSW release
613  newSelection -- String for histogram selection
614  """
615  pileup = ""
616  if self.hasPileup() and not self._fastsim:
617  pileup = "_"+self._putype
618  return "{newRepository}/{newRelease}/{newSelection}{pileup}/{sample}".format(
619  newRepository=newRepository, newRelease=newRelease, newSelection=newSelection,
620  pileup=pileup, sample=sample)
621 

References validation.Sample._fastsim, validation.Sample._putype, and validation.Sample.hasPileup().

◆ doBHadron()

def validation.Sample.doBHadron (   self)

Definition at line 575 of file validation.py.

575  def doBHadron(self):
576  return self._doBHadron
577 

References validation.Sample._doBHadron.

◆ doConversion()

def validation.Sample.doConversion (   self)

Definition at line 572 of file validation.py.

572  def doConversion(self):
573  return self._doConversion
574 

References validation.Sample._doConversion.

◆ doElectron()

def validation.Sample.doElectron (   self)

Definition at line 569 of file validation.py.

569  def doElectron(self):
570  return self._doElectron
571 

References validation.Sample._doElectron.

◆ fastsim()

def validation.Sample.fastsim (   self)
Return True for FastSim sample

Definition at line 596 of file validation.py.

596  def fastsim(self):
597  """Return True for FastSim sample"""
598  return self._fastsim
599 

References validation.Sample._fastsim.

Referenced by validation.Sample.digest().

◆ fastsimCorrespondingFullsimPileup()

def validation.Sample.fastsimCorrespondingFullsimPileup (   self)

Definition at line 604 of file validation.py.

604  def fastsimCorrespondingFullsimPileup(self):
605  return self._fastsimCorrespondingFullsimPileup
606 

References validation.Sample._fastsimCorrespondingFullsimPileup.

◆ filename()

def validation.Sample.filename (   self,
  newRelease 
)
Return the DQM file name

Arguments:
newRelease -- String for CMSSW release

Definition at line 622 of file validation.py.

622  def filename(self, newRelease):
623  """Return the DQM file name
624 
625  Arguments:
626  newRelease -- String for CMSSW release
627  """
628  pileup = ""
629  fastsim = ""
630  midfix = ""
631  sample = self._sample
632  if self._append is not None:
633  midfix += self._append
634  if self._midfix is not None:
635  midfix += "_"+self._midfix
636  if self.hasPileup():
637  if self._fastsim:
638  #sample = sample.replace("RelVal", "RelValFS_")
639  # old style
640  #pileup = "PU_"
641  #midfix += "_"+self.pileupType(newRelease)
642  # new style
643  pileup = "PU"+self.pileupType(newRelease)+"_"
644  else:
645  pileup = "PU"+self.pileupType(newRelease)+"_"
646  if self._fastsim:
647  fastsim = "_FastSim"
648 
649  globalTag = _getGlobalTag(self, newRelease)
650 
651  fname = 'DQM_V{dqmVersion}_R000000001__{sample}{midfix}__{newrelease}-{pileup}{globaltag}{appendGlobalTag}{fastsim}-{version}__DQMIO.root'.format(
652  sample=sample, midfix=midfix, newrelease=_stripRelease(newRelease),
653  pileup=pileup, globaltag=globalTag, appendGlobalTag=self._appendGlobalTag, fastsim=fastsim,
654  version=self.version(newRelease), dqmVersion=self._dqmVersion
655  )
656 
657  return fname
658 

References validation.Sample._append, validation.Sample._appendGlobalTag, validation.Sample._dqmVersion, validation.Sample._fastsim, validation._getGlobalTag(), validation.Sample._midfix, validation.Sample._sample, html.IndexSection._sample, validation._stripRelease(), validation.Sample.hasPileup(), validation.Sample.pileupType(), SiPixelFedCabling.version(), pos::PixelVersionAlias.version(), GEMELMap.version(), GEMeMap.version(), L1TUtmCutValue.version, PixelToFEDAssociateFromAscii.version(), PixelToFEDAssociate.version(), SiPixelFedCablingTree.version(), PixelToLNKAssociateFromAscii.version(), DTRecoUncertainties.version(), SiPixelFedCablingMap.version(), FEDHeader.version(), L1TUtmBin.version, FWConfigurableParameterizable.version(), LTCDigi.version(), MagFieldConfig.version, L1TriggerScalers.version(), Phase2Tracker::FEDDAQHeader.version(), DTRecoConditions.version(), RPCReadOutMapping.version(), lumi::Lumi2DB::LumiSource.version, BeamSpotOnline.version(), Level1TriggerScalers.version(), SiPixelTemplateDBObject::Reader.version(), LumiScalers.version(), FWConfiguration.version(), L1TriggerRates.version(), L1TUtmCondition.version, cond::auth::DecodingKey.version(), options.ConnectionHLTMenu.version, Level1TriggerRates.version(), MatrixInjector.MatrixInjector.version, online::Data_v1.version, TrackerInteractionGeometry.version, SiPixelCPEGenericErrorParm.version(), HcalTrigTowerDetId.version(), L1CaloGeometry.version(), SiPixelGenErrorDBObject.version(), L1TUtmScale.version, online::Data_v2.version, SiPixel2DTemplateDBObject.version(), npstat::StorableMultivariateFunctor.version(), L1TUtmAlgorithm.version, confdbOfflineConverter.OfflineConverter.version, DTCCBConfig.version(), DcsStatus.version(), npstat::UniformAxis.version(), MatacqTBRawEvent::matacqHeader_t.version, DTLVStatus.version(), DTTPGParameters.version(), DTRangeT0.version(), DTT0.version(), DQMNet::CoreObject.version, L1TUtmObject.version, gem::VFATdata.version(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >.version(), npstat::NUHistoAxis.version(), npstat::DualAxis.version(), DTHVStatus.version(), SiPixelTemplateDBObject.version(), L1TUtmCut.version, npstat::GridAxis.version(), DTTtrig.version(), EcalMatacqDigi.version(), XMLProcessor::_DBConfig.version, DTDeadFlag.version(), npstat::HistoAxis.version(), npstat::DualHistoAxis.version(), DTMtime.version(), DTStatusFlag.version(), DTPerformance.version(), FRDEventMsgView.version(), npstat::BoxND< Numeric >.version(), npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >.version(), L1TUtmTriggerMenu.version, ScalersEventRecordRaw_v1.version, ScalersEventRecordRaw_v2.version, ScalersEventRecordRaw_v3.version, sistrip::FEDDAQHeader.version(), ScalersEventRecordRaw_v4.version, ScalersEventRecordRaw_v5.version, npstat::LinInterpolatedTableND< Numeric, Axis >.version(), ScalersEventRecordRaw_v6.version, pos::PixelAliasList.version(), cmsHarvester.CMSHarvester.version, validation.Sample.version(), npstat::HistoND< Numeric, Axis >.version(), and npstat::ArrayND< Numeric, StackLen, StackDim >.version().

◆ fullsim()

def validation.Sample.fullsim (   self)
Return True for FullSim sample

Definition at line 600 of file validation.py.

600  def fullsim(self):
601  """Return True for FullSim sample"""
602  return not self._fastsim
603 

References validation.Sample._fastsim.

◆ hasOverrideGlobalTag()

def validation.Sample.hasOverrideGlobalTag (   self)

Definition at line 590 of file validation.py.

590  def hasOverrideGlobalTag(self):
591  return self._overrideGlobalTag is not None
592 

References validation.Sample._overrideGlobalTag.

◆ hasPileup()

def validation.Sample.hasPileup (   self)
Return True if sample has pileup (for HTML generation)

Definition at line 544 of file validation.py.

544  def hasPileup(self):
545  """Return True if sample has pileup (for HTML generation)"""
546  return self._putype is not None
547 

References validation.Sample._putype.

Referenced by validation.Sample.datasetpattern(), validation.Sample.dirname(), validation.Sample.filename(), validation.Sample.pileup(), and validation.Sample.pileupEnabled().

◆ hasScenario()

def validation.Sample.hasScenario (   self)

Definition at line 584 of file validation.py.

584  def hasScenario(self):
585  return self._scenario is not None
586 

References validation.Sample._scenario.

◆ label()

def validation.Sample.label (   self)

Definition at line 541 of file validation.py.

541  def label(self):
542  return self._sample
543 

References validation.Sample._sample, and html.IndexSection._sample.

◆ name()

def validation.Sample.name (   self)
Get the sample name

Definition at line 537 of file validation.py.

537  def name(self):
538  """Get the sample name"""
539  return self._sample
540 

References validation.Sample._sample, and html.IndexSection._sample.

Referenced by config.CFG.__str__(), and validation.Sample.digest().

◆ overrideGlobalTag()

def validation.Sample.overrideGlobalTag (   self)

Definition at line 593 of file validation.py.

593  def overrideGlobalTag(self):
594  return self._overrideGlobalTag
595 

References validation.Sample._overrideGlobalTag.

◆ pileup()

def validation.Sample.pileup (   self)
Return "PU"/"noPU" corresponding the pileup status

Definition at line 552 of file validation.py.

552  def pileup(self):
553  """Return "PU"/"noPU" corresponding the pileup status"""
554  if self.hasPileup():
555  return "PU"
556  else:
557  return "noPU"
558 

References validation.Sample.hasPileup().

◆ pileupEnabled()

def validation.Sample.pileupEnabled (   self)
Return True if pileup plots are enabled (for plot generation)

Definition at line 548 of file validation.py.

548  def pileupEnabled(self):
549  """Return True if pileup plots are enabled (for plot generation)"""
550  return self.hasPileup()
551 

References validation.Sample.hasPileup().

◆ pileupNumber()

def validation.Sample.pileupNumber (   self)

Definition at line 566 of file validation.py.

566  def pileupNumber(self):
567  return self._punum
568 

References validation.Sample._punum.

Referenced by validation.Sample.digest().

◆ pileupType()

def validation.Sample.pileupType (   self,
  release = None 
)
Return the pileup type

Definition at line 559 of file validation.py.

559  def pileupType(self, release=None):
560  """Return the pileup type"""
561  if isinstance(self._putype, dict):
562  return self._putype.get(release, self._putype["default"])
563  else:
564  return self._putype
565 

References validation.Sample._putype.

Referenced by validation.Sample.digest(), and validation.Sample.filename().

◆ sample()

def validation.Sample.sample (   self)
Get the sample name

Definition at line 533 of file validation.py.

533  def sample(self):
534  """Get the sample name"""
535  return self._sample
536 

References validation.Sample._sample, and html.IndexSection._sample.

◆ scenario()

def validation.Sample.scenario (   self)

Definition at line 587 of file validation.py.

587  def scenario(self):
588  return self._scenario
589 

References validation.Sample._scenario.

Referenced by validation.Sample.digest().

◆ version()

def validation.Sample.version (   self,
  release = None 
)

Definition at line 578 of file validation.py.

578  def version(self, release=None):
579  if isinstance(self._version, dict):
580  return self._version.get(release, self._version["default"])
581  else:
582  return self._version
583 

References validation.Sample._version.

Referenced by validation.Sample.datasetpattern(), and validation.Sample.filename().

Member Data Documentation

◆ _append

validation.Sample._append
private

Definition at line 498 of file validation.py.

Referenced by validation.Sample.filename().

◆ _appendGlobalTag

validation.Sample._appendGlobalTag
private

Definition at line 508 of file validation.py.

Referenced by validation.Sample.filename().

◆ _doBHadron

validation.Sample._doBHadron
private

Definition at line 519 of file validation.py.

Referenced by validation.Sample.doBHadron().

◆ _doConversion

validation.Sample._doConversion
private

Definition at line 515 of file validation.py.

Referenced by validation.Sample.doConversion().

◆ _doElectron

validation.Sample._doElectron
private

Definition at line 511 of file validation.py.

Referenced by validation.Sample.doElectron().

◆ _dqmVersion

validation.Sample._dqmVersion
private

Definition at line 505 of file validation.py.

Referenced by validation.Sample.filename().

◆ _fastsim

validation.Sample._fastsim
private

◆ _fastsimCorrespondingFullsimPileup

validation.Sample._fastsimCorrespondingFullsimPileup
private

Definition at line 503 of file validation.py.

Referenced by validation.Sample.fastsimCorrespondingFullsimPileup().

◆ _midfix

validation.Sample._midfix
private

Definition at line 499 of file validation.py.

Referenced by validation.Sample.filename().

◆ _overrideGlobalTag

validation.Sample._overrideGlobalTag
private

◆ _punum

validation.Sample._punum
private

Definition at line 501 of file validation.py.

Referenced by validation.Sample.pileupNumber().

◆ _putype

validation.Sample._putype
private

◆ _sample

validation.Sample._sample
private

◆ _scenario

validation.Sample._scenario
private

Definition at line 506 of file validation.py.

Referenced by validation.Sample.hasScenario(), and validation.Sample.scenario().

◆ _version

validation.Sample._version
private

Definition at line 504 of file validation.py.

Referenced by validation.Sample.version().

simplePhotonAnalyzer_cfi.sample
sample
Definition: simplePhotonAnalyzer_cfi.py:12
validation._stripRelease
def _stripRelease(release)
Definition: validation.py:352
BTVHLTOfflineSource_cfi.dirname
dirname
Definition: BTVHLTOfflineSource_cfi.py:7
UserOptions_cff.overrideGlobalTag
overrideGlobalTag
Definition: UserOptions_cff.py:78
mixOne_premix_on_sim_cfi.pileup
pileup
Definition: mixOne_premix_on_sim_cfi.py:42
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
cmsdt::scenario
scenario
Definition: constants.h:173
validation._getGlobalTag
def _getGlobalTag(sample, release)
Definition: validation.py:359
format
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
fastsim
Definition: BarrelSimplifiedGeometry.h:15
BeamSplash_cfg.version
version
Definition: BeamSplash_cfg.py:45
label
const char * label
Definition: PFTauDecayModeTools.cc:11