CMS 3D CMS Logo

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

Public Member Functions

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

Private Attributes

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

Detailed Description

Represents a RelVal sample.

Definition at line 474 of file validation.py.

Constructor & Destructor Documentation

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

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

Member Function Documentation

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 659 of file validation.py.

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

659  def datasetpattern(self, newRelease):
660  """Return the dataset pattern
661 
662  Arguments:
663  newRelease -- String for CMSSW release
664  """
665  pileup = ""
666  fastsim = ""
667  digi = ""
668  if self.hasPileup():
669  pileup = "-PU_"
670  if self._fastsim:
671  fastsim = "_FastSim-"
672  digi = "DIGI-"
673  else:
674  fastsim = "*"
675  globalTag = _getGlobalTag(self, newRelease)
676  return "{sample}/{newrelease}-{pileup}{globaltag}{fastsim}{version}/GEN-SIM-{digi}RECO".format(
677  sample=self._sample, newrelease=newRelease,
678  pileup=pileup, globaltag=globalTag, fastsim=fastsim, digi=digi,
679  version=self.version(newRelease)
680  )
681 
def _getGlobalTag(sample, release)
Definition: validation.py:359
def hasPileup(self)
Definition: validation.py:544
def datasetpattern(self, newRelease)
Definition: validation.py:659
def version(self, release=None)
Definition: validation.py:578
def validation.Sample.digest (   self)
Return a tuple uniquely identifying the sample, to be used e.g. as a key to dict

Definition at line 529 of file validation.py.

