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

445  version="v1", dqmVersion="0001", scenario=None, overrideGlobalTag=None, appendGlobalTag=""):
446  """Constructor.
447 
448  Arguments:
449  sample -- String for name of the sample
450 
451  Keyword arguments
452  append -- String for a variable name within the DWM file names, to be directly appended to sample name (e.g. "HS"; default None)
453  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)
454  putype -- String for pileup type (e.g. "25ns"/"50ns" for FullSim, "AVE20" for FastSim; default None)
455  punum -- String for amount of pileup (default None)
456  fastsim -- Bool indicating the FastSim status (default False)
457  fastsimCorrespondingFullSimPileup -- String indicating what is the FullSim pileup sample corresponding this FastSim sample. Must be set if fastsim=True and putype!=None (default None)
458  doElectron -- Bool specifying if electron-specific plots should be produced (default depends on sample)
459  doConversion -- Bool specifying if conversion-specific plots should be produced (default depends on sample)
460  doBHadron -- Bool specifying if B-hadron-specific plots should be produced (default depends on sample)
461  version -- String for dataset/DQM file version (default "v1")
462  scenario -- Geometry scenario for upgrade samples (default None)
463  overrideGlobalTag -- GlobalTag obtained from release information (in the form of {"release": "actualRelease"}; default None)
464  appendGlobalTag -- String to append to GlobalTag (intended for one-time hacks; default "")
465  """
466  self._sample = sample
467  self._append = append
468  self._midfix = midfix
469  self._putype = putype
470  self._punum = punum
471  self._fastsim = fastsim
472  self._fastsimCorrespondingFullsimPileup = fastsimCorrespondingFullsimPileup
473  self._version = version
474  self._dqmVersion = dqmVersion
475  self._scenario = scenario
476  self._overrideGlobalTag = overrideGlobalTag
477  self._appendGlobalTag = appendGlobalTag
478 
479  if doElectron is not None:
480  self._doElectron = doElectron
481  else:
482  self._doElectron = (sample in _doElectronSamples)
483  if doConversion is not None:
484  self._doConversion = doConversion
485  else:
486  self._doConversion = (sample in _doConversionSamples)
487  if doBHadron is not None:
488  self._doBHadron = doBHadron
489  else:
490  self._doBHadron = (sample in _doBHadronSamples)
491 
492  if self._fastsim and self.hasPileup() and self._fastsimCorrespondingFullsimPileup is None:
494 
_fastsimCorrespondingFullsimPileup
Definition: validation.py:472
def hasPileup(self)
Definition: validation.py:510

Member Function Documentation

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 625 of file validation.py.

References validation.Sample._fastsim, validation._getGlobalTag(), validation.Sample._sample, html.IndexSection._sample, validation.Sample.hasPileup(), SiPixelFedCabling.version(), pos::PixelVersionAlias.version(), GEMEMap.version(), ME0EMap.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(), options.ConnectionHLTMenu.version, confdbOfflineConverter.OfflineConverter.version, online::Data_v1.version, L1TUtmBin.version, HcalTrigTowerDetId.version(), SiPixelCPEGenericErrorParm.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(), 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(), FRDEventMsgView.version(), XMLProcessor::_DBConfig.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(), python.rootplot.argparse._VersionAction.version, npstat::ArrayND< Numeric, StackLen, StackDim >.version(), argparse.ArgumentParser.version, and python.rootplot.argparse.ArgumentParser.version.

