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 476 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 481 of file validation.py.

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

Member Function Documentation

◆ datasetpattern()

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 661 of file validation.py.

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

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

◆ 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 531 of file validation.py.

References validation.Sample.fastsim(), ElectronMVAID.ElectronMVAID.name, OAQualityTranslator.name(), RPCNameHelper.name(), TrackerHitsObject.name(), FP420HitsObject.name(), AlignableObjectId::entry.name, average.Average.name, counter.Counter.name, histograms.Histograms.name, SymmetryFit.name(), funct::Parameter.name(), RPCGeomServ.name(), cond::persistency::RUN_INFO::RUN_NUMBER.name, TmModule.name, cond::persistency::TAG::NAME.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::TAG::OBJECT_TYPE.name, cond::persistency::RUN_INFO::END_TIME.name, core.autovars.NTupleVariable.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, FWTGeoRecoGeometry::Info.name, BlockElementLinkerBase.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(), 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(), Types._Untracked.name, OffsetAnalyzerDQM::Plot1D.name, SeedExtensionTrajectoryFilter.name(), EcalPulseCovariancesGPU.name(), EcalPulseShapesGPU.name(), RPCLinkSynchroStat::LinkBoard.name(), EcalDetIdAssociator.name(), HODetIdAssociator.name(), PreshowerDetIdAssociator.name(), MagCylinder.name, rpcrawtodigi::ReadoutError.name(), analyzer.Analyzer.name, production_tasks.Task.name, HcalDetIdAssociator.name(), emtf::LossFunction.name(), VariableBase.name(), ChargeSignificanceTrajectoryFilter.name(), LostHitsFractionTrajectoryFilter.name(), EcalRechitADCToGeVConstantGPU.name(), EcalRechitChannelStatusGPU.name(), heppy::ParSet.name, PixelBarrelNameUpgrade.name(), citk::IsolationConeDefinitionBase.name(), CalibratedHistogramXML.name(), MTDUncalibratedRecHitAlgoBase< DataFrame >.name(), PdtEntry.name(), DQMRivetClient::LumiOption.name, MaxCCCLostHitsTrajectoryFilter.name(), ALIFileOut.name(), PFClusterEnergyCorrectorBase.name(), EcalGainRatiosGPU.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(), LooperTrajectoryFilter.name(), L1GctEtHad.name(), L1GctEtTotal.name(), hcaldqm::quantity::Quantity.name(), MuonSubDetector.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(), EcalPedestalsGPU.name(), EcalLinearCorrectionsGPU.name(), TableOutputBranches::NamedBranchPtr.name, HeavyIonCSVTagger::MVAVar.name, edm::FunctionWithDict.name(), edm::PathTimingSummary.name, PFCPositionCalculatorBase.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(), Barrel.name, DCCTBDataField.name(), ClassName< T >.name(), condhdf5tohdf5.H5Payload.name(), perftools::EdmEventSize::BranchRecord.name, cond::TimeTypeSpecs.name, core.autovars.NTupleObjectType.name, DDI::rep_type< N, I >.name(), FWParameterBase.name(), CSCChannelMapperStartup.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(), ThresholdPtTrajectoryFilter.name(), EgammaHLTHGCalIDVarProducer::PCAAssocMap.name(), CSCIndexerStartup.name(), ALIFileIn.name(), MinHitsTrajectoryFilter.name(), L1GctJetCand.name(), lumi::TriggerInfo.name, edm::TypeIDBase.name(), EGEnergySysIndex.name(), PixelEndcapLinkMaker::Item.name, reco::CompositeCandidate.name(), XMLProcessor::_loaderBaseConfig.name, L1TriggerRates.name(), FWPhysicsObjectDesc.name(), dirstructure.Weighted.name, pos::PixelROCMaskBits.name(), L1GctJetCounts.name(), MEtoEDM< T >::MEtoEDMObject.name, DCCTBBlockPrototype.name(), edm::eventsetup::heterocontainer::HCTypeTag.name(), edm::eventsetup::EventSetupRecordKey.name(), OmtfName.name(), BPhysicsSpectrum.name, FWTableViewManager::TableEntry.name, pos::PixelROCTrimBits.name(), CSCIndexerPostls1.name(), reco::NamedCompositeCandidate.name(), L1GctEtMiss.name(), PixelBarrelLinkMaker::Item.name, CSCChannelMapperBase.name(), Level1TriggerRates.name(), CompositeLogicalTrajectoryFilter.name(), HLTGenValClient::EfficOption.name, SeedingLayerSetsHits::SeedingLayer.name(), cond::persistency::GTEditor.name(), Entry.name(), L1GctEmCand.name(), L1GctHtMiss.name(), ExpressionHisto< T >.name, DQMGenericClient::EfficOption.name, funct::DefaultVariable.name(), CompositeTrajectoryFilter.name(), funct::X.name(), funct::Y.name(), python.rootplot.utilities.Hist2D.name, edm::eventsetup::DataKey.name(), funct::Z.name(), FWViewEnergyScale.name(), DDValue.name(), TreeCrawler.Package.name, Supermodule.name, MinPtTrajectoryFilter.name(), CaloTrkProcessing::Detector.name, egHLT::MonElemContainer< T >.name(), edm::eventsetup::SourceMakerTraits.name(), cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, fwlite::Record.name(), SimpleL1MuGMTCand.name(), L1GtPatternLine.name(), cms::h5::Group.name(), L1AcceptBunchCrossing.name(), cond::persistency::GLOBAL_TAG_MAP::RECORD.name, condhdf5tohdf5.H5DataProduct.name(), options.ConnectionHLTMenu.name, OpticalObject.name(), edm::TRandomAdaptor.name(), CalibratedObject.name(), DDBase< N, C >.name(), cms::DDParsingContext::CompositeMaterial.name, MVAVar.name, ModifyObjectValueBase.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, DDExpandedView.name(), DisplayManager.DisplayManager.name, emtf::LeastSquares.name(), MuonDetIdAssociator.name(), cond::Tag_t.name, nanoaod::FlatTable.name(), FWLite.WorkingPoints.name, DQMGenericClient::ProfileOption.name, dqmoffline::l1t::HistDefinition.name, L1MuDTTrack.name(), FastHFShowerLibrary.name, CkfBaseTrajectoryFilter.name(), HLTPerformanceInfo::Path.name(), nanoaod::MergeableCounterTable::VectorColumn< T >.name, tnp::ProbeVariable.name(), magneticfield::BaseVolumeHandle.name, emtf::Node.name, PhysicsTools::Variable::Value.name, FWGeometryTableManagerBase::NodeInfo.name(), NanoAODDQM::Plot.name(), GlobalTrackingRegion.name(), h4DSegm.name, CachingVariable.name(), L1MuBMTrack.name(), DcsStatus.name(), BTagProbabilityToDiscriminator::Discriminator.name, DQMGenericClient::NormOption.name, PrintMaterialBudgetInfo.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, L1MuGMTCand.name(), reco::ElectronSeed.name(), MillePedeVariables.name(), DQMGenericClient::CDOption.name, CounterChecker.name, DD4hep_MaterialAccountingGroup.name(), cond::TagInfo_t.name, DetGeomDesc.name(), edm::Path.name(), TrackerSectorStruct.name, edm::TriggerResults.name(), MuonGeometrySanityCheckPoint.name, cond::persistency::PAYLOAD::HASH.name, DQMGenericClient::NoFlowOption.name, PhysicsTools::Calibration::Variable.name, BPhysicsValidation::ParticleMonitor.name, EDMtoMEConverter.name, Mapper::definition< ScannerT >.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, looper.Looper.name, PFJetAnalyzerDQM::Plot1DInBinVariable.name, cond::persistency::PAYLOAD::DATA.name, python.rootplot.tree2hists.Plot.name, cms::DDNamespace.name(), cond::persistency::PAYLOAD::STREAMER_INFO.name, cond::persistency::PAYLOAD::VERSION.name, CutApplicatorBase.name(), cond::persistency::PAYLOAD::INSERTION_TIME.name, edm::ESGetToken< ESProduct, ESRecord >.name(), GlobalVariablesTableProducer::Variable.name(), MTDDigitizerBase.name(), PhysicsTools::TreeReader::Value.name, FWViewType.name(), CSCIndexerBase.name(), BPhysicsValidation.name, classes.MonitorData.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(), HistoData.name, Crystal.name, GeometricTimingDet.name(), h2DSegm.name, options.HLTProcessOptions.name, cond::persistency::IOV::TAG_NAME.name, tnp::ProbeFlag.name(), emtf::AbsoluteDeviation.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(), pat::TriggerPath.name(), DetIdAssociator.name(), DQMNet::WaitObject.name, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, python.rootplot.utilities.Hist.name, cscdqm::Address.name(), VariableComputer.name(), AlpgenParameterName.name, MaterialAccountingGroup.name(), config.Analyzer.name, geometry.Structure.name, TrackingRegion.name(), hDigis.name, IntegratedCalibrationBase.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, nanoaod::FlatTable::Column.name, Folder.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, conddb2hdf5.DBPayload.name(), NanoAODDQM::SelGroupConfig.name, emtf::PercentErrorSquared.name(), utils.KS.name, cond::payloadInspector::TagReference.name, trklet::VarBase.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(), 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, dirstructure.Comparison.name, utils_v2.Chi2Test.name, dqm_interfaces.DirID.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, trackingPlots.Iteration.name(), validation.Sample.pileupNumber(), validation.Sample.pileupType(), CalibratedDigis.scenario, and validation.Sample.scenario().

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

