CMS 3D CMS Logo

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

Public Member Functions

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

Private Attributes

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

Detailed Description

Represents a RelVal sample.

Definition at line 474 of file validation.py.

Constructor & Destructor Documentation

def validation.Sample.__init__ (   self,
  sample,
  append = None,
  midfix = None,
  putype = None,
  punum = 0,
  fastsim = False,
  fastsimCorrespondingFullsimPileup = None,
  doElectron = None,
  doConversion = None,
  doBHadron = None,
  version = "v1",
  dqmVersion = "0001",
  scenario = None,
  overrideGlobalTag = None,
  appendGlobalTag = "" 
)
Constructor.

Arguments:
sample -- String for name of the sample

Keyword arguments
append  -- String for a variable name within the DWM file names, to be directly appended to sample name (e.g. "HS"; default None)
midfix  -- String for a variable name within the DQM file names, to be appended after underscore to "sample name+append" (e.g. "13", "UP15"; default None)
putype  -- String for pileup type (e.g. "25ns"/"50ns" for FullSim, "AVE20" for FastSim; default None)
punum   -- String for amount of pileup (default None)
fastsim -- Bool indicating the FastSim status (default False)
fastsimCorrespondingFullSimPileup -- String indicating what is the FullSim pileup sample corresponding this FastSim sample. Must be set if fastsim=True and putype!=None (default None)
doElectron -- Bool specifying if electron-specific plots should be produced (default depends on sample)
doConversion -- Bool specifying if conversion-specific plots should be produced (default depends on sample)
doBHadron -- Bool specifying if B-hadron-specific plots should be produced (default depends on sample)
version -- String for dataset/DQM file version (default "v1")
scenario -- Geometry scenario for upgrade samples (default None)
overrideGlobalTag -- GlobalTag obtained from release information (in the form of {"release": "actualRelease"}; default None)
appendGlobalTag -- String to append to GlobalTag (intended for one-time hacks; default "")

Definition at line 479 of file validation.py.

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

Member Function Documentation

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 659 of file validation.py.

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

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

Definition at line 529 of file validation.py.

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

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

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

Definition at line 607 of file validation.py.

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

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

Definition at line 575 of file validation.py.

References validation.Sample._doBHadron.

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

Definition at line 572 of file validation.py.

References validation.Sample._doConversion.

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

Definition at line 569 of file validation.py.

References validation.Sample._doElectron.

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

Definition at line 596 of file validation.py.

References validation.Sample._fastsim.

Referenced by validation.Sample.digest().

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

Definition at line 604 of file validation.py.

References validation.Sample._fastsimCorrespondingFullsimPileup.

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 622 of file validation.py.

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

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

Definition at line 600 of file validation.py.

References validation.Sample._fastsim.

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

Definition at line 590 of file validation.py.

References validation.Sample._overrideGlobalTag.

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

Definition at line 544 of file validation.py.

References validation.Sample._putype.

Referenced by validation.Sample.datasetpattern(), validation.Sample.dirname(), validation.Sample.filename(), validation.Sample.pileup(), and validation.Sample.pileupEnabled().

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

Definition at line 584 of file validation.py.

References validation.Sample._scenario.

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

Definition at line 541 of file validation.py.

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

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

Definition at line 537 of file validation.py.

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

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

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

Definition at line 593 of file validation.py.

References validation.Sample._overrideGlobalTag.

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

Definition at line 552 of file validation.py.

References validation.Sample.hasPileup().

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

Definition at line 548 of file validation.py.

References validation.Sample.hasPileup().

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

Definition at line 566 of file validation.py.

References validation.Sample._punum.

Referenced by validation.Sample.digest().

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

Definition at line 559 of file validation.py.

References validation.Sample._putype.

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

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

Definition at line 533 of file validation.py.

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

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

Definition at line 587 of file validation.py.

References validation.Sample._scenario.

Referenced by validation.Sample.digest().

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

Definition at line 578 of file validation.py.

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

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

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

Member Data Documentation

validation.Sample._append
private

Definition at line 501 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._appendGlobalTag
private

Definition at line 511 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._doBHadron
private

Definition at line 522 of file validation.py.

Referenced by validation.Sample.doBHadron().

validation.Sample._doConversion
private

Definition at line 518 of file validation.py.

Referenced by validation.Sample.doConversion().

validation.Sample._doElectron
private

Definition at line 514 of file validation.py.

Referenced by validation.Sample.doElectron().

validation.Sample._dqmVersion
private

Definition at line 508 of file validation.py.

Referenced by validation.Sample.filename().

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

Definition at line 506 of file validation.py.

Referenced by validation.Sample.fastsimCorrespondingFullsimPileup().

validation.Sample._midfix
private

Definition at line 502 of file validation.py.

Referenced by validation.Sample.filename().

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

Definition at line 504 of file validation.py.

Referenced by validation.Sample.pileupNumber().

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

Definition at line 509 of file validation.py.

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

validation.Sample._version
private

Definition at line 507 of file validation.py.

Referenced by validation.Sample.version().