625  def datasetpattern(self, newRelease):
626  """Return the dataset pattern
627 
628  Arguments:
629  newRelease -- String for CMSSW release
630  """
631  pileup = ""
632  fastsim = ""
633  digi = ""
634  if self.hasPileup():
635  pileup = "-PU_"
636  if self._fastsim:
637  fastsim = "_FastSim-"
638  digi = "DIGI-"
639  else:
640  fastsim = "*"
641  globalTag = _getGlobalTag(self, newRelease)
642  return "{sample}/{newrelease}-{pileup}{globaltag}{fastsim}{version}/GEN-SIM-{digi}RECO".format(
643  sample=self._sample, newrelease=newRelease,
644  pileup=pileup, globaltag=globalTag, fastsim=fastsim, digi=digi,
645  version=self.version(newRelease)
646  )
647 
def _getGlobalTag(sample, release)
Definition: validation.py:326
def hasPileup(self)
Definition: validation.py:510
def datasetpattern(self, newRelease)
Definition: validation.py:625
def version(self, release=None)
Definition: validation.py:544
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 495 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, core.autovars.NTupleVariable.name, cond::persistency::GLOBAL_TAG::NAME.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, 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, MaxConsecLostHitsTrajectoryFilter.name(), MaxLostHitsTrajectoryFilter.name(), MaxHitsTrajectoryFilter.name(), cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, edm::ModuleTime.name(), nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, RecHitTopologicalCleanerBase.name(), SeedFinderBase.name(), CALayer.name(), FWTGeoRecoGeometry::Info.name, CaloValidationStatistics.name(), Types._Untracked.name, DDSolidShapesName.name(), preexistingValidation.PreexistingValidation.name, cond::persistency::TAG::INSERTION_TIME.name, tauImpactParameter::TrackParticle.name(), TrackingSlaveSD.name(), SeedExtensionTrajectoryFilter.name(), dataset.BaseDataset.name, cond::persistency::TAG::MODIFICATION_TIME.name, ClopperPearsonBinomialInterval.name(), ResolutionModel.name(), PCaloHit.name(), OutputMEPSet.name, BlockElementLinkerBase.name(), tauImpactParameter::LorentzVectorParticle.name(), LostHitsFractionTrajectoryFilter.name(), PixelModuleName.name(), SummaryTableOutputBranches::NamedBranchPtr.name, edm::BaseWithDict.name(), CaloSlaveSD.name(), personalPlayback.Applet.name, PdtEntry.name(), HistoDef.name(), RegionalTrajectoryFilter.name(), production_tasks.Task.name, fit::RootMinuitCommand.name, edm::MemberWithDict.name(), ExpressionEvaluatorCutWithEventContent.name(), MaxCCCLostHitsTrajectoryFilter.name(), ParameterSet.name, EventSelector.name(), PixelDCSObject< T >::Item.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, DQMRivetClient::LumiOption.name, LooperTrajectoryFilter.name(), MagCylinder.name, CharmTagger::MVAVar.name, HcalForwardLibWriter::FileHandle.name, emtf::LossFunction.name(), HcalDetIdAssociator.name(), rpcrawtodigi::ReadoutError.name(), RPCLinkSynchroStat::LinkBoard.name(), TriggerOutputBranches::NamedBranchPtr.name, PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.name, HGCalTriggerGeometryBase.name(), PrintSensitive.name, PFCPositionCalculatorBase.name(), PFClusterEnergyCorrectorBase.name(), ClusterShapeTrajectoryFilter.name(), JetResolution.name(), Filter.name(), ALIFileOut.name(), PixelBarrelNameUpgrade.name(), DDI::rep_type< N, I >.name(), DCCTBDataField.name(), reco::tau::RecoTauNamedPlugin.name(), ParSet.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, runEdmFileComparison.EdmObject.name, HLTPerformanceInfo::Module.name(), L1GctEtHad.name(), L1GctEtTotal.name(), rpcrawtodigi::DataRecord.name(), EgHLTOfflineSummaryClient::SumHistBinData.name, RHStopTracer::StopPoint.name, ClassName< T >.name(), CSCChannelMapperStartup.name(), BeamSpotOnline.name(), PhysicsTools::Source.name, SingleObjectCondition.name, OmtfName.name(), CalibrationCategory< CI >.name(), cond::persistency::GTProxyData.name, FTLUncalibratedRecHitAlgoBase.name(), pos::PixelDACScanRange.name(), core.autovars.NTupleObjectType.name, PixelEndcapName.name(), SummaryGenerator.name(), Mapper::definition< ScannerT >.name, TrajectoryFilter.name(), MyWatcher.name, FTLRecHitAlgoBase.name(), L1GctInternEmCand.name(), FWParameterBase.name(), edm::eventsetup::ModuleMakerTraits.name(), HGCalTriggerBackendAlgorithmBase.name(), edm::PathTimingSummary.name, OpticalAlignParam.name(), nanoaod::FlatTable.name(), PixelBarrelName.name(), CSCIndexerStartup.name(), reco::CompositeCandidate.name(), nanoaod::MergeableCounterTable::VectorColumn< T >.name, dirstructure.Weighted.name, BinomialInterval.name(), alignment.Alignment.name, CompositeTrajectoryFilter.name(), LumiScalers.name(), lumi::TriggerInfo.name, CSCChannelMapperBase.name(), cond::TimeTypeSpecs.name, DDName.name(), PrintMaterialBudgetInfo.name, edm::PathSummary.name, CSCIndexerPostls1.name(), L1GctJetCand.name(), ALIFileIn.name(), L1TriggerScalers.name(), PixelEndcapLinkMaker::Item.name, DQMGenericClient::EfficOption.name, perftools::EdmEventSize::BranchRecord.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, MinPtTrajectoryFilter.name(), FWTableViewManager::TableEntry.name, hcaldqm::quantity::Quantity.name(), PixelBarrelLinkMaker::Item.name, validateAlignments.ParallelMergeJob.name, CaloDetIdAssociator.name(), pos::PixelROCMaskBits.name(), reco::NamedCompositeCandidate.name(), cond::persistency::GLOBAL_TAG_MAP::RECORD.name, Level1TriggerScalers.name(), FWPhysicsObjectDesc.name(), EcalLogicID.name, edm::EventTime.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, GlobalVariablesTableProducer::Variable.name(), funct::DefaultVariable.name(), pos::PixelROCTrimBits.name(), L1GctEtMiss.name(), CompositeLogicalTrajectoryFilter.name(), L1GctJetCounts.name(), cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, MEtoEDM< T >::MEtoEDMObject.name, funct::X.name(), BPhysicsSpectrum.name, ExpressionHisto< T >.name, cond::persistency::GTEditor.name(), funct::Y.name(), edm::eventsetup::heterocontainer::HCTypeTag.name(), python.rootplot.utilities.Hist2D.name, GlobalTrackingRegion.name(), XMLProcessor::_loaderBaseConfig.name, SeedingLayerSetsHits::SeedingLayer.name(), L1GctHtMiss.name(), DCCTBBlockPrototype.name(), cond::persistency::PAYLOAD::HASH.name, edm::TypeIDBase.name(), edm::eventsetup::EventSetupRecordKey.name(), funct::Z.name(), Entry.name(), TreeCrawler.Package.name, L1GctEmCand.name(), genericValidation.GenericValidation.name, CaloTrkProcessing::Detector.name, CkfBaseTrajectoryFilter.name(), cond::persistency::PAYLOAD::OBJECT_TYPE.name, fwlite::Record.name(), L1TriggerRates.name(), DDValue.name(), cond::persistency::PAYLOAD::DATA.name, NanoAODDQM::Plot.name(), FWViewEnergyScale.name(), PrintGeomInfoAction.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, MuonDetIdAssociator.name(), cond::persistency::PAYLOAD::VERSION.name, options.ConnectionHLTMenu.name, MagGeoBuilderFromDDD::volumeHandle.name, edm::eventsetup::SourceMakerTraits.name(), L1GtPatternLine.name(), cond::persistency::PAYLOAD::INSERTION_TIME.name, SimpleL1MuGMTCand.name(), DisplayManager.DisplayManager.name, edm::TRandomAdaptor.name(), CalibratedObject.name(), DQMGenericClient::ProfileOption.name, Level1TriggerRates.name(), OpticalObject.name(), egHLT::MonElemContainer< T >.name(), tnp::ProbeVariable.name(), L1AcceptBunchCrossing.name(), DeepFlavourJetTagsProducer::MVAVar.name, CachingVariable.name(), emtf::LeastSquares.name(), DQMGenericClient::NormOption.name, edm::eventsetup::DataKey.name(), FTLDigitizerBase.name(), emtf::Node.name, BTagProbabilityToDiscriminator::Discriminator.name, SimpleFlatTableProducerBase< T, TProd >::VariableBase.name(), core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, h4DSegm.name, PhysicsTools::Calibration::Variable.name, FastHFShowerLibrary.name, PhysicsTools::Variable::Value.name, L1MuDTTrack.name(), CSCIndexerBase.name(), FWGeometryTableManagerBase::NodeInfo.name(), L1MuGMTCand.name(), DQMGenericClient::CDOption.name, ModifyObjectValueBase.name(), DcsStatus.name(), TriggerObjectTableProducer::SelectedObject.name, L1MuBMTrack.name(), CounterChecker.name, MillePedeVariables.name(), cond::TagInfo_t.name, EDMtoMEConverter.name, FWViewType.name(), edm::Path.name(), reco::ElectronSeed.name(), HLTPerformanceInfo::Path.name(), looper.Looper.name, ProcTMVA::Method.name, TreeSaver::Var.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, StripSubClusterShapeTrajectoryFilter.name(), cond::persistency::IOV::SINCE.name, classes.MonitorData.name, cond::persistency::IOV::PAYLOAD_HASH.name, PhysicsTools::TreeReader::Value.name, cond::persistency::IOV::INSERTION_TIME.name, edm::eventsetup::LooperMakerTraits.name(), HistogramManager.name, BPhysicsValidation.name, cond::persistency::GTProxy.name(), MuonGeometrySanityCheckPoint.name, PhysicsTools::TrainProcessor.name, edm::TriggerResults.name(), DetGeomDesc.name(), pat::TriggerCondition.name(), FastTimerSD.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, emtf::AbsoluteDeviation.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, NanoAODDQM::SelGroupConfig.name, SiStripMonitorDigi.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, PhysicsTools::TrainerMonitoring::Object.name, HRes1DHit.name, cond::persistency::TAG_LOG::USER_TEXT.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, HEff1DHit.name, hcaldqm::quantity::FlagQuantity.name(), utils_v2.KolmogorovTest.name, plotscripts.SawTeethFunction.name, dirstructure.Comparison.name, utils_v2.Chi2Test.name, dqm_interfaces.DirID.name, hcaldqm::quantity::LumiSection.name(), utils.BinToBin1percent.name, hcaldqm::quantity::RunNumber.name(), python.rootplot.utilities.RootFile.name, crabFunctions.CrabTask.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().