◆ 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 609 of file validation.py.

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

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

◆ doBHadron()

def validation.Sample.doBHadron (   self)

Definition at line 577 of file validation.py.

References validation.Sample._doBHadron.

577  def doBHadron(self):
578  return self._doBHadron
579 

◆ doConversion()

def validation.Sample.doConversion (   self)

Definition at line 574 of file validation.py.

References validation.Sample._doConversion.

574  def doConversion(self):
575  return self._doConversion
576 

◆ doElectron()

def validation.Sample.doElectron (   self)

Definition at line 571 of file validation.py.

References validation.Sample._doElectron.

571  def doElectron(self):
572  return self._doElectron
573 

◆ fastsim()

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

Definition at line 598 of file validation.py.

References validation.Sample._fastsim.

Referenced by validation.Sample.digest().

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

◆ fastsimCorrespondingFullsimPileup()

def validation.Sample.fastsimCorrespondingFullsimPileup (   self)

Definition at line 606 of file validation.py.

References validation.Sample._fastsimCorrespondingFullsimPileup.

606  def fastsimCorrespondingFullsimPileup(self):
607  return self._fastsimCorrespondingFullsimPileup
608 

◆ filename()

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 624 of file validation.py.

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(), GEMELMap.version(), GEMeMap.version(), PixelToFEDAssociateFromAscii.version(), PixelToFEDAssociate.version(), L1TUtmCutValue.version, SiPixelFedCablingTree.version(), PixelToLNKAssociateFromAscii.version(), DTRecoUncertainties.version(), SiPixelFedCablingMap.version(), FEDHeader.version(), FWConfigurableParameterizable.version(), LTCDigi.version(), L1TUtmBin.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(), cond::auth::DecodingKey.version(), Level1TriggerRates.version(), MatrixInjector.MatrixInjector.version, options.ConnectionHLTMenu.version, TrackerInteractionGeometry.version, SiPixelCPEGenericErrorParm.version(), HcalTrigTowerDetId.version(), L1CaloGeometry.version(), SiPixelGenErrorDBObject.version(), online::Data_v1.version, SiPixel2DTemplateDBObject.version(), npstat::StorableMultivariateFunctor.version(), L1TUtmCondition.version, online::Data_v2.version, DcsStatus.version(), online::Data_v3.version, confdbOfflineConverter.OfflineConverter.version, DTCCBConfig.version(), npstat::UniformAxis.version(), MatacqTBRawEvent::matacqHeader_t.version, GEMOptoHybrid.version(), DTLVStatus.version(), DTTPGParameters.version(), DTRangeT0.version(), DTT0.version(), DQMNet::CoreObject.version, GEMVFAT.version(), L1TUtmAlgorithm.version, npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >.version(), npstat::DualAxis.version(), npstat::NUHistoAxis.version(), DTHVStatus.version(), SiPixelTemplateDBObject.version(), L1TUtmScale.version, npstat::GridAxis.version(), EcalMatacqDigi.version(), GEMChMap.version(), DTTtrig.version(), XMLProcessor::_DBConfig.version, DTDeadFlag.version(), npstat::HistoAxis.version(), npstat::DualHistoAxis.version(), L1TUtmObject.version, L1TUtmCut.version, DTMtime.version(), DTStatusFlag.version(), DTPerformance.version(), edm::streamer::FRDEventMsgView.version(), npstat::BoxND< Numeric >.version(), npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >.version(), ScalersEventRecordRaw_v1.version, ScalersEventRecordRaw_v2.version, ScalersEventRecordRaw_v3.version, sistrip::FEDDAQHeader.version(), ScalersEventRecordRaw_v4.version, L1TUtmTriggerMenu.version, ScalersEventRecordRaw_v5.version, npstat::LinInterpolatedTableND< Numeric, Axis >.version(), ScalersEventRecordRaw_v6.version, cmsHarvester.CMSHarvester.version, validation.Sample.version(), npstat::HistoND< Numeric, Axis >.version(), and npstat::ArrayND< Numeric, StackLen, StackDim >.version().

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

