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, GEMChMap.version(), npstat::GridAxis.version(), EcalMatacqDigi.version(), DTTtrig.version(), XMLProcessor::_DBConfig.version, npstat::HistoAxis.version(), DTDeadFlag.version(), npstat::DualHistoAxis.version(), L1TUtmObject.version, L1TUtmCut.version, DTMtime.version(), DTStatusFlag.version(), DTPerformance.version(), 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(), HcalOfflineHarvesting.name, HcalOnlineHarvesting.name, HFRaddamTask.name, LaserTask.name, PedestalTask.name, QIE10Task.name, QIE11Task.name, RecHitTask.name, UMNioTask.name, ZDCTask.name, NoCQTask.name, RPCNameHelper.name(), TrackerHitsObject.name(), FP420HitsObject.name(), AlignableObjectId::entry.name, RawTask.name, average.Average.name, counter.Counter.name, TPTask.name, SymmetryFit.name(), histograms.Histograms.name, DigiTask.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, listHistos.plotInfo.name, DQMRivetClient::NormOption.name, cond::persistency::TAG::SYNCHRONIZATION.name, HGCalAlgoWrapperBaseT< InputCollection, OutputCollection, Tparam >.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, 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, SeedFinderBase.name(), CaloValidationStatistics.name(), cond::persistency::O2O_RUN::END_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, BlockElementLinkerBase.name(), TrackingSlaveSD.name(), FWTGeoRecoGeometry::Info.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(), preexistingValidation.PreexistingValidation.name, OutputMEPSet.name, CaloSlaveSD.name(), MaxConsecLostHitsTrajectoryFilter.name(), MaxLostHitsTrajectoryFilter.name(), HistoDef.name(), PixelModuleName.name(), HGCalTriggerGeometryBase.name(), CaloDetInfo.name(), EventSelector.name(), AlignmentConstraint.name, PixelDCSObject< T >::Item.name, DDAxesNames.name(), dataset.BaseDataset.name, edm::BaseWithDict.name(), SummaryTableOutputBranches::NamedBranchPtr.name, RegionalTrajectoryFilter.name(), cms::dd::ValuePair< T, U >.name, FileData.name(), PacketData.name(), edm::MemberWithDict.name(), fit::RootMinuitCommand.name, HcalForwardLibWriter::FileHandle.name, BlockElementImporterBase.name(), MaxHitsTrajectoryFilter.name(), personalPlayback.Applet.name, Types._Untracked.name, JetResolution.name(), EventStringOutputBranches::NamedBranchPtr.name, HGCalTriggerNtupleBase.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, LostHitsFractionTrajectoryFilter.name(), emtf::LossFunction.name(), VariableBase.name(), HcalDetIdAssociator.name(), ChargeSignificanceTrajectoryFilter.name(), DQMRivetClient::LumiOption.name, EcalRechitADCToGeVConstantGPU.name(), EcalRechitChannelStatusGPU.name(), heppy::ParSet.name, PixelBarrelNameUpgrade.name(), citk::IsolationConeDefinitionBase.name(), CalibratedHistogramXML.name(), MTDUncalibratedRecHitAlgoBase< DataFrame >.name(), PdtEntry.name(), MaxCCCLostHitsTrajectoryFilter.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(), LooperTrajectoryFilter.name(), EcalLaserAPDPNRatiosRefGPU.name(), EcalSamplesCorrelationGPU.name(), EcalTimeBiasCorrectionsGPU.name(), CaloDetIdAssociator.name(), rpcrawtodigi::DataRecord.name(), BeamSpotOnline.name(), DDName.name(), TriggerOutputBranches::NamedBranchPtr.name, CharmTagger::MVAVar.name, SingleObjectCondition.name, reco::tau::RecoTauNamedPlugin.name(), DQMRivetClient::ScaleFactorOption.name, EcalLaserAPDPNRatiosGPU.name(), EcalLinearCorrectionsGPU.name(), EcalPedestalsGPU.name(), edm::FunctionWithDict.name(), TableOutputBranches::NamedBranchPtr.name, HeavyIonCSVTagger::MVAVar.name, edm::PathTimingSummary.name, CSCChannelMapperPostls1.name(), L1GctInternEmCand.name(), L1TriggerScalers.name(), LumiScalers.name(), cms::DDAlgoArguments.name, SummaryGenerator.name(), pat::helper::OverlapTest.name(), RHStopTracer::StopPoint.name, Filter.name(), MTDRecHitAlgoBase.name(), ClusterShapeTrajectoryFilter.name(), EgHLTOfflineSummaryClient::SumHistBinData.name, PassiveHit.name(), TrajectoryFilter.name(), runEdmFileComparison.EdmObject.name, Barrel.name, condhdf5tohdf5.H5Payload.name(), OpticalAlignParam.name(), PixelBarrelName.name(), DCCTBDataField.name(), ClassName< T >.name(), CSCChannelMapperStartup.name(), cond::TimeTypeSpecs.name, perftools::EdmEventSize::BranchRecord.name, core.autovars.NTupleObjectType.name, DDI::rep_type< N, I >.name(), FWParameterBase.name(), Level1TriggerScalers.name(), PixelEndcapName.name(), edm::eventsetup::ModuleMakerTraits.name(), pos::PixelDACScanRange.name(), EcalLogicID.name, LumiOutputBranches::NamedBranchPtr.name, HGCalTriggerClusterIdentificationBDT::WorkingPoint.name(), edm::PathSummary.name, CSCIndexerStartup.name(), edm::EventTime.name(), ThresholdPtTrajectoryFilter.name(), EgammaHLTHGCalIDVarProducer::PCAAssocMap.name(), alignment.Alignment.name, MinHitsTrajectoryFilter.name(), ALIFileIn.name(), lumi::TriggerInfo.name, L1GctJetCand.name(), edm::TypeIDBase.name(), EGEnergySysIndex.name(), pos::PixelROCMaskBits.name(), reco::CompositeCandidate.name(), PixelEndcapLinkMaker::Item.name, L1TriggerRates.name(), XMLProcessor::_loaderBaseConfig.name, FWPhysicsObjectDesc.name(), dirstructure.Weighted.name, pos::PixelROCTrimBits.name(), CSCIndexerPostls1.name(), L1GctJetCounts.name(), MEtoEDM< T >::MEtoEDMObject.name, DCCTBBlockPrototype.name(), edm::eventsetup::EventSetupRecordKey.name(), edm::eventsetup::heterocontainer::HCTypeTag.name(), OmtfName.name(), BPhysicsSpectrum.name, FWTableViewManager::TableEntry.name, CSCChannelMapperBase.name(), reco::NamedCompositeCandidate.name(), PixelBarrelLinkMaker::Item.name, L1GctEtMiss.name(), Level1TriggerRates.name(), CompositeLogicalTrajectoryFilter.name(), HLTGenValClient::EfficOption.name, cond::persistency::GTEditor.name(), SeedingLayerSetsHits::SeedingLayer.name(), DQMGenericClient::EfficOption.name, L1GctEmCand.name(), L1GctHtMiss.name(), ExpressionHisto< T >.name, funct::DefaultVariable.name(), CompositeTrajectoryFilter.name(), Entry.name(), funct::X.name(), funct::Y.name(), funct::Z.name(), edm::eventsetup::DataKey.name(), python.rootplot.utilities.Hist2D.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(), CaloTrkProcessing::Detector.name, MinPtTrajectoryFilter.name(), cms::h5::Group.name(), fwlite::Record.name(), SimpleL1MuGMTCand.name(), L1GtPatternLine.name(), condhdf5tohdf5.H5DataProduct.name(), L1AcceptBunchCrossing.name(), cond::persistency::GLOBAL_TAG_MAP::RECORD.name, edm::TRandomAdaptor.name(), CalibratedObject.name(), options.ConnectionHLTMenu.name, OpticalObject.name(), ModifyObjectValueBase.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, DDBase< N, C >.name(), cms::DDParsingContext::CompositeMaterial.name, MVAVar.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, DDExpandedView.name(), emtf::LeastSquares.name(), DisplayManager.DisplayManager.name, MuonDetIdAssociator.name(), cond::Tag_t.name, nanoaod::FlatTable.name(), FWLite.WorkingPoints.name, dqmoffline::l1t::HistDefinition.name, DQMGenericClient::ProfileOption.name, CkfBaseTrajectoryFilter.name(), HLTPerformanceInfo::Path.name(), magneticfield::BaseVolumeHandle.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, L1MuDTTrack.name(), tnp::ProbeVariable.name(), FastHFShowerLibrary.name, emtf::Node.name, FWGeometryTableManagerBase::NodeInfo.name(), PhysicsTools::Variable::Value.name, NanoAODDQM::Plot.name(), GlobalTrackingRegion.name(), h4DSegm.name, PrintMaterialBudgetInfo.name, CachingVariable.name(), L1MuBMTrack.name(), DcsStatus.name(), BTagProbabilityToDiscriminator::Discriminator.name, L1MuGMTCand.name(), DQMGenericClient::NormOption.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, reco::ElectronSeed.name(), DD4hep_MaterialAccountingGroup.name(), DQMGenericClient::CDOption.name, CounterChecker.name, MillePedeVariables.name(), PhysicsTools::Calibration::Variable.name, cond::TagInfo_t.name, edm::Path.name(), DetGeomDesc.name(), TrackerSectorStruct.name, edm::TriggerResults.name(), MuonGeometrySanityCheckPoint.name, FCDTask.name, DQMGenericClient::NoFlowOption.name, cond::persistency::PAYLOAD::HASH.name, BPhysicsValidation::ParticleMonitor.name, looper.Looper.name, Mapper::definition< ScannerT >.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, PFJetAnalyzerDQM::Plot1DInBinVariable.name, EDMtoMEConverter.name, cond::persistency::PAYLOAD::DATA.name, cms::DDNamespace.name(), python.rootplot.tree2hists.Plot.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, cond::persistency::PAYLOAD::VERSION.name, CutApplicatorBase.name(), edm::ESGetToken< ESProduct, ESRecord >.name(), MTDDigitizerBase.name(), cond::persistency::PAYLOAD::INSERTION_TIME.name, GlobalVariablesTableProducer::Variable.name(), CSCIndexerBase.name(), PhysicsTools::TreeReader::Value.name, FWViewType.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(), Crystal.name, HistoData.name, GeometricTimingDet.name(), h2DSegm.name, emtf::AbsoluteDeviation.name(), tnp::ProbeFlag.name(), cond::persistency::IOV::TAG_NAME.name, options.HLTProcessOptions.name, cond::persistency::IOV::SINCE.name, utils.StatisticalTest.name, cond::persistency::IOV::PAYLOAD_HASH.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, AlpgenParameterName.name, VariableComputer.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, cuy.additionElement.name, Ceramic.name, PhysicsTools::Variable.name, SiStripMonitorDigi.name, cms::DDFilteredView.name(), VIDSelectorBase.VIDSelectorBase.name(), VersionedSelector< T >.name(), BulkSilicon.name, config.Service.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(), nanoaod::FlatTable::Column.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(), emtf::PercentErrorSquared.name(), NanoAODDQM::SelGroupConfig.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, genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.name(), hTOF.name, hTDelay.name, hTimes< hTime >.name, SummaryOutputProducer::GenericSummary.name, dataset.Dataset.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, GEMChMap.version(), npstat::GridAxis.version(), EcalMatacqDigi.version(), DTTtrig.version(), XMLProcessor::_DBConfig.version, DTDeadFlag.version(), npstat::HistoAxis.version(), npstat::DualHistoAxis.version(), L1TUtmObject.version, L1TUtmCut.version, DTMtime.version(), DTStatusFlag.version(), DTPerformance.version(), 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:173

◆ 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().