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

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

Member Function Documentation

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

Arguments:
newRelease -- String for CMSSW release

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

656  def datasetpattern(self, newRelease):
657  """Return the dataset pattern
658 
659  Arguments:
660  newRelease -- String for CMSSW release
661  """
662  pileup = ""
663  fastsim = ""
664  digi = ""
665  if self.hasPileup():
666  pileup = "-PU_"
667  if self._fastsim:
668  fastsim = "_FastSim-"
669  digi = "DIGI-"
670  else:
671  fastsim = "*"
672  globalTag = _getGlobalTag(self, newRelease)
673  return "{sample}/{newrelease}-{pileup}{globaltag}{fastsim}{version}/GEN-SIM-{digi}RECO".format(
674  sample=self._sample, newrelease=newRelease,
675  pileup=pileup, globaltag=globalTag, fastsim=fastsim, digi=digi,
676  version=self.version(newRelease)
677  )
678 
def _getGlobalTag(sample, release)
Definition: validation.py:356
def hasPileup(self)
Definition: validation.py:541
def datasetpattern(self, newRelease)
Definition: validation.py:656
def version(self, release=None)
Definition: validation.py:575
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 526 of file validation.py.

References validation.Sample.fastsim(), ElectronMVAID.ElectronMVAID.name, OAQualityTranslator.name(), FP420HitsObject.name(), TrackerHitsObject.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, 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, FeldmanCousinsBinomialInterval.name(), SterneBinomialInterval.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, 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(), FWTGeoRecoGeometry::Info.name, cond::persistency::TAG::INSERTION_TIME.name, tauImpactParameter::TrackParticle.name(), TrackingSlaveSD.name(), SeedExtensionTrajectoryFilter.name(), preexistingValidation.PreexistingValidation.name, cond::persistency::TAG::MODIFICATION_TIME.name, Types._Untracked.name, dataset.BaseDataset.name, ClopperPearsonBinomialInterval.name(), ResolutionModel.name(), PCaloHit.name(), OutputMEPSet.name, BlockElementLinkerBase.name(), tauImpactParameter::LorentzVectorParticle.name(), LostHitsFractionTrajectoryFilter.name(), PixelModuleName.name(), SummaryTableOutputBranches::NamedBranchPtr.name, edm::BaseWithDict.name(), personalPlayback.Applet.name, CaloSlaveSD.name(), HistoDef.name(), PdtEntry.name(), RegionalTrajectoryFilter.name(), edm::MemberWithDict.name(), fit::RootMinuitCommand.name, ExpressionEvaluatorCutWithEventContent.name(), MaxCCCLostHitsTrajectoryFilter.name(), EventSelector.name(), ParameterSet.name, PixelDCSObject< T >::Item.name, production_tasks.Task.name, FileData.name(), PacketData.name(), ChargeSignificanceTrajectoryFilter.name(), DDAxesNames.name(), BlockElementImporterBase.name(), EcalDetIdAssociator.name(), HODetIdAssociator.name(), PreshowerDetIdAssociator.name(), pos::PixelConfigAlias.name(), MinHitsTrajectoryFilter.name(), analyzer.Analyzer.name, LooperTrajectoryFilter.name(), DQMRivetClient::LumiOption.name, MagCylinder.name, CharmTagger::MVAVar.name, HcalForwardLibWriter::FileHandle.name, rpcrawtodigi::ReadoutError.name(), HcalDetIdAssociator.name(), RPCLinkSynchroStat::LinkBoard.name(), TriggerOutputBranches::NamedBranchPtr.name, HGCalTriggerGeometryBase.name(), emtf::LossFunction.name(), PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.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(), 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, runEdmFileComparison.EdmObject.name, ClassName< T >.name(), CSCChannelMapperStartup.name(), BeamSpotOnline.name(), PhysicsTools::Source.name, SingleObjectCondition.name, OmtfName.name(), cond::persistency::GTProxyData.name, CalibrationCategory< CI >.name(), FTLUncalibratedRecHitAlgoBase.name(), pos::PixelDACScanRange.name(), core.autovars.NTupleObjectType.name, PixelEndcapName.name(), SummaryGenerator.name(), TrajectoryFilter.name(), FTLRecHitAlgoBase.name(), MTDRecHitAlgoBase.name(), MyWatcher.name, L1GctInternEmCand.name(), FWParameterBase.name(), edm::eventsetup::ModuleMakerTraits.name(), HGCalTriggerBackendAlgorithmBase.name(), MTDUncalibratedRecHitAlgoBase.name(), edm::PathTimingSummary.name, OpticalAlignParam.name(), nanoaod::FlatTable.name(), CSCIndexerStartup.name(), reco::CompositeCandidate.name(), PixelBarrelName.name(), nanoaod::MergeableCounterTable::VectorColumn< T >.name, cms::DDAlgoArguments.name, BinomialInterval.name(), CompositeTrajectoryFilter.name(), dirstructure.Weighted.name, EGEnergySysIndex.name(), lumi::TriggerInfo.name, alignment.Alignment.name, CSCChannelMapperBase.name(), LumiScalers.name(), cond::TimeTypeSpecs.name, DDName.name(), PrintMaterialBudgetInfo.name, ALIFileIn.name(), edm::PathSummary.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, FWTableViewManager::TableEntry.name, MinPtTrajectoryFilter.name(), pos::PixelROCMaskBits.name(), hcaldqm::quantity::Quantity.name(), PixelBarrelLinkMaker::Item.name, CaloDetIdAssociator.name(), reco::NamedCompositeCandidate.name(), cond::persistency::GLOBAL_TAG_MAP::RECORD.name, FWPhysicsObjectDesc.name(), validateAlignments.ParallelMergeJob.name, EcalLogicID.name, edm::EventTime.name(), Level1TriggerScalers.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, funct::DefaultVariable.name(), CompositeLogicalTrajectoryFilter.name(), pos::PixelROCTrimBits.name(), L1GctEtMiss.name(), L1GctJetCounts.name(), cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, MEtoEDM< T >::MEtoEDMObject.name, BPhysicsSpectrum.name, GlobalVariablesTableProducer::Variable.name(), funct::X.name(), ExpressionHisto< T >.name, cond::persistency::GTEditor.name(), XMLProcessor::_loaderBaseConfig.name, edm::eventsetup::heterocontainer::HCTypeTag.name(), python.rootplot.utilities.Hist2D.name, funct::Y.name(), GlobalTrackingRegion.name(), SeedingLayerSetsHits::SeedingLayer.name(), L1GctHtMiss.name(), edm::eventsetup::EventSetupRecordKey.name(), edm::TypeIDBase.name(), cond::persistency::PAYLOAD::HASH.name, funct::Z.name(), Entry.name(), L1GctEmCand.name(), DCCTBBlockPrototype.name(), genericValidation.GenericValidation.name, CkfBaseTrajectoryFilter.name(), cond::persistency::PAYLOAD::OBJECT_TYPE.name, fwlite::Record.name(), TreeCrawler.Package.name, L1TriggerRates.name(), DDValue.name(), CaloTrkProcessing::Detector.name, cond::persistency::PAYLOAD::DATA.name, FWViewEnergyScale.name(), cond::persistency::PAYLOAD::STREAMER_INFO.name, PrintGeomInfoAction.name, NanoAODDQM::Plot.name(), cond::persistency::PAYLOAD::VERSION.name, MuonDetIdAssociator.name(), MagGeoBuilderFromDDD::volumeHandle.name, edm::eventsetup::SourceMakerTraits.name(), cond::persistency::PAYLOAD::INSERTION_TIME.name, L1GtPatternLine.name(), options.ConnectionHLTMenu.name, SimpleL1MuGMTCand.name(), edm::TRandomAdaptor.name(), DisplayManager.DisplayManager.name, CalibratedObject.name(), Level1TriggerRates.name(), DQMGenericClient::ProfileOption.name, MVAVar.name, OpticalObject.name(), egHLT::MonElemContainer< T >.name(), dqmoffline::l1t::HistDefinition.name, tnp::ProbeVariable.name(), L1AcceptBunchCrossing.name(), cms::DDNamespace.name(), CachingVariable.name(), edm::eventsetup::DataKey.name(), emtf::LeastSquares.name(), DQMGenericClient::NormOption.name, BTagProbabilityToDiscriminator::Discriminator.name, FTLDigitizerBase.name(), emtf::Node.name, h4DSegm.name, SimpleFlatTableProducerBase< T, TProd >::VariableBase.name(), core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, FastHFShowerLibrary.name, PhysicsTools::Calibration::Variable.name, PhysicsTools::Variable::Value.name, L1MuDTTrack.name(), CSCIndexerBase.name(), FWGeometryTableManagerBase::NodeInfo.name(), L1MuGMTCand.name(), DcsStatus.name(), DQMGenericClient::CDOption.name, ModifyObjectValueBase.name(), MillePedeVariables.name(), TriggerObjectTableProducer::SelectedObject.name, CounterChecker.name, L1MuBMTrack.name(), FWViewType.name(), MTDDigitizerBase.name(), cond::TagInfo_t.name, reco::ElectronSeed.name(), HLTPerformanceInfo::Path.name(), edm::Path.name(), ProcTMVA::Method.name, looper.Looper.name, TreeSaver::Var.name, BPhysicsValidation::ParticleMonitor.name, DQMGenericClient::NoFlowOption.name, DDBase< N, C >.name(), DDNameInterface.name(), Vispa.Gui.PortWidget.PortWidget.name(), python.rootplot.tree2hists.Plot.name, cond::persistency::IOV::TAG_NAME.name, TrackerSectorStruct.name, StripSubClusterShapeTrajectoryFilter.name(), EDMtoMEConverter.name, cond::persistency::IOV::SINCE.name, cond::persistency::IOV::PAYLOAD_HASH.name, classes.MonitorData.name, Mapper::definition< ScannerT >.name, PhysicsTools::TreeReader::Value.name, cond::persistency::IOV::INSERTION_TIME.name, edm::eventsetup::LooperMakerTraits.name(), HistogramManager.name, BPhysicsValidation.name, cond::persistency::GTProxy.name(), PhysicsTools::TrainProcessor.name, MuonGeometrySanityCheckPoint.name, edm::TriggerResults.name(), DetGeomDesc.name(), pat::TriggerCondition.name(), CutApplicatorBase.name(), Measurement.name(), L1GObject.name(), classes.OutputData.name, edm::TypeWithDict.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, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, python.rootplot.utilities.Hist.name, VIDSelectorBase.VIDSelectorBase.name(), nanoaod::FlatTable::Column.name, VariableComputer.name(), config.Analyzer.name, geometry.Structure.name, emtf::AbsoluteDeviation.name(), DetIdAssociator.name(), core.autovars.NTupleSubObject.name, IntegratedCalibrationBase.name(), DQMNet::WaitObject.name, cuy.divideElement.name, AlpgenParameterName.name, cscdqm::Address.name(), Folder.name(), cuy.plotElement.name, SiStripMonitorDigi.name, NanoAODDQM::SelGroupConfig.name, core.autovars.NTupleObject.name, cuy.additionElement.name, VersionedSelector< T >.name(), GeometricDet.name(), config.Service.name, public_plots_tools.ColorScheme.name, cuy.superimposeElement.name, PhysicsTools::Variable.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, cond::persistency::TAG_LOG::USER_TEXT.name, PhysicsTools::TrainerMonitoring::Object.name, core.autovars.NTupleCollection.name, cuy.graphElement.name, FilterSelection.name(), emtf::Huber.name(), RectangularEtaPhiTrackingRegion.name(), BPHRecoBuilder::BPHRecoSource.name, BPHRecoBuilder::BPHCompSource.name, utils.KS.name, cuy.FindIssue.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, utils.BinToBin1percent.name, hcaldqm::quantity::FlagQuantity.name(), python.rootplot.utilities.RootFile.name, crabFunctions.CrabTask.name, hcaldqm::quantity::LumiSection.name(), Vispa.Views.PropertyView.Property.name(), hcaldqm::quantity::LumiSectionCoarse.name(), hTMaxCell.name, cscdqm::ParHistoDef.name, hcaldqm::quantity::RunNumber.name(), hcaldqm::quantity::EventNumber.name(), validation.Sample.name(), hcaldqm::quantity::EventType.name(), dqm_interfaces.DirWalkerFile.name, BeautifulSoup.Tag.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().

