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 475 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 480 of file validation.py.

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

Member Function Documentation

◆ datasetpattern()

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 660 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().

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

◆ 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 530 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(), SeedExtensionTrajectoryFilter.name(), OffsetAnalyzerDQM::Plot1D.name, EcalPulseCovariancesGPU.name(), EcalPulseShapesGPU.name(), RPCLinkSynchroStat::LinkBoard.name(), EcalDetIdAssociator.name(), HODetIdAssociator.name(), PreshowerDetIdAssociator.name(), rpcrawtodigi::ReadoutError.name(), MagCylinder.name, analyzer.Analyzer.name, production_tasks.Task.name, ChargeSignificanceTrajectoryFilter.name(), emtf::LossFunction.name(), VariableBase.name(), HcalDetIdAssociator.name(), LostHitsFractionTrajectoryFilter.name(), DQMRivetClient::LumiOption.name, EcalRechitADCToGeVConstantGPU.name(), EcalRechitChannelStatusGPU.name(), PixelBarrelNameUpgrade.name(), heppy::ParSet.name, MaxCCCLostHitsTrajectoryFilter.name(), citk::IsolationConeDefinitionBase.name(), CalibratedHistogramXML.name(), MTDUncalibratedRecHitAlgoBase< DataFrame >.name(), PdtEntry.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(), PFCPositionCalculatorBase.name(), HLTPerformanceInfo::Module.name(), L1GctEtHad.name(), L1GctEtTotal.name(), hcaldqm::quantity::Quantity.name(), MuonSubDetector.name(), LooperTrajectoryFilter.name(), EcalLaserAPDPNRatiosRefGPU.name(), EcalTimeBiasCorrectionsGPU.name(), EcalSamplesCorrelationGPU.name(), rpcrawtodigi::DataRecord.name(), BeamSpotOnline.name(), DDName.name(), TriggerOutputBranches::NamedBranchPtr.name, CharmTagger::MVAVar.name, SingleObjectCondition.name, reco::tau::RecoTauNamedPlugin.name(), CaloDetIdAssociator.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(), ClusterShapeTrajectoryFilter.name(), RHStopTracer::StopPoint.name, Filter.name(), MTDRecHitAlgoBase.name(), PassiveHit.name(), EgHLTOfflineSummaryClient::SumHistBinData.name, TrajectoryFilter.name(), runEdmFileComparison.EdmObject.name, Barrel.name, PixelBarrelName.name(), DCCTBDataField.name(), ClassName< T >.name(), CSCChannelMapperStartup.name(), OpticalAlignParam.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(), EgammaHLTHGCalIDVarProducer::PCAAssocMap.name(), ThresholdPtTrajectoryFilter.name(), alignment.Alignment.name, MinHitsTrajectoryFilter.name(), ALIFileIn.name(), L1GctJetCand.name(), lumi::TriggerInfo.name, edm::TypeIDBase.name(), EGEnergySysIndex.name(), pos::PixelROCMaskBits.name(), reco::CompositeCandidate.name(), PixelEndcapLinkMaker::Item.name, L1TriggerRates.name(), FWPhysicsObjectDesc.name(), XMLProcessor::_loaderBaseConfig.name, dirstructure.Weighted.name, pos::PixelROCTrimBits.name(), CSCIndexerPostls1.name(), L1GctJetCounts.name(), MEtoEDM< T >::MEtoEDMObject.name, BPhysicsSpectrum.name, DCCTBBlockPrototype.name(), edm::eventsetup::EventSetupRecordKey.name(), edm::eventsetup::heterocontainer::HCTypeTag.name(), OmtfName.name(), FWTableViewManager::TableEntry.name, CSCChannelMapperBase.name(), reco::NamedCompositeCandidate.name(), L1GctEtMiss.name(), PixelBarrelLinkMaker::Item.name, Level1TriggerRates.name(), CompositeLogicalTrajectoryFilter.name(), cond::persistency::GTEditor.name(), SeedingLayerSetsHits::SeedingLayer.name(), HLTGenValClient::EfficOption.name, L1GctEmCand.name(), L1GctHtMiss.name(), ExpressionHisto< T >.name, funct::DefaultVariable.name(), DQMGenericClient::EfficOption.name, CompositeTrajectoryFilter.name(), Entry.name(), funct::X.name(), funct::Y.name(), edm::eventsetup::DataKey.name(), python.rootplot.utilities.Hist2D.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(), CaloTrkProcessing::Detector.name, MinPtTrajectoryFilter.name(), fwlite::Record.name(), SimpleL1MuGMTCand.name(), L1GtPatternLine.name(), cond::persistency::GLOBAL_TAG_MAP::RECORD.name, options.ConnectionHLTMenu.name, L1AcceptBunchCrossing.name(), edm::TRandomAdaptor.name(), CalibratedObject.name(), OpticalObject.name(), ModifyObjectValueBase.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, MVAVar.name, DDBase< N, C >.name(), cms::DDParsingContext::CompositeMaterial.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, DDExpandedView.name(), emtf::LeastSquares.name(), DisplayManager.DisplayManager.name, MuonDetIdAssociator.name(), cond::Tag_t.name, DQMGenericClient::ProfileOption.name, nanoaod::FlatTable.name(), FWLite.WorkingPoints.name, dqmoffline::l1t::HistDefinition.name, magneticfield::BaseVolumeHandle.name, HLTPerformanceInfo::Path.name(), nanoaod::MergeableCounterTable::VectorColumn< T >.name, L1MuDTTrack.name(), tnp::ProbeVariable.name(), CkfBaseTrajectoryFilter.name(), FastHFShowerLibrary.name, emtf::Node.name, FWGeometryTableManagerBase::NodeInfo.name(), PhysicsTools::Variable::Value.name, GlobalTrackingRegion.name(), NanoAODDQM::Plot.name(), h4DSegm.name, CachingVariable.name(), PrintMaterialBudgetInfo.name, L1MuBMTrack.name(), L1MuGMTCand.name(), DcsStatus.name(), BTagProbabilityToDiscriminator::Discriminator.name, DQMGenericClient::NormOption.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, reco::ElectronSeed.name(), DD4hep_MaterialAccountingGroup.name(), DQMGenericClient::CDOption.name, CounterChecker.name, MillePedeVariables.name(), cond::TagInfo_t.name, PhysicsTools::Calibration::Variable.name, DetGeomDesc.name(), TrackerSectorStruct.name, edm::Path.name(), MuonGeometrySanityCheckPoint.name, FCDTask.name, cond::persistency::PAYLOAD::HASH.name, DQMGenericClient::NoFlowOption.name, BPhysicsValidation::ParticleMonitor.name, PFJetAnalyzerDQM::Plot1DInBinVariable.name, Mapper::definition< ScannerT >.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, looper.Looper.name, cond::persistency::PAYLOAD::DATA.name, EDMtoMEConverter.name, cms::DDNamespace.name(), cond::persistency::PAYLOAD::STREAMER_INFO.name, python.rootplot.tree2hists.Plot.name, CutApplicatorBase.name(), cond::persistency::PAYLOAD::VERSION.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, edm::TriggerResults.name(), GlobalVariablesTableProducer::Variable.name(), MTDDigitizerBase.name(), edm::ESGetToken< ESProduct, ESRecord >.name(), CSCIndexerBase.name(), PhysicsTools::TreeReader::Value.name, FWViewType.name(), BPhysicsValidation.name, classes.MonitorData.name, PhysicsTools::ProcessRegistry< Base_t, CalibBase_t, Parent_t >.name, Measurement.name(), cond::persistency::GTProxy.name(), edm::eventsetup::LooperMakerTraits.name(), pat::TriggerCondition.name(), GeometricDet.name(), L1GObject.name(), HistogramManager.name, classes.OutputData.name, FWEventItem.name(), BPHDecayToResResBuilderBase::DZSelect.name, edm::TypeWithDict.name(), L1TPhase2CorrelatorOffline::MultiCollection.name(), CosmicTrackingRegion.name(), StripSubClusterShapeTrajectoryFilter.name(), Crystal.name, HistoData.name, GeometricTimingDet.name(), h2DSegm.name, options.HLTProcessOptions.name, tnp::ProbeFlag.name(), emtf::AbsoluteDeviation.name(), cond::persistency::IOV::TAG_NAME.name, cond::persistency::IOV::SINCE.name, 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(), pat::TriggerPath.name(), DetIdAssociator.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, Ceramic.name, cuy.additionElement.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(), CaloSD::Detector.name, APD.name, core.autovars.NTupleCollection.name, cuy.graphElement.name, BPHRecoBuilder::BPHRecoSource.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, emtf::PercentErrorSquared.name(), utils.KS.name, NanoAODDQM::SelGroupConfig.name, cond::payloadInspector::TagReference.name, trklet::VarBase.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, 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(), validation.Sample.name(), hTMaxCell.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().

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

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

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

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

