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

415  version="v1", dqmVersion="0001", scenario=None, overrideGlobalTag=None, appendGlobalTag=""):
416  """Constructor.
417 
418  Arguments:
419  sample -- String for name of the sample
420 
421  Keyword arguments
422  append -- String for a variable name within the DWM file names, to be directly appended to sample name (e.g. "HS"; default None)
423  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)
424  putype -- String for pileup type (e.g. "25ns"/"50ns" for FullSim, "AVE20" for FastSim; default None)
425  punum -- String for amount of pileup (default None)
426  fastsim -- Bool indicating the FastSim status (default False)
427  fastsimCorrespondingFullSimPileup -- String indicating what is the FullSim pileup sample corresponding this FastSim sample. Must be set if fastsim=True and putype!=None (default None)
428  doElectron -- Bool specifying if electron-specific plots should be produced (default depends on sample)
429  doConversion -- Bool specifying if conversion-specific plots should be produced (default depends on sample)
430  doBHadron -- Bool specifying if B-hadron-specific plots should be produced (default depends on sample)
431  version -- String for dataset/DQM file version (default "v1")
432  scenario -- Geometry scenario for upgrade samples (default None)
433  overrideGlobalTag -- GlobalTag obtained from release information (in the form of {"release": "actualRelease"}; default None)
434  appendGlobalTag -- String to append to GlobalTag (intended for one-time hacks; default "")
435  """
436  self._sample = sample
437  self._append = append
438  self._midfix = midfix
439  self._putype = putype
440  self._punum = punum
441  self._fastsim = fastsim
442  self._fastsimCorrespondingFullsimPileup = fastsimCorrespondingFullsimPileup
443  self._version = version
444  self._dqmVersion = dqmVersion
445  self._scenario = scenario
446  self._overrideGlobalTag = overrideGlobalTag
447  self._appendGlobalTag = appendGlobalTag
448 
449  if doElectron is not None:
450  self._doElectron = doElectron
451  else:
452  self._doElectron = (sample in _doElectronSamples)
453  if doConversion is not None:
454  self._doConversion = doConversion
455  else:
456  self._doConversion = (sample in _doConversionSamples)
457  if doBHadron is not None:
458  self._doBHadron = doBHadron
459  else:
460  self._doBHadron = (sample in _doBHadronSamples)
461 
462  if self._fastsim and self.hasPileup() and self._fastsimCorrespondingFullsimPileup is None:
464 
_fastsimCorrespondingFullsimPileup
Definition: validation.py:442
def hasPileup(self)
Definition: validation.py:480

Member Function Documentation

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 595 of file validation.py.

References validation.Sample._fastsim, validation._getGlobalTag(), validation.Sample._sample, html.IndexSection._sample, validation.Sample.hasPileup(), pos::PixelVersionAlias.version(), SiPixelFedCabling.version(), PixelToFEDAssociate.version(), SiPixelFedCablingTree.version(), PixelToFEDAssociateFromAscii.version(), PixelToLNKAssociateFromAscii.version(), DTRecoUncertainties.version(), FEDHeader.version(), SiPixelFedCablingMap.version(), LTCDigi.version(), FWConfigurableParameterizable.version(), MagFieldConfig.version, Phase2Tracker::FEDDAQHeader.version(), lumi::Lumi2DB::LumiSource.version, L1TUtmCutValue.version, DTRecoConditions.version(), RPCReadOutMapping.version(), BeamSpotOnline.version(), L1TriggerScalers.version(), MatrixInjector.MatrixInjector.version, LumiScalers.version(), SiPixelTemplateDBObject::Reader.version(), Level1TriggerScalers.version(), FWConfiguration.version(), confdbOfflineConverter.OfflineConverter.version, L1TUtmBin.version, options.ConnectionHLTMenu.version, SiPixelCPEGenericErrorParm.version(), HcalTrigTowerDetId.version(), L1TriggerRates.version(), L1CaloGeometry.version(), Level1TriggerRates.version(), TrackerInteractionGeometry.version, SiPixel2DTemplateDBObject.version(), SiPixelGenErrorDBObject.version(), npstat::StorableMultivariateFunctor.version(), L1TUtmCondition.version, L1TUtmAlgorithm.version, DcsStatus.version(), npstat::UniformAxis.version(), MatacqTBRawEvent::matacqHeader_t.version, L1TUtmScale.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(), 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(), python.rootplot.argparse._VersionAction.version, npstat::ArrayND< Numeric, StackLen, StackDim >.version(), argparse.ArgumentParser.version, and python.rootplot.argparse.ArgumentParser.version.