References validation.Sample.fastsim(), ElectronMVAID.ElectronMVAID.name, OAQualityTranslator.name(), TrackerHitsObject.name(), FP420HitsObject.name(), counter.Counter.name, average.Average.name, histograms.Histograms.name, AlignableObjectId::entry.name, RPCGeomServ.name(), funct::Parameter.name(), FWLite.ElectronMVAID.name, SymmetryFit.name(), TmModule.name, cond::persistency::TAG::NAME.name, cond::persistency::GLOBAL_TAG::NAME.name, cond::persistency::RUN_INFO::RUN_NUMBER.name, cond::persistency::TAG::TIME_TYPE.name, CmsMTDStringToEnum.name(), CmsTrackerStringToEnum.name(), listHistos.plotInfo.name, PassiveHit.name(), core.autovars.NTupleVariable.name, cond::persistency::RUN_INFO::START_TIME.name, cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::TAG::OBJECT_TYPE.name, HGCalProcessorBaseT< InputCollection, OutputCollection >.name(), SterneBinomialInterval.name(), FeldmanCousinsBinomialInterval.name(), cond::persistency::GLOBAL_TAG::DESCRIPTION.name, cond::persistency::RUN_INFO::END_TIME.name, cond::persistency::TAG::SYNCHRONIZATION.name, cond::persistency::GLOBAL_TAG::RELEASE.name, AxesNames.name(), cond::persistency::TAG::END_OF_VALIDITY.name, MEPSet.name, candidate_functions::CandidateCut.name(), ExpressionEvaluatorCut.name(), PCaloHit.name(), cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, GeomDetType.name(), cond::persistency::TAG::DESCRIPTION.name, CALayer.name(), cond::persistency::GTEditorData.name, CaloValidationStatistics.name(), MaxConsecLostHitsTrajectoryFilter.name(), MaxHitsTrajectoryFilter.name(), MaxLostHitsTrajectoryFilter.name(), cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, edm::ModuleTime.name(), cond::persistency::TAG::LAST_VALIDATED_TIME.name, SeedFinderBase.name(), TrackingSlaveSD.name(), cond::persistency::TAG::INSERTION_TIME.name, RecHitTopologicalCleanerBase.name(), tauImpactParameter::TrackParticle.name(), SeedExtensionTrajectoryFilter.name(), DDSolidShapesName.name(), nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::MODIFICATION_TIME.name, FWTGeoRecoGeometry::Info.name, preexistingValidation.PreexistingValidation.name, ClopperPearsonBinomialInterval.name(), ResolutionModel.name(), PixelModuleName.name(), OutputMEPSet.name, BlockElementLinkerBase.name(), tauImpactParameter::LorentzVectorParticle.name(), CaloSlaveSD.name(), LostHitsFractionTrajectoryFilter.name(), EventStringOutputBranches::NamedBranchPtr.name, SummaryTableOutputBranches::NamedBranchPtr.name, edm::BaseWithDict.name(), HistoDef.name(), RegionalTrajectoryFilter.name(), dataset.BaseDataset.name, edm::MemberWithDict.name(), fit::RootMinuitCommand.name, PrintSensitive.name, ExpressionEvaluatorCutWithEventContent.name(), personalPlayback.Applet.name, Types._Untracked.name, MaxCCCLostHitsTrajectoryFilter.name(), EventSelector.name(), ParameterSet.name, PixelDCSObject< T >::Item.name, FileData.name(), PacketData.name(), ChargeSignificanceTrajectoryFilter.name(), DDAxesNames.name(), PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.name, HGCalTriggerGeometryBase.name(), BlockElementImporterBase.name(), EcalDetIdAssociator.name(), HODetIdAssociator.name(), pos::PixelConfigAlias.name(), MinHitsTrajectoryFilter.name(), PreshowerDetIdAssociator.name(), PdtEntry.name(), LooperTrajectoryFilter.name(), DQMRivetClient::LumiOption.name, MagCylinder.name, analyzer.Analyzer.name, rpcrawtodigi::ReadoutError.name(), PixelBarrelNameUpgrade.name(), production_tasks.Task.name, CharmTagger::MVAVar.name, HcalForwardLibWriter::FileHandle.name, HcalDetIdAssociator.name(), RPCLinkSynchroStat::LinkBoard.name(), emtf::LossFunction.name(), PFCPositionCalculatorBase.name(), MTDUncalibratedRecHitAlgoBase< DataFrame >.name(), PFClusterEnergyCorrectorBase.name(), ClusterShapeTrajectoryFilter.name(), JetResolution.name(), PixelEndcapNameUpgrade.name(), TriggerOutputBranches::NamedBranchPtr.name, ALIFileOut.name(), hcaldqm::quantity::Quantity.name(), DCCTBDataField.name(), HGCalTriggerFECodecBase.name(), reco::tau::RecoTauNamedPlugin.name(), ParSet.name, DDName.name(), TableOutputBranches::NamedBranchPtr.name, MuonSubDetector.name(), citk::IsolationConeDefinitionBase.name(), CalibratedHistogramXML.name(), ThresholdPtTrajectoryFilter.name(), rpcrawtodigi::DataRecord.name(), edm::FunctionWithDict.name(), pat::helper::OverlapTest.name(), DQMRivetClient::ScaleFactorOption.name, edm::PathTimingSummary.name, HLTPerformanceInfo::Module.name(), L1GctEtHad.name(), L1GctEtTotal.name(), EgHLTOfflineSummaryClient::SumHistBinData.name, RHStopTracer::StopPoint.name, ClassName< T >.name(), CSCChannelMapperPostls1.name(), BeamSpotOnline.name(), PhysicsTools::Source.name, SingleObjectCondition.name, runEdmFileComparison.EdmObject.name, HGCalTriggerBackendAlgorithmBase.name(), OmtfName.name(), Filter.name(), CalibrationCategory< CI >.name(), FTLUncalibratedRecHitAlgoBase.name(), cond::persistency::GTProxyData.name, pos::PixelDACScanRange.name(), PixelBarrelName.name(), MTDRecHitAlgoBase.name(), SummaryGenerator.name(), FTLRecHitAlgoBase.name(), MyWatcher.name, TrajectoryFilter.name(), CSCChannelMapperStartup.name(), core.autovars.NTupleObjectType.name, L1GctInternEmCand.name(), PixelEndcapName.name(), FWParameterBase.name(), edm::eventsetup::ModuleMakerTraits.name(), edm::PathSummary.name, OpticalAlignParam.name(), nanoaod::FlatTable.name(), DDI::rep_type< N, I >.name(), reco::CompositeCandidate.name(), BinomialInterval.name(), EGEnergySysIndex.name(), CompositeTrajectoryFilter.name(), CSCIndexerStartup.name(), cond::TimeTypeSpecs.name, LumiScalers.name(), lumi::TriggerInfo.name, ALIFileIn.name(), edm::TypeIDBase.name(), alignment.Alignment.name, L1GctJetCand.name(), L1TriggerScalers.name(), PixelEndcapLinkMaker::Item.name, dirstructure.Weighted.name, perftools::EdmEventSize::BranchRecord.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, MinPtTrajectoryFilter.name(), edm::eventsetup::EventSetupRecordKey.name(), edm::eventsetup::heterocontainer::HCTypeTag.name(), FWTableViewManager::TableEntry.name, DQMGenericClient::EfficOption.name, CSCIndexerPostls1.name(), PixelBarrelLinkMaker::Item.name, pos::PixelROCMaskBits.name(), CaloDetIdAssociator.name(), CSCChannelMapperBase.name(), reco::NamedCompositeCandidate.name(), cond::persistency::GLOBAL_TAG_MAP::RECORD.name, FWPhysicsObjectDesc.name(), EcalLogicID.name, edm::EventTime.name(), Level1TriggerScalers.name(), funct::DefaultVariable.name(), pos::PixelROCTrimBits.name(), CompositeLogicalTrajectoryFilter.name(), L1GctEtMiss.name(), L1GctJetCounts.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, MEtoEDM< T >::MEtoEDMObject.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, cms::DDAlgoArguments.name, ExpressionHisto< T >.name, CaloTrkProcessing::Detector.name, funct::X.name(), BPhysicsSpectrum.name, PrintMaterialBudgetInfo.name, cond::persistency::GTEditor.name(), GlobalVariablesTableProducer::Variable.name(), XMLProcessor::_loaderBaseConfig.name, funct::Y.name(), GlobalTrackingRegion.name(), SeedingLayerSetsHits::SeedingLayer.name(), L1GctHtMiss.name(), DCCTBBlockPrototype.name(), cond::persistency::PAYLOAD::HASH.name, Entry.name(), funct::Z.name(), L1GctEmCand.name(), edm::eventsetup::DataKey.name(), python.rootplot.utilities.Hist2D.name, CkfBaseTrajectoryFilter.name(), cond::persistency::PAYLOAD::OBJECT_TYPE.name, L1TriggerRates.name(), fwlite::Record.name(), DDValue.name(), PrintGeomInfoAction.name, cond::persistency::PAYLOAD::DATA.name, TreeCrawler.Package.name, FWViewEnergyScale.name(), edm::eventsetup::SourceMakerTraits.name(), NanoAODDQM::Plot.name(), cond::persistency::PAYLOAD::STREAMER_INFO.name, genericValidation.GenericValidation.name, MuonDetIdAssociator.name(), cond::persistency::PAYLOAD::VERSION.name, options.ConnectionHLTMenu.name, MagGeoBuilderFromDDD::volumeHandle.name, L1GtPatternLine.name(), cond::persistency::PAYLOAD::INSERTION_TIME.name, SimpleL1MuGMTCand.name(), edm::TRandomAdaptor.name(), CalibratedObject.name(), Level1TriggerRates.name(), MVAVar.name, DQMGenericClient::ProfileOption.name, OpticalObject.name(), DisplayManager.DisplayManager.name, egHLT::MonElemContainer< T >.name(), edm::ESGetToken< ESProduct, ESRecord >.name(), dqmoffline::l1t::HistDefinition.name, tnp::ProbeVariable.name(), L1AcceptBunchCrossing.name(), nanoaod::MergeableCounterTable::VectorColumn< T >.name, cms::DDNamespace.name(), CachingVariable.name(), DQMGenericClient::NormOption.name, FWLite.WorkingPoints.name, emtf::LeastSquares.name(), BTagProbabilityToDiscriminator::Discriminator.name, DetGeomDesc.name(), FTLDigitizerBase.name(), emtf::Node.name, SimpleFlatTableProducerBase< T, TProd >::VariableBase.name(), L1MuDTTrack.name(), FastHFShowerLibrary.name, h4DSegm.name, PhysicsTools::Calibration::Variable.name, PhysicsTools::Variable::Value.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, ModifyObjectValueBase.name(), L1MuGMTCand.name(), FWGeometryTableManagerBase::NodeInfo.name(), DQMGenericClient::CDOption.name, L1MuBMTrack.name(), DcsStatus.name(), TriggerObjectTableProducer::SelectedObject.name, CounterChecker.name, MillePedeVariables.name(), FWViewType.name(), cond::TagInfo_t.name, HLTPerformanceInfo::Path.name(), DDBase< N, C >.name(), reco::ElectronSeed.name(), TrackerSectorStruct.name, ProcTMVA::Method.name, TreeSaver::Var.name, GeometricTimingDetExtra.name(), BPhysicsValidation::ParticleMonitor.name, DQMGenericClient::NoFlowOption.name, looper.Looper.name, Vispa.Gui.PortWidget.PortWidget.name(), python.rootplot.tree2hists.Plot.name, edm::Path.name(), cond::persistency::IOV::TAG_NAME.name, EDMtoMEConverter.name, StripSubClusterShapeTrajectoryFilter.name(), CSCIndexerBase.name(), cond::persistency::IOV::SINCE.name, edm::eventsetup::LooperMakerTraits.name(), Mapper::definition< ScannerT >.name, cond::persistency::IOV::PAYLOAD_HASH.name, classes.MonitorData.name, PhysicsTools::TreeReader::Value.name, cond::persistency::IOV::INSERTION_TIME.name, HistogramManager.name, BPhysicsValidation.name, cond::persistency::GTProxy.name(), edm::TriggerResults.name(), PhysicsTools::TrainProcessor.name, MuonGeometrySanityCheckPoint.name, pat::TriggerCondition.name(), CutApplicatorBase.name(), MTDDigitizerBase.name(), Measurement.name(), L1GObject.name(), classes.OutputData.name, CosmicTrackingRegion.name(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.name, edm::TypeWithDict.name(), PhysicsTools::ProcessRegistry< Base_t, CalibBase_t, Parent_t >.name, pat::TriggerAlgorithm.name(), FWEventItem.name(), HistoData.name, GeometricDetExtra.name(), options.HLTProcessOptions.name, PhysicsTools::MVATrainer.name, utils.StatisticalTest.name, TrackingRegion.name(), tnp::ProbeFlag.name(), pat::TriggerPath.name(), h2DSegm.name, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, nanoaod::FlatTable::Column.name, python.rootplot.utilities.Hist.name, VariableComputer.name(), VIDSelectorBase.VIDSelectorBase.name(), geometry.Structure.name, MaterialAccountingGroup.name(), GeometricTimingDet.name(), emtf::AbsoluteDeviation.name(), config.Analyzer.name, DetIdAssociator.name(), IntegratedCalibrationBase.name(), core.autovars.NTupleSubObject.name, DQMNet::WaitObject.name, cuy.divideElement.name, AlpgenParameterName.name, cscdqm::Address.name(), Folder.name(), SiStripMonitorDigi.name, NanoAODDQM::SelGroupConfig.name, cuy.plotElement.name, core.autovars.NTupleObject.name, cuy.additionElement.name, VersionedSelector< T >.name(), GeometricDet.name(), public_plots_tools.ColorScheme.name, PhysicsTools::Variable.name, config.Service.name, BasicHepMCValidation::ParticleMonitor.name, cond::persistency::TAG_LOG::TAG_NAME.name, cuy.superimposeElement.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, PhysicsTools::TrainerMonitoring::Object.name, cond::persistency::TAG_LOG::USER_TEXT.name, core.autovars.NTupleCollection.name, cuy.graphElement.name, emtf::Huber.name(), FilterSelection.name(), RectangularEtaPhiTrackingRegion.name(), BPHRecoBuilder::BPHRecoSource.name, BPHRecoBuilder::BPHCompSource.name, utils.KS.name, emtf::PercentErrorSquared.name(), utils.Chi2.name, personalPlayback.FrameworkJob.name, pos::PixelAliasList.name(), utils_v2.StatisticalTest.name, utils.BinToBin.name, plotscripts.SawTeethFunction.name, utils_v2.KolmogorovTest.name, dirstructure.Comparison.name, utils_v2.Chi2Test.name, dqm_interfaces.DirID.name, hcaldqm::quantity::FlagQuantity.name(), utils.BinToBin1percent.name, python.rootplot.utilities.RootFile.name, crabFunctions.CrabTask.name, hcaldqm::quantity::LumiSection.name(), hcaldqm::quantity::LumiSectionCoarse.name(), Vispa.Views.PropertyView.Property.name(), hTMaxCell.name, hcaldqm::quantity::RunNumber.name(), cscdqm::ParHistoDef.name, hcaldqm::quantity::EventNumber.name(), hcaldqm::quantity::EventType.name(), validation.Sample.name(), BeautifulSoup.Tag.name, dqm_interfaces.DirWalkerFile.name, Id.name, genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.name(), SummaryOutputProducer::GenericSummary.name, BeautifulSoup.SoupStrainer.name, dataset.Dataset.name(), trackingPlots.Iteration.name(), validation.Sample.pileupNumber(), validation.Sample.pileupType(), and validation.Sample.scenario().

529  def digest(self):
530  """Return a tuple uniquely identifying the sample, to be used e.g. as a key to dict"""
531  return (self.name(), self.pileupNumber(), self.pileupType(), self.scenario(), self.fastsim())
532 
def name(self)
Definition: validation.py:537
def pileupType(self, release=None)
Definition: validation.py:559
def pileupNumber(self)
Definition: validation.py:566
def digest(self)
Definition: validation.py:529
def scenario(self)
Definition: validation.py:587
def fastsim(self)
Definition: validation.py:596
def validation.Sample.dirname (   self,
  newRepository,
  newRelease,
  newSelection 
)
Return the output directory name

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

Definition at line 607 of file validation.py.

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

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

Definition at line 575 of file validation.py.

References validation.Sample._doBHadron.

575  def doBHadron(self):
576  return self._doBHadron
577 
def doBHadron(self)
Definition: validation.py:575
def validation.Sample.doConversion (   self)

Definition at line 572 of file validation.py.

References validation.Sample._doConversion.

572  def doConversion(self):
573  return self._doConversion
574 
def doConversion(self)
Definition: validation.py:572
def validation.Sample.doElectron (   self)

Definition at line 569 of file validation.py.

References validation.Sample._doElectron.

569  def doElectron(self):
570  return self._doElectron
571 
def doElectron(self)
Definition: validation.py:569
def validation.Sample.fastsim (   self)
Return True for FastSim sample

Definition at line 596 of file validation.py.

References validation.Sample._fastsim.

Referenced by validation.Sample.digest().

596  def fastsim(self):
597  """Return True for FastSim sample"""
598  return self._fastsim
599 
def fastsim(self)
Definition: validation.py:596
def validation.Sample.fastsimCorrespondingFullsimPileup (   self)

Definition at line 604 of file validation.py.

References validation.Sample._fastsimCorrespondingFullsimPileup.

606 
_fastsimCorrespondingFullsimPileup
Definition: validation.py:506
def fastsimCorrespondingFullsimPileup(self)
Definition: validation.py:604
def validation.Sample.filename (   self,
  newRelease 
)
Return the DQM file name

Arguments:
newRelease -- String for CMSSW release

Definition at line 622 of file validation.py.

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

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

Definition at line 600 of file validation.py.

References validation.Sample._fastsim.

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

Definition at line 590 of file validation.py.

References validation.Sample._overrideGlobalTag.

591  return self._overrideGlobalTag is not None
592 
def hasOverrideGlobalTag(self)
Definition: validation.py:590
def validation.Sample.hasPileup (   self)
Return True if sample has pileup (for HTML generation)

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

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

Definition at line 584 of file validation.py.

References validation.Sample._scenario.

584  def hasScenario(self):
585  return self._scenario is not None
586 
def hasScenario(self)
Definition: validation.py:584
def validation.Sample.label (   self)

Definition at line 541 of file validation.py.

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

541  def label(self):
542  return self._sample
543 
def label(self)
Definition: validation.py:541
def validation.Sample.name (   self)
Get the sample name

Definition at line 537 of file validation.py.

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

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

537  def name(self):
538  """Get the sample name"""
539  return self._sample
540 
def name(self)
Definition: validation.py:537
def validation.Sample.overrideGlobalTag (   self)

Definition at line 593 of file validation.py.

References validation.Sample._overrideGlobalTag.

593  def overrideGlobalTag(self):
594  return self._overrideGlobalTag
595 
def overrideGlobalTag(self)
Definition: validation.py:593
def validation.Sample.pileup (   self)
Return "PU"/"noPU" corresponding the pileup status

Definition at line 552 of file validation.py.

References validation.Sample.hasPileup().

552  def pileup(self):
553  """Return "PU"/"noPU" corresponding the pileup status"""
554  if self.hasPileup():
555  return "PU"
556  else:
557  return "noPU"
558 
def hasPileup(self)
Definition: validation.py:544
def pileup(self)
Definition: validation.py:552
def validation.Sample.pileupEnabled (   self)
Return True if pileup plots are enabled (for plot generation)

Definition at line 548 of file validation.py.

References validation.Sample.hasPileup().

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

Definition at line 566 of file validation.py.

References validation.Sample._punum.

Referenced by validation.Sample.digest().

566  def pileupNumber(self):
567  return self._punum
568 
def pileupNumber(self)
Definition: validation.py:566
def validation.Sample.pileupType (   self,
  release = None 
)
Return the pileup type

Definition at line 559 of file validation.py.

References validation.Sample._putype.

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

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

Definition at line 533 of file validation.py.

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

533  def sample(self):
534  """Get the sample name"""
535  return self._sample
536 
def sample(self)
Definition: validation.py:533
def validation.Sample.scenario (   self)

Definition at line 587 of file validation.py.

References validation.Sample._scenario.

Referenced by validation.Sample.digest().

587  def scenario(self):
588  return self._scenario
589 
def scenario(self)
Definition: validation.py:587
def validation.Sample.version (   self,
  release = None 
)

Definition at line 578 of file validation.py.

References Vispa.Main.Application.Application._version, and validation.Sample._version.

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

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

Member Data Documentation

validation.Sample._append
private

Definition at line 501 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._appendGlobalTag
private

Definition at line 511 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._doBHadron
private

Definition at line 522 of file validation.py.

Referenced by validation.Sample.doBHadron().

validation.Sample._doConversion
private

Definition at line 518 of file validation.py.

Referenced by validation.Sample.doConversion().

validation.Sample._doElectron
private

Definition at line 514 of file validation.py.

Referenced by validation.Sample.doElectron().

validation.Sample._dqmVersion
private

Definition at line 508 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._fastsim
private
validation.Sample._fastsimCorrespondingFullsimPileup
private

Definition at line 506 of file validation.py.

Referenced by validation.Sample.fastsimCorrespondingFullsimPileup().

validation.Sample._midfix
private

Definition at line 502 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._overrideGlobalTag
private
validation.Sample._punum
private

Definition at line 504 of file validation.py.

Referenced by validation.Sample.pileupNumber().

validation.Sample._putype
private
validation.Sample._sample
private
validation.Sample._scenario
private

Definition at line 509 of file validation.py.

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

validation.Sample._version
private

Definition at line 507 of file validation.py.

Referenced by validation.Sample.version().