526  def digest(self):
527  """Return a tuple uniquely identifying the sample, to be used e.g. as a key to dict"""
528  return (self.name(), self.pileupNumber(), self.pileupType(), self.scenario(), self.fastsim())
529 
def name(self)
Definition: validation.py:534
def pileupType(self, release=None)
Definition: validation.py:556
def pileupNumber(self)
Definition: validation.py:563
def digest(self)
Definition: validation.py:526
def scenario(self)
Definition: validation.py:584
def fastsim(self)
Definition: validation.py:593
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 604 of file validation.py.

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

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

Definition at line 572 of file validation.py.

References validation.Sample._doBHadron.

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

Definition at line 569 of file validation.py.

References validation.Sample._doConversion.

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

Definition at line 566 of file validation.py.

References validation.Sample._doElectron.

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

Definition at line 593 of file validation.py.

References validation.Sample._fastsim.

Referenced by validation.Sample.digest().

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

Definition at line 601 of file validation.py.

References validation.Sample._fastsimCorrespondingFullsimPileup.

603 
_fastsimCorrespondingFullsimPileup
Definition: validation.py:503
def fastsimCorrespondingFullsimPileup(self)
Definition: validation.py:601
def validation.Sample.filename (   self,
  newRelease 
)
Return the DQM file name