595  def datasetpattern(self, newRelease):
596  """Return the dataset pattern
597 
598  Arguments:
599  newRelease -- String for CMSSW release
600  """
601  pileup = ""
602  fastsim = ""
603  digi = ""
604  if self.hasPileup():
605  pileup = "-PU_"
606  if self._fastsim:
607  fastsim = "_FastSim-"
608  digi = "DIGI-"
609  else:
610  fastsim = "*"
611  globalTag = _getGlobalTag(self, newRelease)
612  return "{sample}/{newrelease}-{pileup}{globaltag}{fastsim}{version}/GEN-SIM-{digi}RECO".format(
613  sample=self._sample, newrelease=newRelease,
614  pileup=pileup, globaltag=globalTag, fastsim=fastsim, digi=digi,
615  version=self.version(newRelease)
616  )
617 
def _getGlobalTag(sample, release)
Definition: validation.py:297
def hasPileup(self)
Definition: validation.py:480
def datasetpattern(self, newRelease)
Definition: validation.py:595
def version(self, release=None)
Definition: validation.py:514
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 465 of file validation.py.

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

465  def digest(self):
466  """Return a tuple uniquely identifying the sample, to be used e.g. as a key to dict"""
467  return (self.name(), self.pileupNumber(), self.pileupType(), self.scenario(), self.fastsim())
468 
def name(self)
Definition: validation.py:473
def pileupType(self, release=None)
Definition: validation.py:495
def pileupNumber(self)
Definition: validation.py:502
def digest(self)
Definition: validation.py:465
def scenario(self)
Definition: validation.py:523
def fastsim(self)
Definition: validation.py:532
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 543 of file validation.py.

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

543  def dirname(self, newRepository, newRelease, newSelection):
544  """Return the output directory name
545 
546  Arguments:
547  newRepository -- String for base directory for output files
548  newRelease -- String for CMSSW release
549  newSelection -- String for histogram selection
550  """
551  pileup = ""
552  if self.hasPileup() and not self._fastsim:
553  pileup = "_"+self._putype
554  return "{newRepository}/{newRelease}/{newSelection}{pileup}/{sample}".format(
555  newRepository=newRepository, newRelease=newRelease, newSelection=newSelection,
556  pileup=pileup, sample=sample)
557 
def hasPileup(self)
Definition: validation.py:480
def dirname(self, newRepository, newRelease, newSelection)
Definition: validation.py:543
def validation.Sample.doBHadron (   self)

Definition at line 511 of file validation.py.

References validation.Sample._doBHadron.

511  def doBHadron(self):
512  return self._doBHadron
513 
def doBHadron(self)
Definition: validation.py:511
def validation.Sample.doConversion (   self)

Definition at line 508 of file validation.py.

References validation.Sample._doConversion.

508  def doConversion(self):
509  return self._doConversion
510 
def doConversion(self)
Definition: validation.py:508
def validation.Sample.doElectron (   self)

Definition at line 505 of file validation.py.

References validation.Sample._doElectron.

505  def doElectron(self):
506  return self._doElectron
507 
def doElectron(self)
Definition: validation.py:505
def validation.Sample.fastsim (   self)
Return True for FastSim sample

Definition at line 532 of file validation.py.

References validation.Sample._fastsim.

Referenced by validation.Sample.digest().

532  def fastsim(self):
533  """Return True for FastSim sample"""
534  return self._fastsim
535 
def fastsim(self)
Definition: validation.py:532
def validation.Sample.fastsimCorrespondingFullsimPileup (   self)

Definition at line 540 of file validation.py.

References validation.Sample._fastsimCorrespondingFullsimPileup.

542 
_fastsimCorrespondingFullsimPileup
Definition: validation.py:442
def fastsimCorrespondingFullsimPileup(self)
Definition: validation.py:540
def validation.Sample.filename (   self,
  newRelease 
)
Return the DQM file name

