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

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

Member Function Documentation

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 657 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(), PixelToFEDAssociate.version(), SiPixelFedCablingTree.version(), PixelToFEDAssociateFromAscii.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, SiPixelCPEGenericErrorParm.version(), HcalTrigTowerDetId.version(), L1TriggerRates.version(), online::Data_v1.version, L1CaloGeometry.version(), Level1TriggerRates.version(), SiPixel2DTemplateDBObject.version(), SiPixelGenErrorDBObject.version(), TrackerInteractionGeometry.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(), DTLVStatus.version(), DQMNet::CoreObject.version, DTT0.version(), npstat::NUHistoAxis.version(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >.version(), L1TUtmObject.version, DTTPGParameters.version(), DTRangeT0.version(), npstat::DualAxis.version(), SiPixelTemplateDBObject.version(), EcalMatacqDigi.version(), npstat::GridAxis.version(), DTHVStatus.version(), L1TUtmCut.version, npstat::HistoAxis.version(), XMLProcessor::_DBConfig.version, FRDEventMsgView.version(), npstat::DualHistoAxis.version(), DTTtrig.version(), DTPerformance.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(), and npstat::ArrayND< Numeric, StackLen, StackDim >.version().

657  def datasetpattern(self, newRelease):
658  """Return the dataset pattern
659 
660  Arguments:
661  newRelease -- String for CMSSW release
662  """
663  pileup = ""
664  fastsim = ""
665  digi = ""
666  if self.hasPileup():
667  pileup = "-PU_"
668  if self._fastsim:
669  fastsim = "_FastSim-"
670  digi = "DIGI-"
671  else:
672  fastsim = "*"
673  globalTag = _getGlobalTag(self, newRelease)
674  return "{sample}/{newrelease}-{pileup}{globaltag}{fastsim}{version}/GEN-SIM-{digi}RECO".format(
675  sample=self._sample, newrelease=newRelease,
676  pileup=pileup, globaltag=globalTag, fastsim=fastsim, digi=digi,
677  version=self.version(newRelease)
678  )
679 
def _getGlobalTag(sample, release)
Definition: validation.py:357
def hasPileup(self)
Definition: validation.py:542
def datasetpattern(self, newRelease)
Definition: validation.py:657
def version(self, release=None)
Definition: validation.py:576
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 527 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(), SymmetryFit.name(), TmModule.name, cond::persistency::TAG::NAME.name, cond::persistency::GLOBAL_TAG::NAME.name, core.autovars.NTupleVariable.name, cond::persistency::RUN_INFO::RUN_NUMBER.name, cond::persistency::TAG::TIME_TYPE.name, CmsMTDStringToEnum.name(), CmsTrackerStringToEnum.name(), listHistos.plotInfo.name, candidate_functions::CandidateCut.name(), cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::RUN_INFO::START_TIME.name, DDSolidShapesName.name(), cond::persistency::TAG::OBJECT_TYPE.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(), MEPSet.name, cond::persistency::TAG::END_OF_VALIDITY.name, ExpressionEvaluatorCut.name(), PassiveHit.name(), cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, GeomDetType.name(), cond::persistency::TAG::DESCRIPTION.name, HGCalProcessorBaseT< InputCollection, OutputCollection >.name(), cond::persistency::GTEditorData.name, CALayer.name(), MaxConsecLostHitsTrajectoryFilter.name(), MaxHitsTrajectoryFilter.name(), MaxLostHitsTrajectoryFilter.name(), edm::ModuleTime.name(), cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, RecHitTopologicalCleanerBase.name(), SeedFinderBase.name(), CaloValidationStatistics.name(), cond::persistency::TAG::INSERTION_TIME.name, tauImpactParameter::TrackParticle.name(), TrackingSlaveSD.name(), SeedExtensionTrajectoryFilter.name(), preexistingValidation.PreexistingValidation.name, cond::persistency::TAG::MODIFICATION_TIME.name, FWTGeoRecoGeometry::Info.name, Types._Untracked.name, ClopperPearsonBinomialInterval.name(), ResolutionModel.name(), PCaloHit.name(), dataset.BaseDataset.name, OutputMEPSet.name, BlockElementLinkerBase.name(), tauImpactParameter::LorentzVectorParticle.name(), LostHitsFractionTrajectoryFilter.name(), PixelModuleName.name(), SummaryTableOutputBranches::NamedBranchPtr.name, edm::BaseWithDict.name(), HistoDef.name(), CaloSlaveSD.name(), PdtEntry.name(), RegionalTrajectoryFilter.name(), edm::MemberWithDict.name(), fit::RootMinuitCommand.name, ExpressionEvaluatorCutWithEventContent.name(), personalPlayback.Applet.name, MaxCCCLostHitsTrajectoryFilter.name(), EventSelector.name(), ParameterSet.name, PixelDCSObject< T >::Item.name, FileData.name(), PacketData.name(), ChargeSignificanceTrajectoryFilter.name(), DDAxesNames.name(), production_tasks.Task.name, pos::PixelConfigAlias.name(), BlockElementImporterBase.name(), EcalDetIdAssociator.name(), PreshowerDetIdAssociator.name(), HODetIdAssociator.name(), MinHitsTrajectoryFilter.name(), LooperTrajectoryFilter.name(), DQMRivetClient::LumiOption.name, MagCylinder.name, analyzer.Analyzer.name, CharmTagger::MVAVar.name, HcalForwardLibWriter::FileHandle.name, HcalDetIdAssociator.name(), rpcrawtodigi::ReadoutError.name(), RPCLinkSynchroStat::LinkBoard.name(), TriggerOutputBranches::NamedBranchPtr.name, HGCalTriggerGeometryBase.name(), emtf::LossFunction.name(), PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.name, PrintSensitive.name, PFClusterEnergyCorrectorBase.name(), PFCPositionCalculatorBase.name(), MTDUncalibratedRecHitAlgoBase< DataFrame >.name(), ClusterShapeTrajectoryFilter.name(), JetResolution.name(), Filter.name(), ALIFileOut.name(), DCCTBDataField.name(), reco::tau::RecoTauNamedPlugin.name(), ParSet.name, PixelBarrelNameUpgrade.name(), DDName.name(), TableOutputBranches::NamedBranchPtr.name, MuonSubDetector.name(), HGCalTriggerFECodecBase.name(), citk::IsolationConeDefinitionBase.name(), CalibratedHistogramXML.name(), ThresholdPtTrajectoryFilter.name(), CSCChannelMapperPostls1.name(), PixelEndcapNameUpgrade.name(), edm::FunctionWithDict.name(), pat::helper::OverlapTest.name(), DQMRivetClient::ScaleFactorOption.name, HLTPerformanceInfo::Module.name(), L1GctEtHad.name(), L1GctEtTotal.name(), rpcrawtodigi::DataRecord.name(), RHStopTracer::StopPoint.name, EgHLTOfflineSummaryClient::SumHistBinData.name, ClassName< T >.name(), CSCChannelMapperStartup.name(), BeamSpotOnline.name(), PhysicsTools::Source.name, runEdmFileComparison.EdmObject.name, SingleObjectCondition.name, cond::persistency::GTProxyData.name, CalibrationCategory< CI >.name(), FTLUncalibratedRecHitAlgoBase.name(), OmtfName.name(), pos::PixelDACScanRange.name(), core.autovars.NTupleObjectType.name, SummaryGenerator.name(), TrajectoryFilter.name(), FTLRecHitAlgoBase.name(), MTDRecHitAlgoBase.name(), MyWatcher.name, L1GctInternEmCand.name(), PixelEndcapName.name(), FWParameterBase.name(), edm::eventsetup::ModuleMakerTraits.name(), HGCalTriggerBackendAlgorithmBase.name(), edm::PathTimingSummary.name, OpticalAlignParam.name(), nanoaod::FlatTable.name(), DDI::rep_type< N, I >.name(), CSCIndexerStartup.name(), reco::CompositeCandidate.name(), PixelBarrelName.name(), nanoaod::MergeableCounterTable::VectorColumn< T >.name, cms::DDAlgoArguments.name, BinomialInterval.name(), EGEnergySysIndex.name(), CompositeTrajectoryFilter.name(), CSCChannelMapperBase.name(), lumi::TriggerInfo.name, dirstructure.Weighted.name, alignment.Alignment.name, cond::TimeTypeSpecs.name, LumiScalers.name(), edm::PathSummary.name, PrintMaterialBudgetInfo.name, ALIFileIn.name(), CSCIndexerPostls1.name(), L1GctJetCand.name(), L1TriggerScalers.name(), PixelEndcapLinkMaker::Item.name, perftools::EdmEventSize::BranchRecord.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, DQMGenericClient::EfficOption.name, MinPtTrajectoryFilter.name(), FWTableViewManager::TableEntry.name, hcaldqm::quantity::Quantity.name(), edm::eventsetup::heterocontainer::HCTypeTag.name(), PixelBarrelLinkMaker::Item.name, CaloDetIdAssociator.name(), reco::NamedCompositeCandidate.name(), pos::PixelROCMaskBits.name(), cond::persistency::GLOBAL_TAG_MAP::RECORD.name, FWPhysicsObjectDesc.name(), EcalLogicID.name, edm::EventTime.name(), Level1TriggerScalers.name(), pos::PixelROCTrimBits.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, CompositeLogicalTrajectoryFilter.name(), funct::DefaultVariable.name(), validateAlignments.ParallelMergeJob.name, L1GctEtMiss.name(), L1GctJetCounts.name(), cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, MEtoEDM< T >::MEtoEDMObject.name, GlobalVariablesTableProducer::Variable.name(), funct::X.name(), BPhysicsSpectrum.name, ExpressionHisto< T >.name, cond::persistency::GTEditor.name(), funct::Y.name(), GlobalTrackingRegion.name(), XMLProcessor::_loaderBaseConfig.name, SeedingLayerSetsHits::SeedingLayer.name(), L1GctHtMiss.name(), DCCTBBlockPrototype.name(), edm::eventsetup::EventSetupRecordKey.name(), python.rootplot.utilities.Hist2D.name, cond::persistency::PAYLOAD::HASH.name, funct::Z.name(), Entry.name(), edm::TypeIDBase.name(), L1GctEmCand.name(), cond::persistency::PAYLOAD::OBJECT_TYPE.name, CkfBaseTrajectoryFilter.name(), fwlite::Record.name(), L1TriggerRates.name(), DDValue.name(), genericValidation.GenericValidation.name, CaloTrkProcessing::Detector.name, cond::persistency::PAYLOAD::DATA.name, TreeCrawler.Package.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, NanoAODDQM::Plot.name(), PrintGeomInfoAction.name, FWViewEnergyScale.name(), MuonDetIdAssociator.name(), cond::persistency::PAYLOAD::VERSION.name, MagGeoBuilderFromDDD::volumeHandle.name, edm::eventsetup::SourceMakerTraits.name(), L1GtPatternLine.name(), cond::persistency::PAYLOAD::INSERTION_TIME.name, options.ConnectionHLTMenu.name, SimpleL1MuGMTCand.name(), edm::TRandomAdaptor.name(), DisplayManager.DisplayManager.name, Level1TriggerRates.name(), CalibratedObject.name(), DQMGenericClient::ProfileOption.name, MVAVar.name, OpticalObject.name(), egHLT::MonElemContainer< T >.name(), dqmoffline::l1t::HistDefinition.name, tnp::ProbeVariable.name(), L1AcceptBunchCrossing.name(), edm::eventsetup::DataKey.name(), CachingVariable.name(), cms::DDNamespace.name(), DQMGenericClient::NormOption.name, emtf::LeastSquares.name(), BTagProbabilityToDiscriminator::Discriminator.name, FTLDigitizerBase.name(), emtf::Node.name, SimpleFlatTableProducerBase< T, TProd >::VariableBase.name(), h4DSegm.name, PhysicsTools::Calibration::Variable.name, PhysicsTools::Variable::Value.name, L1MuDTTrack.name(), FastHFShowerLibrary.name, CSCIndexerBase.name(), core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, FWGeometryTableManagerBase::NodeInfo.name(), L1MuGMTCand.name(), DQMGenericClient::CDOption.name, ModifyObjectValueBase.name(), DcsStatus.name(), L1MuBMTrack.name(), TriggerObjectTableProducer::SelectedObject.name, MillePedeVariables.name(), CounterChecker.name, FWViewType.name(), MTDDigitizerBase.name(), cond::TagInfo_t.name, DDBase< N, C >.name(), reco::ElectronSeed.name(), HLTPerformanceInfo::Path.name(), edm::Path.name(), ProcTMVA::Method.name, GeometricTimingDetExtra.name(), TreeSaver::Var.name, looper.Looper.name, BPhysicsValidation::ParticleMonitor.name, DQMGenericClient::NoFlowOption.name, Vispa.Gui.PortWidget.PortWidget.name(), python.rootplot.tree2hists.Plot.name, cond::persistency::IOV::TAG_NAME.name, cond::persistency::IOV::SINCE.name, EDMtoMEConverter.name, StripSubClusterShapeTrajectoryFilter.name(), TrackerSectorStruct.name, cond::persistency::IOV::PAYLOAD_HASH.name, Mapper::definition< ScannerT >.name, PhysicsTools::TreeReader::Value.name, classes.MonitorData.name, cond::persistency::IOV::INSERTION_TIME.name, edm::eventsetup::LooperMakerTraits.name(), BPhysicsValidation.name, HistogramManager.name, cond::persistency::GTProxy.name(), MuonGeometrySanityCheckPoint.name, PhysicsTools::TrainProcessor.name, edm::TriggerResults.name(), DetGeomDesc.name(), pat::TriggerCondition.name(), CutApplicatorBase.name(), Measurement.name(), L1GObject.name(), edm::TypeWithDict.name(), classes.OutputData.name, PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.name, CosmicTrackingRegion.name(), HistoData.name, PhysicsTools::ProcessRegistry< Base_t, CalibBase_t, Parent_t >.name, utils.StatisticalTest.name, pat::TriggerAlgorithm.name(), FWEventItem.name(), GeometricDetExtra.name(), PhysicsTools::MVATrainer.name, options.HLTProcessOptions.name, TrackingRegion.name(), tnp::ProbeFlag.name(), pat::TriggerPath.name(), h2DSegm.name, python.rootplot.utilities.Hist.name, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, VIDSelectorBase.VIDSelectorBase.name(), nanoaod::FlatTable::Column.name, VariableComputer.name(), geometry.Structure.name, config.Analyzer.name, emtf::AbsoluteDeviation.name(), GeometricTimingDet.name(), DetIdAssociator.name(), core.autovars.NTupleSubObject.name, IntegratedCalibrationBase.name(), DQMNet::WaitObject.name, cuy.divideElement.name, AlpgenParameterName.name, cscdqm::Address.name(), Folder.name(), NanoAODDQM::SelGroupConfig.name, SiStripMonitorDigi.name, cuy.plotElement.name, core.autovars.NTupleObject.name, cuy.additionElement.name, VersionedSelector< T >.name(), GeometricDet.name(), public_plots_tools.ColorScheme.name, config.Service.name, PhysicsTools::Variable.name, cuy.superimposeElement.name, cond::persistency::TAG_LOG::TAG_NAME.name, BasicHepMCValidation::ParticleMonitor.name, MaterialAccountingGroup.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, FilterSelection.name(), cuy.graphElement.name, emtf::Huber.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, utils_v2.KolmogorovTest.name, plotscripts.SawTeethFunction.name, dirstructure.Comparison.name, utils_v2.Chi2Test.name, dqm_interfaces.DirID.name, utils.BinToBin1percent.name, hcaldqm::quantity::FlagQuantity.name(), python.rootplot.utilities.RootFile.name, crabFunctions.CrabTask.name, hcaldqm::quantity::LumiSection.name(), Vispa.Views.PropertyView.Property.name(), hTMaxCell.name, hcaldqm::quantity::LumiSectionCoarse.name(), cscdqm::ParHistoDef.name, hcaldqm::quantity::RunNumber.name(), hcaldqm::quantity::EventNumber.name(), validation.Sample.name(), BeautifulSoup.Tag.name, dqm_interfaces.DirWalkerFile.name, hcaldqm::quantity::EventType.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().

527  def digest(self):
528  """Return a tuple uniquely identifying the sample, to be used e.g. as a key to dict"""
529  return (self.name(), self.pileupNumber(), self.pileupType(), self.scenario(), self.fastsim())
530 
def name(self)
Definition: validation.py:535
def pileupType(self, release=None)
Definition: validation.py:557
def pileupNumber(self)
Definition: validation.py:564
def digest(self)
Definition: validation.py:527
def scenario(self)
Definition: validation.py:585
def fastsim(self)
Definition: validation.py:594
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 605 of file validation.py.

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

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

Definition at line 573 of file validation.py.

References validation.Sample._doBHadron.

573  def doBHadron(self):
574  return self._doBHadron
575 
def doBHadron(self)
Definition: validation.py:573
def validation.Sample.doConversion (   self)

Definition at line 570 of file validation.py.

References validation.Sample._doConversion.

570  def doConversion(self):
571  return self._doConversion
572 
def doConversion(self)
Definition: validation.py:570
def validation.Sample.doElectron (   self)

Definition at line 567 of file validation.py.

References validation.Sample._doElectron.

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

Definition at line 594 of file validation.py.

References validation.Sample._fastsim.

Referenced by validation.Sample.digest().

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

Definition at line 602 of file validation.py.

References validation.Sample._fastsimCorrespondingFullsimPileup.

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 620 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(), PixelToFEDAssociate.version(), SiPixelFedCablingTree.version(), PixelToFEDAssociateFromAscii.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, Level1TriggerScalers.version(), FWConfiguration.version(), options.ConnectionHLTMenu.version, L1TUtmBin.version, HcalTrigTowerDetId.version(), SiPixelCPEGenericErrorParm.version(), L1TriggerRates.version(), online::Data_v1.version, L1CaloGeometry.version(), TrackerInteractionGeometry.version, Level1TriggerRates.version(), SiPixel2DTemplateDBObject.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(), DTLVStatus.version(), DQMNet::CoreObject.version, DTT0.version(), L1TUtmObject.version, npstat::NUHistoAxis.version(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >.version(), DTTPGParameters.version(), DTRangeT0.version(), SiPixelTemplateDBObject.version(), npstat::DualAxis.version(), EcalMatacqDigi.version(), npstat::GridAxis.version(), DTHVStatus.version(), L1TUtmCut.version, npstat::HistoAxis.version(), FRDEventMsgView.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(), and npstat::ArrayND< Numeric, StackLen, StackDim >.version().

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

Definition at line 598 of file validation.py.

References validation.Sample._fastsim.

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

Definition at line 588 of file validation.py.

References validation.Sample._overrideGlobalTag.

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

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

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

Definition at line 582 of file validation.py.

References validation.Sample._scenario.

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

Definition at line 539 of file validation.py.

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

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

Definition at line 535 of file validation.py.

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

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

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

Definition at line 591 of file validation.py.

References validation.Sample._overrideGlobalTag.

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

Definition at line 550 of file validation.py.

References validation.Sample.hasPileup().

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

Definition at line 546 of file validation.py.

References validation.Sample.hasPileup().

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

Definition at line 564 of file validation.py.

References validation.Sample._punum.

Referenced by validation.Sample.digest().

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

Definition at line 557 of file validation.py.

References validation.Sample._putype.

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

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

Definition at line 531 of file validation.py.

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

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

Definition at line 585 of file validation.py.

References validation.Sample._scenario.

Referenced by validation.Sample.digest().

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

Definition at line 576 of file validation.py.

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

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

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

Member Data Documentation

validation.Sample._append
private

Definition at line 499 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._appendGlobalTag
private

Definition at line 509 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._doBHadron
private

Definition at line 520 of file validation.py.

Referenced by validation.Sample.doBHadron().

validation.Sample._doConversion
private

Definition at line 516 of file validation.py.

Referenced by validation.Sample.doConversion().

validation.Sample._doElectron
private

Definition at line 512 of file validation.py.

Referenced by validation.Sample.doElectron().

validation.Sample._dqmVersion
private

Definition at line 506 of file validation.py.

Referenced by validation.Sample.filename().

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

Definition at line 504 of file validation.py.

Referenced by validation.Sample.fastsimCorrespondingFullsimPileup().

validation.Sample._midfix
private

Definition at line 500 of file validation.py.

Referenced by validation.Sample.filename().

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

Definition at line 502 of file validation.py.

Referenced by validation.Sample.pileupNumber().

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

Definition at line 507 of file validation.py.

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

validation.Sample._version
private

Definition at line 505 of file validation.py.

Referenced by validation.Sample.version().