495  def digest(self):
496  """Return a tuple uniquely identifying the sample, to be used e.g. as a key to dict"""
497  return (self.name(), self.pileupNumber(), self.pileupType(), self.scenario(), self.fastsim())
498 
def name(self)
Definition: validation.py:503
def pileupType(self, release=None)
Definition: validation.py:525
def pileupNumber(self)
Definition: validation.py:532
def digest(self)
Definition: validation.py:495
def scenario(self)
Definition: validation.py:553
def fastsim(self)
Definition: validation.py:562
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 573 of file validation.py.

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

573  def dirname(self, newRepository, newRelease, newSelection):
574  """Return the output directory name
575 
576  Arguments:
577  newRepository -- String for base directory for output files
578  newRelease -- String for CMSSW release
579  newSelection -- String for histogram selection
580  """
581  pileup = ""
582  if self.hasPileup() and not self._fastsim:
583  pileup = "_"+self._putype
584  return "{newRepository}/{newRelease}/{newSelection}{pileup}/{sample}".format(
585  newRepository=newRepository, newRelease=newRelease, newSelection=newSelection,
586  pileup=pileup, sample=sample)
587 
def hasPileup(self)
Definition: validation.py:510
def dirname(self, newRepository, newRelease, newSelection)
Definition: validation.py:573
def validation.Sample.doBHadron (   self)