Arguments:
newRelease -- String for CMSSW release

Definition at line 558 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(), pos::PixelVersionAlias.version(), SiPixelFedCabling.version(), PixelToFEDAssociate.version(), SiPixelFedCablingTree.version(), PixelToFEDAssociateFromAscii.version(), PixelToLNKAssociateFromAscii.version(), FEDHeader.version(), DTRecoUncertainties.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(), L1TUtmBin.version, options.ConnectionHLTMenu.version, HcalTrigTowerDetId.version(), SiPixelCPEGenericErrorParm.version(), L1TriggerRates.version(), L1CaloGeometry.version(), Level1TriggerRates.version(), SiPixel2DTemplateDBObject.version(), TrackerInteractionGeometry.version, SiPixelGenErrorDBObject.version(), npstat::StorableMultivariateFunctor.version(), L1TUtmCondition.version, L1TUtmAlgorithm.version, DcsStatus.version(), npstat::UniformAxis.version(), L1TUtmScale.version, MatacqTBRawEvent::matacqHeader_t.version, DTCCBConfig.version(), Vispa.Main.Application.Application.version(), DQMNet::CoreObject.version, DTLVStatus.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(), XMLProcessor::_DBConfig.version, FRDEventMsgView.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(), python.rootplot.argparse._VersionAction.version, npstat::ArrayND< Numeric, StackLen, StackDim >.version(), argparse.ArgumentParser.version, and python.rootplot.argparse.ArgumentParser.version.

558  def filename(self, newRelease):
559  """Return the DQM file name
560 
561  Arguments:
562  newRelease -- String for CMSSW release
563  """
564  pileup = ""
565  fastsim = ""
566  midfix = ""
567  sample = self._sample
568  if self._append is not None:
569  midfix += self._append
570  if self._midfix is not None:
571  midfix += "_"+self._midfix
572  if self.hasPileup():
573  if self._fastsim:
574  #sample = sample.replace("RelVal", "RelValFS_")
575  # old style
576  #pileup = "PU_"
577  #midfix += "_"+self.pileupType(newRelease)
578  # new style
579  pileup = "PU"+self.pileupType(newRelease)+"_"
580  else:
581  pileup = "PU"+self.pileupType(newRelease)+"_"
582  if self._fastsim:
583  fastsim = "_FastSim"
584 
585  globalTag = _getGlobalTag(self, newRelease)
586 
587  fname = 'DQM_V{dqmVersion}_R000000001__{sample}{midfix}__{newrelease}-{pileup}{globaltag}{appendGlobalTag}{fastsim}-{version}__DQMIO.root'.format(
588  sample=sample, midfix=midfix, newrelease=_stripRelease(newRelease),
589  pileup=pileup, globaltag=globalTag, appendGlobalTag=self._appendGlobalTag, fastsim=fastsim,
590  version=self.version(newRelease), dqmVersion=self._dqmVersion
591  )
592 
593  return fname
594 
def _getGlobalTag(sample, release)
Definition: validation.py:297
def hasPileup(self)
Definition: validation.py:480
def filename(self, newRelease)
Definition: validation.py:558
def pileupType(self, release=None)
Definition: validation.py:495
def _stripRelease(release)
Definition: validation.py:290
def version(self, release=None)
Definition: validation.py:514
def validation.Sample.fullsim (   self)
Return True for FullSim sample

Definition at line 536 of file validation.py.

References validation.Sample._fastsim.

536  def fullsim(self):
537  """Return True for FullSim sample"""
538  return not self._fastsim
539 
def fullsim(self)
Definition: validation.py:536
def validation.Sample.hasOverrideGlobalTag (   self)

Definition at line 526 of file validation.py.

References validation.Sample._overrideGlobalTag.

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

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

480  def hasPileup(self):
481  """Return True if sample has pileup (for HTML generation)"""
482  return self._putype is not None
483 
def hasPileup(self)
Definition: validation.py:480
def validation.Sample.hasScenario (   self)

Definition at line 520 of file validation.py.

References validation.Sample._scenario.

520  def hasScenario(self):
521  return self._scenario is not None
522 
def hasScenario(self)
Definition: validation.py:520
def validation.Sample.label (   self)