Arguments:
newRelease -- String for CMSSW release

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

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

Definition at line 597 of file validation.py.

References validation.Sample._fastsim.

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

Definition at line 587 of file validation.py.

References validation.Sample._overrideGlobalTag.

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

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

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

Definition at line 581 of file validation.py.

References validation.Sample._scenario.

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

Definition at line 538 of file validation.py.

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

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

Definition at line 534 of file validation.py.

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

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

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

Definition at line 590 of file validation.py.

References validation.Sample._overrideGlobalTag.

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

Definition at line 549 of file validation.py.

References validation.Sample.hasPileup().

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

Definition at line 545 of file validation.py.

References validation.Sample.hasPileup().

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

Definition at line 563 of file validation.py.

References validation.Sample._punum.

Referenced by validation.Sample.digest().

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

Definition at line 556 of file validation.py.

References validation.Sample._putype.

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

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

Definition at line 530 of file validation.py.

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

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

Definition at line 584 of file validation.py.

References validation.Sample._scenario.

Referenced by validation.Sample.digest().

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

Definition at line 575 of file validation.py.

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

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

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

Member Data Documentation

validation.Sample._append
private

Definition at line 498 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._appendGlobalTag
private

Definition at line 508 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._doBHadron
private

Definition at line 519 of file validation.py.

Referenced by validation.Sample.doBHadron().

validation.Sample._doConversion
private

Definition at line 515 of file validation.py.

Referenced by validation.Sample.doConversion().

validation.Sample._doElectron
private

Definition at line 511 of file validation.py.

Referenced by validation.Sample.doElectron().

validation.Sample._dqmVersion
private

Definition at line 505 of file validation.py.

Referenced by validation.Sample.filename().

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

Definition at line 503 of file validation.py.

Referenced by validation.Sample.fastsimCorrespondingFullsimPileup().

validation.Sample._midfix
private

Definition at line 499 of file validation.py.

Referenced by validation.Sample.filename().

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

Definition at line 501 of file validation.py.

Referenced by validation.Sample.pileupNumber().

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

Definition at line 506 of file validation.py.

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

validation.Sample._version
private

Definition at line 504 of file validation.py.

Referenced by validation.Sample.version().