◆ fullsim()

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

Definition at line 602 of file validation.py.

References validation.Sample._fastsim.

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

◆ hasOverrideGlobalTag()

def validation.Sample.hasOverrideGlobalTag (   self)

Definition at line 592 of file validation.py.

References validation.Sample._overrideGlobalTag.

592  def hasOverrideGlobalTag(self):
593  return self._overrideGlobalTag is not None
594 

◆ hasPileup()

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

Definition at line 546 of file validation.py.

References validation.Sample._putype.

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

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

◆ hasScenario()

def validation.Sample.hasScenario (   self)

Definition at line 586 of file validation.py.

References validation.Sample._scenario.

586  def hasScenario(self):
587  return self._scenario is not None
588 

◆ label()

def validation.Sample.label (   self)

Definition at line 543 of file validation.py.

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

543  def label(self):
544  return self._sample
545 
char const * label

◆ name()

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

Definition at line 539 of file validation.py.

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

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

539  def name(self):
540  """Get the sample name"""
541  return self._sample
542 

◆ overrideGlobalTag()

def validation.Sample.overrideGlobalTag (   self)

Definition at line 595 of file validation.py.

References validation.Sample._overrideGlobalTag.

595  def overrideGlobalTag(self):
596  return self._overrideGlobalTag
597 