Definition at line 477 of file validation.py.

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

477  def label(self):
478  return self._sample
479 
def label(self)
Definition: validation.py:477
def validation.Sample.name (   self)
Get the sample name

Definition at line 473 of file validation.py.

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

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

473  def name(self):
474  """Get the sample name"""
475  return self._sample
476 
def name(self)
Definition: validation.py:473
def validation.Sample.overrideGlobalTag (   self)

Definition at line 529 of file validation.py.

References validation.Sample._overrideGlobalTag.

529  def overrideGlobalTag(self):
530  return self._overrideGlobalTag
531 
def overrideGlobalTag(self)
Definition: validation.py:529
def validation.Sample.pileup (   self)
Return "PU"/"noPU" corresponding the pileup status

Definition at line 488 of file validation.py.

References validation.Sample.hasPileup().

488  def pileup(self):
489  """Return "PU"/"noPU" corresponding the pileup status"""
490  if self.hasPileup():
491  return "PU"
492  else:
493  return "noPU"
494 
def hasPileup(self)
Definition: validation.py:480
def pileup(self)
Definition: validation.py:488
def validation.Sample.pileupEnabled (   self)
Return True if pileup plots are enabled (for plot generation)

Definition at line 484 of file validation.py.

References validation.Sample.hasPileup().

484  def pileupEnabled(self):
485  """Return True if pileup plots are enabled (for plot generation)"""
486  return self.hasPileup()
487 
def hasPileup(self)
Definition: validation.py:480
def pileupEnabled(self)
Definition: validation.py:484
def validation.Sample.pileupNumber (   self)

Definition at line 502 of file validation.py.

References validation.Sample._punum.

Referenced by validation.Sample.digest().

502  def pileupNumber(self):
503  return self._punum
504 
def pileupNumber(self)
Definition: validation.py:502
def validation.Sample.pileupType (   self,
  release = None 
)
Return the pileup type

Definition at line 495 of file validation.py.

References validation.Sample._putype.

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

495  def pileupType(self, release=None):
496  """Return the pileup type"""
497  if isinstance(self._putype, dict):
498  return self._putype.get(release, self._putype["default"])
499  else:
500  return self._putype
501 
def pileupType(self, release=None)
Definition: validation.py:495
def validation.Sample.sample (   self)
Get the sample name

Definition at line 469 of file validation.py.

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

469  def sample(self):
470  """Get the sample name"""
471  return self._sample
472 
def sample(self)
Definition: validation.py:469
def validation.Sample.scenario (   self)

Definition at line 523 of file validation.py.

References validation.Sample._scenario.

Referenced by validation.Sample.digest().

523  def scenario(self):
524  return self._scenario
525 
def scenario(self)
Definition: validation.py:523
def validation.Sample.version (   self,
  release = None 
)

Definition at line 514 of file validation.py.

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

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

514  def version(self, release=None):
515  if isinstance(self._version, dict):
516  return self._version.get(release, self._version["default"])
517  else:
518  return self._version
519 
def version(self, release=None)
Definition: validation.py:514

Member Data Documentation

validation.Sample._append
private

Definition at line 437 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._appendGlobalTag
private

Definition at line 447 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._doBHadron
private

Definition at line 458 of file validation.py.

Referenced by validation.Sample.doBHadron().

validation.Sample._doConversion
private

Definition at line 454 of file validation.py.

Referenced by validation.Sample.doConversion().

validation.Sample._doElectron
private

Definition at line 450 of file validation.py.

Referenced by validation.Sample.doElectron().

validation.Sample._dqmVersion
private

Definition at line 444 of file validation.py.

Referenced by validation.Sample.filename().

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

Definition at line 442 of file validation.py.

Referenced by validation.Sample.fastsimCorrespondingFullsimPileup().

validation.Sample._midfix
private

Definition at line 438 of file validation.py.

Referenced by validation.Sample.filename().

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

Definition at line 440 of file validation.py.

Referenced by validation.Sample.pileupNumber().

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

Definition at line 445 of file validation.py.

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

validation.Sample._version
private

Definition at line 443 of file validation.py.

Referenced by validation.Sample.version().