Definition at line 541 of file validation.py.

References validation.Sample._doBHadron.

541  def doBHadron(self):
542  return self._doBHadron
543 
def doBHadron(self)
Definition: validation.py:541
def validation.Sample.doConversion (   self)

Definition at line 538 of file validation.py.

References validation.Sample._doConversion.

538  def doConversion(self):
539  return self._doConversion
540 
def doConversion(self)
Definition: validation.py:538
def validation.Sample.doElectron (   self)

Definition at line 535 of file validation.py.

References validation.Sample._doElectron.

535  def doElectron(self):
536  return self._doElectron
537 
def doElectron(self)
Definition: validation.py:535
def validation.Sample.fastsim (   self)
Return True for FastSim sample

Definition at line 562 of file validation.py.

References validation.Sample._fastsim.

Referenced by validation.Sample.digest().

562  def fastsim(self):
563  """Return True for FastSim sample"""
564  return self._fastsim
565 
def fastsim(self)
Definition: validation.py:562
def validation.Sample.fastsimCorrespondingFullsimPileup (   self)

Definition at line 570 of file validation.py.

References validation.Sample._fastsimCorrespondingFullsimPileup.

572 
_fastsimCorrespondingFullsimPileup
Definition: validation.py:472
def fastsimCorrespondingFullsimPileup(self)
Definition: validation.py:570
def validation.Sample.filename (   self,
  newRelease 
)
Return the DQM file name