◆ doBHadron()

def validation.Sample.doBHadron (   self)

Definition at line 576 of file validation.py.

References validation.Sample._doBHadron.

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

◆ doConversion()

def validation.Sample.doConversion (   self)

Definition at line 573 of file validation.py.

References validation.Sample._doConversion.

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

◆ doElectron()

def validation.Sample.doElectron (   self)

Definition at line 570 of file validation.py.

References validation.Sample._doElectron.

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

◆ fastsim()

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

Definition at line 597 of file validation.py.

References validation.Sample._fastsim.

Referenced by validation.Sample.digest().

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

◆ fastsimCorrespondingFullsimPileup()

def validation.Sample.fastsimCorrespondingFullsimPileup (   self)

Definition at line 605 of file validation.py.

References validation.Sample._fastsimCorrespondingFullsimPileup.

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

◆ filename()

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 623 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(), options.ConnectionHLTMenu.version, Level1TriggerRates.version(), MatrixInjector.MatrixInjector.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().

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

◆ fullsim()

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

Definition at line 601 of file validation.py.

References validation.Sample._fastsim.

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

◆ hasOverrideGlobalTag()

def validation.Sample.hasOverrideGlobalTag (   self)

Definition at line 591 of file validation.py.

References validation.Sample._overrideGlobalTag.

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