◆ pileup()

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

Definition at line 554 of file validation.py.

References validation.Sample.hasPileup().

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

◆ pileupEnabled()

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

Definition at line 550 of file validation.py.

References validation.Sample.hasPileup().

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

◆ pileupNumber()

def validation.Sample.pileupNumber (   self)

Definition at line 568 of file validation.py.

References validation.Sample._punum.

Referenced by validation.Sample.digest().

568  def pileupNumber(self):
569  return self._punum
570 

◆ pileupType()

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

Definition at line 561 of file validation.py.

References validation.Sample._putype.

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

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

◆ sample()

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

Definition at line 535 of file validation.py.

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

535  def sample(self):
536  """Get the sample name"""
537  return self._sample
538 

◆ scenario()

def validation.Sample.scenario (   self)

Definition at line 589 of file validation.py.

References validation.Sample._scenario.

Referenced by validation.Sample.digest().

589  def scenario(self):
590  return self._scenario
591 
scenario
Definition: constants.h:219

◆ version()

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

Definition at line 580 of file validation.py.

References validation.Sample._version.

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

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

Member Data Documentation

◆ _append

validation.Sample._append
private

Definition at line 503 of file validation.py.

Referenced by validation.Sample.filename().

◆ _appendGlobalTag

validation.Sample._appendGlobalTag
private

Definition at line 513 of file validation.py.

Referenced by validation.Sample.filename().

◆ _doBHadron

validation.Sample._doBHadron
private

Definition at line 524 of file validation.py.

Referenced by validation.Sample.doBHadron().

◆ _doConversion

validation.Sample._doConversion
private

Definition at line 520 of file validation.py.

Referenced by validation.Sample.doConversion().

◆ _doElectron

validation.Sample._doElectron
private

Definition at line 516 of file validation.py.

Referenced by validation.Sample.doElectron().

◆ _dqmVersion

validation.Sample._dqmVersion
private

Definition at line 510 of file validation.py.

Referenced by validation.Sample.filename().

◆ _fastsim

validation.Sample._fastsim
private

◆ _fastsimCorrespondingFullsimPileup

validation.Sample._fastsimCorrespondingFullsimPileup
private

Definition at line 508 of file validation.py.

Referenced by validation.Sample.fastsimCorrespondingFullsimPileup().

◆ _midfix

validation.Sample._midfix
private

Definition at line 504 of file validation.py.

Referenced by validation.Sample.filename().

◆ _overrideGlobalTag

validation.Sample._overrideGlobalTag
private

◆ _punum

validation.Sample._punum
private

Definition at line 506 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 511 of file validation.py.

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

◆ _version

validation.Sample._version
private

Definition at line 509 of file validation.py.

Referenced by validation.Sample.version().