Arguments:
newRelease -- String for CMSSW release

Definition at line 588 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(), GEMEMap.version(), ME0EMap.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, options.ConnectionHLTMenu.version, Level1TriggerScalers.version(), FWConfiguration.version(), online::Data_v1.version, L1TUtmBin.version, HcalTrigTowerDetId.version(), SiPixelCPEGenericErrorParm.version(), L1TriggerRates.version(), L1CaloGeometry.version(), TrackerInteractionGeometry.version, SiPixelGenErrorDBObject.version(), Level1TriggerRates.version(), SiPixel2DTemplateDBObject.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(), 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(), 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.

588  def filename(self, newRelease):
589  """Return the DQM file name
590 
591  Arguments:
592  newRelease -- String for CMSSW release
593  """
594  pileup = ""
595  fastsim = ""
596  midfix = ""
597  sample = self._sample
598  if self._append is not None:
599  midfix += self._append
600  if self._midfix is not None:
601  midfix += "_"+self._midfix
602  if self.hasPileup():
603  if self._fastsim:
604  #sample = sample.replace("RelVal", "RelValFS_")
605  # old style
606  #pileup = "PU_"
607  #midfix += "_"+self.pileupType(newRelease)
608  # new style
609  pileup = "PU"+self.pileupType(newRelease)+"_"
610  else:
611  pileup = "PU"+self.pileupType(newRelease)+"_"
612  if self._fastsim:
613  fastsim = "_FastSim"
614 
615  globalTag = _getGlobalTag(self, newRelease)
616 
617  fname = 'DQM_V{dqmVersion}_R000000001__{sample}{midfix}__{newrelease}-{pileup}{globaltag}{appendGlobalTag}{fastsim}-{version}__DQMIO.root'.format(
618  sample=sample, midfix=midfix, newrelease=_stripRelease(newRelease),
619  pileup=pileup, globaltag=globalTag, appendGlobalTag=self._appendGlobalTag, fastsim=fastsim,
620  version=self.version(newRelease), dqmVersion=self._dqmVersion
621  )
622 
623  return fname
624 
def _getGlobalTag(sample, release)
Definition: validation.py:326
def hasPileup(self)
Definition: validation.py:510
def filename(self, newRelease)
Definition: validation.py:588
def pileupType(self, release=None)
Definition: validation.py:525
def _stripRelease(release)
Definition: validation.py:319
def version(self, release=None)
Definition: validation.py:544
def validation.Sample.fullsim (   self)
Return True for FullSim sample

Definition at line 566 of file validation.py.

References validation.Sample._fastsim.

566  def fullsim(self):
567  """Return True for FullSim sample"""
568  return not self._fastsim
569 
def fullsim(self)
Definition: validation.py:566
def validation.Sample.hasOverrideGlobalTag (   self)

Definition at line 556 of file validation.py.

References validation.Sample._overrideGlobalTag.

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

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

510  def hasPileup(self):
511  """Return True if sample has pileup (for HTML generation)"""
512  return self._putype is not None
513 
def hasPileup(self)
Definition: validation.py:510
def validation.Sample.hasScenario (   self)

Definition at line 550 of file validation.py.

References validation.Sample._scenario.

550  def hasScenario(self):
551  return self._scenario is not None
552 
def hasScenario(self)
Definition: validation.py:550
def validation.Sample.label (   self)