◆ hasPileup()

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

Definition at line 545 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().

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

◆ hasScenario()

def validation.Sample.hasScenario (   self)

Definition at line 585 of file validation.py.

References validation.Sample._scenario.

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

◆ label()

def validation.Sample.label (   self)

Definition at line 542 of file validation.py.

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

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

◆ name()

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

Definition at line 538 of file validation.py.

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

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

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

◆ overrideGlobalTag()

def validation.Sample.overrideGlobalTag (   self)

Definition at line 594 of file validation.py.

References validation.Sample._overrideGlobalTag.

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

◆ pileup()

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

Definition at line 553 of file validation.py.

References validation.Sample.hasPileup().

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

◆ pileupEnabled()

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

Definition at line 549 of file validation.py.

References validation.Sample.hasPileup().

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

◆ pileupNumber()

def validation.Sample.pileupNumber (   self)

Definition at line 567 of file validation.py.

References validation.Sample._punum.

Referenced by validation.Sample.digest().

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

◆ pileupType()

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

Definition at line 560 of file validation.py.

References validation.Sample._putype.

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

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

◆ sample()

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

Definition at line 534 of file validation.py.

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

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

◆ scenario()

def validation.Sample.scenario (   self)

Definition at line 588 of file validation.py.

References validation.Sample._scenario.

Referenced by validation.Sample.digest().

588  def scenario(self):
589  return self._scenario
590 
scenario
Definition: constants.h:173

◆ version()

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

Definition at line 579 of file validation.py.

References validation.Sample._version.

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

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

Member Data Documentation

◆ _append

validation.Sample._append
private

Definition at line 502 of file validation.py.

Referenced by validation.Sample.filename().

◆ _appendGlobalTag

validation.Sample._appendGlobalTag
private

Definition at line 512 of file validation.py.

Referenced by validation.Sample.filename().

◆ _doBHadron

validation.Sample._doBHadron
private

Definition at line 523 of file validation.py.

Referenced by validation.Sample.doBHadron().

◆ _doConversion

validation.Sample._doConversion
private

Definition at line 519 of file validation.py.

Referenced by validation.Sample.doConversion().

◆ _doElectron

validation.Sample._doElectron
private

Definition at line 515 of file validation.py.

Referenced by validation.Sample.doElectron().

◆ _dqmVersion

validation.Sample._dqmVersion
private

Definition at line 509 of file validation.py.

Referenced by validation.Sample.filename().

◆ _fastsim

validation.Sample._fastsim
private

◆ _fastsimCorrespondingFullsimPileup

validation.Sample._fastsimCorrespondingFullsimPileup
private

Definition at line 507 of file validation.py.

Referenced by validation.Sample.fastsimCorrespondingFullsimPileup().

◆ _midfix

validation.Sample._midfix
private

Definition at line 503 of file validation.py.

Referenced by validation.Sample.filename().

◆ _overrideGlobalTag

validation.Sample._overrideGlobalTag
private

◆ _punum

validation.Sample._punum
private

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

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

◆ _version

validation.Sample._version
private

Definition at line 508 of file validation.py.

Referenced by validation.Sample.version().