Definition at line 507 of file validation.py.

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

507  def label(self):
508  return self._sample
509 
def label(self)
Definition: validation.py:507
def validation.Sample.name (   self)
Get the sample name

Definition at line 503 of file validation.py.

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

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

503  def name(self):
504  """Get the sample name"""
505  return self._sample
506 
def name(self)
Definition: validation.py:503
def validation.Sample.overrideGlobalTag (   self)

Definition at line 559 of file validation.py.

References validation.Sample._overrideGlobalTag.

559  def overrideGlobalTag(self):
560  return self._overrideGlobalTag
561 
def overrideGlobalTag(self)
Definition: validation.py:559
def validation.Sample.pileup (   self)
Return "PU"/"noPU" corresponding the pileup status

Definition at line 518 of file validation.py.

References validation.Sample.hasPileup().

518  def pileup(self):
519  """Return "PU"/"noPU" corresponding the pileup status"""
520  if self.hasPileup():
521  return "PU"
522  else:
523  return "noPU"
524 
def hasPileup(self)
Definition: validation.py:510
def pileup(self)
Definition: validation.py:518
def validation.Sample.pileupEnabled (   self)
Return True if pileup plots are enabled (for plot generation)

Definition at line 514 of file validation.py.

References validation.Sample.hasPileup().

514  def pileupEnabled(self):
515  """Return True if pileup plots are enabled (for plot generation)"""
516  return self.hasPileup()
517 
def hasPileup(self)
Definition: validation.py:510
def pileupEnabled(self)
Definition: validation.py:514
def validation.Sample.pileupNumber (   self)

Definition at line 532 of file validation.py.

References validation.Sample._punum.

Referenced by validation.Sample.digest().

532  def pileupNumber(self):
533  return self._punum
534 
def pileupNumber(self)
Definition: validation.py:532
def validation.Sample.pileupType (   self,
  release = None 
)
Return the pileup type

Definition at line 525 of file validation.py.

References validation.Sample._putype.

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

525  def pileupType(self, release=None):
526  """Return the pileup type"""
527  if isinstance(self._putype, dict):
528  return self._putype.get(release, self._putype["default"])
529  else:
530  return self._putype
531 
def pileupType(self, release=None)
Definition: validation.py:525
def validation.Sample.sample (   self)
Get the sample name

Definition at line 499 of file validation.py.

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

499  def sample(self):
500  """Get the sample name"""
501  return self._sample
502 
def sample(self)
Definition: validation.py:499
def validation.Sample.scenario (   self)

Definition at line 553 of file validation.py.

References validation.Sample._scenario.

Referenced by validation.Sample.digest().

553  def scenario(self):
554  return self._scenario
555 
def scenario(self)
Definition: validation.py:553
def validation.Sample.version (   self,
  release = None 
)

Definition at line 544 of file validation.py.

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

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

544  def version(self, release=None):
545  if isinstance(self._version, dict):
546  return self._version.get(release, self._version["default"])
547  else:
548  return self._version
549 
def version(self, release=None)
Definition: validation.py:544

Member Data Documentation

validation.Sample._append
private

Definition at line 467 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._appendGlobalTag
private

Definition at line 477 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._doBHadron
private

Definition at line 488 of file validation.py.

Referenced by validation.Sample.doBHadron().

validation.Sample._doConversion
private

Definition at line 484 of file validation.py.

Referenced by validation.Sample.doConversion().

validation.Sample._doElectron
private

Definition at line 480 of file validation.py.

Referenced by validation.Sample.doElectron().

validation.Sample._dqmVersion
private

Definition at line 474 of file validation.py.

Referenced by validation.Sample.filename().

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

Definition at line 472 of file validation.py.

Referenced by validation.Sample.fastsimCorrespondingFullsimPileup().

validation.Sample._midfix
private

Definition at line 468 of file validation.py.

Referenced by validation.Sample.filename().

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

Definition at line 470 of file validation.py.

Referenced by validation.Sample.pileupNumber().

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

Definition at line 475 of file validation.py.

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

validation.Sample._version
private

Definition at line 473 of file validation.py.

Referenced by validation.Sample.version().