CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
validation.Sample Class Reference

Public Member Functions

def __init__
 
def datasetpattern
 
def digest
 
def dirname
 
def doBHadron
 
def doConversion
 
def doElectron
 
def fastsim
 
def fastsimCorrespondingFullsimPileup
 
def filename
 
def fullsim
 
def hasOverrideGlobalTag
 
def hasPileup
 
def hasScenario
 
def label
 
def name
 
def overrideGlobalTag
 
def pileup
 
def pileupEnabled
 
def pileupNumber
 
def pileupType
 
def sample
 
def scenario
 
def version
 

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 475 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 480 of file validation.py.

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

Member Function Documentation

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 660 of file validation.py.

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

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

References validation.Sample.fastsim(), ElectronMVAID.ElectronMVAID.name, OAQualityTranslator.name(), RPCNameHelper.name(), TrackerHitsObject.name(), FP420HitsObject.name(), AlignableObjectId::entry.name, average.Average.name, counter.Counter.name, histograms.Histograms.name, SymmetryFit.name(), funct::Parameter.name(), RPCGeomServ.name(), TmModule.name, cond::persistency::TAG::NAME.name, cond::persistency::RUN_INFO::RUN_NUMBER.name, FWLite.ElectronMVAID.name, cond::persistency::GLOBAL_TAG::NAME.name, cond::persistency::GTEditorData.name, cond::persistency::TAG::TIME_TYPE.name, cond::persistency::RUN_INFO::START_TIME.name, ExpressionEvaluatorCut.name(), cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::RUN_INFO::END_TIME.name, core.autovars.NTupleVariable.name, cond::persistency::TAG::OBJECT_TYPE.name, CmsTrackerStringToEnum.name(), listHistos.plotInfo.name, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, cond::persistency::TAG::SYNCHRONIZATION.name, HGCalProcessorBaseT< InputCollection, OutputCollection >.name(), MaterialInformation.name(), cond::persistency::GLOBAL_TAG::RELEASE.name, DQMRivetClient::NormOption.name, edm::ModuleTime.name(), AxesNames.name(), cond::persistency::TAG::END_OF_VALIDITY.name, MEPSet.name, CALayer.name(), cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, cond::persistency::O2O_RUN::JOB_NAME.name, cond::persistency::TAG::DESCRIPTION.name, cms::dd::NameValuePair< T >.name, GeomDetType.name(), candidate_functions::CandidateCut.name(), ExpressionEvaluatorCutWithEventContent.name(), PCaloHit.name(), cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, cond::persistency::O2O_RUN::START_TIME.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, SeedFinderBase.name(), CaloValidationStatistics.name(), cond::persistency::O2O_RUN::END_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, BlockElementLinkerBase.name(), TrackingSlaveSD.name(), FWTGeoRecoGeometry::Info.name, MaxConsecLostHitsTrajectoryFilter.name(), MaxLostHitsTrajectoryFilter.name(), SeedExtensionTrajectoryFilter.name(), cond::persistency::O2O_RUN::STATUS_CODE.name, cond::persistency::TAG::MODIFICATION_TIME.name, ResolutionModel.name(), cond::persistency::O2O_RUN::LOG.name, ParameterSet.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::PROTECTION_CODE.name, RecHitTopologicalCleanerBase.name(), tauImpactParameter::TrackParticle.name(), preexistingValidation.PreexistingValidation.name, OutputMEPSet.name, CaloSlaveSD.name(), HistoDef.name(), MaxHitsTrajectoryFilter.name(), PixelModuleName.name(), HGCalTriggerGeometryBase.name(), CaloDetInfo.name(), MaxCCCLostHitsTrajectoryFilter.name(), LostHitsFractionTrajectoryFilter.name(), AlignmentConstraint.name, DDAxesNames.name(), PixelDCSObject< class >::Item.name, dataset.BaseDataset.name, SummaryTableOutputBranches::NamedBranchPtr.name, edm::BaseWithDict.name(), RegionalTrajectoryFilter.name(), EventSelector.name(), FileData.name(), PacketData.name(), edm::MemberWithDict.name(), cms::dd::ValuePair< T, U >.name, fit::RootMinuitCommand.name, BlockElementImporterBase.name(), personalPlayback.Applet.name, ChargeSignificanceTrajectoryFilter.name(), JetResolution.name(), EventStringOutputBranches::NamedBranchPtr.name, HGCalTriggerNtupleBase.name(), OffsetAnalyzerDQM::Plot1D.name, LooperTrajectoryFilter.name(), Types._Untracked.name, EcalPulseShapesGPU.name(), EcalPulseCovariancesGPU.name(), RPCLinkSynchroStat::LinkBoard.name(), PreshowerDetIdAssociator.name(), EcalDetIdAssociator.name(), HODetIdAssociator.name(), MagCylinder.name, rpcrawtodigi::ReadoutError.name(), analyzer.Analyzer.name, production_tasks.Task.name, emtf::LossFunction.name(), HcalForwardLibWriter::FileHandle.name, HcalDetIdAssociator.name(), EcalRechitADCToGeVConstantGPU.name(), EcalRechitChannelStatusGPU.name(), heppy::ParSet.name, PixelBarrelNameUpgrade.name(), citk::IsolationConeDefinitionBase.name(), CalibratedHistogramXML.name(), MTDUncalibratedRecHitAlgoBase< DataFrame >.name(), PdtEntry.name(), ALIFileOut.name(), DQMRivetClient::LumiOption.name, o2olib.O2OJob.name, PFClusterEnergyCorrectorBase.name(), EcalGainRatiosGPU.name(), PixelEndcapNameUpgrade.name(), DDFilteredView.name(), DDSolidShapesName.name(), CalibrationCategory< CI >.name(), PFJetAnalyzerDQM::Plot1DInBin.name, cond::persistency::GTProxyData.name, EcalTimeCalibConstantsGPU.name(), ecal::raw::ElectronicsMappingGPU.name(), HLTPerformanceInfo::Module.name(), L1GctEtHad.name(), L1GctEtTotal.name(), hcaldqm::quantity::Quantity.name(), MuonSubDetector.name(), PFCPositionCalculatorBase.name(), EcalIntercalibConstantsGPU.name(), EcalLaserAlphasGPU.name(), EcalSamplesCorrelationGPU.name(), EcalTimeBiasCorrectionsGPU.name(), rpcrawtodigi::DataRecord.name(), BeamSpotOnline.name(), DDName.name(), TableOutputBranches::NamedBranchPtr.name, CharmTagger::MVAVar.name, ClusterShapeTrajectoryFilter.name(), reco::tau::RecoTauNamedPlugin.name(), CaloDetIdAssociator.name(), EcalLaserAPDPNRatiosRefGPU.name(), EcalPedestalsGPU.name(), TriggerOutputBranches::NamedBranchPtr.name, edm::FunctionWithDict.name(), HeavyIonCSVTagger::MVAVar.name, SingleObjectCondition.name, EgHLTOfflineSummaryClient::SumHistBinData.name, MinHitsTrajectoryFilter.name(), ThresholdPtTrajectoryFilter.name(), edm::PathTimingSummary.name, DQMRivetClient::ScaleFactorOption.name, EcalLaserAPDPNRatiosGPU.name(), EcalLinearCorrectionsGPU.name(), L1GctInternEmCand.name(), MTDRecHitAlgoBase.name(), L1TriggerScalers.name(), LumiScalers.name(), SummaryGenerator.name(), cms::DDAlgoArguments.name, runEdmFileComparison.EdmObject.name, RHStopTracer::StopPoint.name, pat::helper::OverlapTest.name(), Filter.name(), PassiveHit.name(), TrajectoryFilter.name(), CSCChannelMapperPostls1.name(), PixelBarrelName.name(), DCCTBDataField.name(), tauImpactParameter::LorentzVectorParticle.name(), ClassName< T >.name(), Barrel.name, OpticalAlignParam.name(), perftools::EdmEventSize::BranchRecord.name, core.autovars.NTupleObjectType.name, cond::TimeTypeSpecs.name, DDI::rep_type< N, I >.name(), FWParameterBase.name(), CSCChannelMapperStartup.name(), edm::PathSummary.name, Level1TriggerScalers.name(), PixelEndcapName.name(), edm::eventsetup::ModuleMakerTraits.name(), pos::PixelDACScanRange.name(), EcalLogicID.name, CompositeTrajectoryFilter.name(), edm::EventTime.name(), EgammaHLTHGCalIDVarProducer::PCAAssocMap.name(), CSCIndexerStartup.name(), alignment.Alignment.name, ALIFileIn.name(), L1GctJetCand.name(), lumi::TriggerInfo.name, edm::TypeIDBase.name(), EGEnergySysIndex.name(), reco::CompositeCandidate.name(), L1TriggerRates.name(), PixelEndcapLinkMaker::Item.name, FWPhysicsObjectDesc.name(), XMLProcessor::_loaderBaseConfig.name, dirstructure.Weighted.name, pos::PixelROCMaskBits.name(), L1GctJetCounts.name(), MEtoEDM< T >::MEtoEDMObject.name, DCCTBBlockPrototype.name(), edm::eventsetup::EventSetupRecordKey.name(), edm::eventsetup::heterocontainer::HCTypeTag.name(), OmtfName.name(), BPhysicsSpectrum.name, FWTableViewManager::TableEntry.name, pos::PixelROCTrimBits.name(), CSCIndexerPostls1.name(), reco::NamedCompositeCandidate.name(), L1GctEtMiss.name(), PixelBarrelLinkMaker::Item.name, CSCChannelMapperBase.name(), Level1TriggerRates.name(), CompositeLogicalTrajectoryFilter.name(), MinPtTrajectoryFilter.name(), SeedingLayerSetsHits::SeedingLayer.name(), cond::persistency::GTEditor.name(), L1GctEmCand.name(), L1GctHtMiss.name(), Entry.name(), ExpressionHisto< T >.name, funct::DefaultVariable.name(), DQMGenericClient::EfficOption.name, CkfBaseTrajectoryFilter.name(), funct::X.name(), funct::Y.name(), edm::eventsetup::DataKey.name(), python.rootplot.utilities.Hist2D.name, funct::Z.name(), FWViewEnergyScale.name(), DDValue.name(), TreeCrawler.Package.name, Supermodule.name, genericValidation.GenericValidation.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, NanoAODDQM::Plot.name(), egHLT::MonElemContainer< T >.name(), edm::eventsetup::SourceMakerTraits.name(), CaloTrkProcessing::Detector.name, fwlite::Record.name(), options.ConnectionHLTMenu.name, SimpleL1MuGMTCand.name(), L1GtPatternLine.name(), cond::persistency::GLOBAL_TAG_MAP::RECORD.name, L1AcceptBunchCrossing.name(), OpticalObject.name(), CalibratedObject.name(), edm::TRandomAdaptor.name(), nanoaod::FlatTable.name(), DDBase< N, C >.name(), MVAVar.name, GlobalVariablesTableProducer::Variable.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, ModifyObjectValueBase.name(), cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, DDExpandedView.name(), cms::DDParsingContext::CompositeMaterial.name, emtf::LeastSquares.name(), DisplayManager.DisplayManager.name, MuonDetIdAssociator.name(), cond::Tag_t.name, FWLite.WorkingPoints.name, dqmoffline::l1t::HistDefinition.name, DQMGenericClient::ProfileOption.name, HLTPerformanceInfo::Path.name(), magneticfield::BaseVolumeHandle.name, FastHFShowerLibrary.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, tnp::ProbeVariable.name(), emtf::Node.name, PhysicsTools::Variable::Value.name, FWGeometryTableManagerBase::NodeInfo.name(), GlobalTrackingRegion.name(), L1MuDTTrack.name(), PrintMaterialBudgetInfo.name, CachingVariable.name(), h4DSegm.name, BTagProbabilityToDiscriminator::Discriminator.name, DQMGenericClient::NormOption.name, L1MuGMTCand.name(), L1MuBMTrack.name(), DcsStatus.name(), reco::ElectronSeed.name(), DQMGenericClient::CDOption.name, CounterChecker.name, DD4hep_MaterialAccountingGroup.name(), MillePedeVariables.name(), PhysicsTools::Calibration::Variable.name, cond::TagInfo_t.name, TriggerObjectTableProducer::SelectedObject.name, DetGeomDesc.name(), TrackerSectorStruct.name, edm::Path.name(), MuonGeometrySanityCheckPoint.name, SimpleFlatTableProducerBase< T, TProd >::VariableBase.name(), BPhysicsValidation::ParticleMonitor.name, cond::persistency::PAYLOAD::HASH.name, DQMGenericClient::NoFlowOption.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, looper.Looper.name, PFJetAnalyzerDQM::Plot1DInBinVariable.name, Mapper::definition< ScannerT >.name, cond::persistency::PAYLOAD::DATA.name, EDMtoMEConverter.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, python.rootplot.tree2hists.Plot.name, cms::DDNamespace.name(), CutApplicatorBase.name(), cond::persistency::PAYLOAD::VERSION.name, edm::ESGetToken< T, R >.name(), edm::TriggerResults.name(), cond::persistency::PAYLOAD::INSERTION_TIME.name, MTDDigitizerBase.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(), GeometricDet.name(), pat::TriggerCondition.name(), L1GObject.name(), HistogramManager.name, StripSubClusterShapeTrajectoryFilter.name(), classes.OutputData.name, FWEventItem.name(), edm::TypeWithDict.name(), CosmicTrackingRegion.name(), HistoData.name, Crystal.name, L1TPhase2CorrelatorOffline::MultiCollection.name(), GeometricTimingDet.name(), h2DSegm.name, options.HLTProcessOptions.name, emtf::AbsoluteDeviation.name(), tnp::ProbeFlag.name(), cond::persistency::IOV::TAG_NAME.name, cond::persistency::IOV::SINCE.name, utils.StatisticalTest.name, cond::persistency::IOV::PAYLOAD_HASH.name, cond::persistency::IOV::INSERTION_TIME.name, edm::ESGetToken< fwliteeswriter::DummyType, fwliteeswriter::FWLWEventSetupRecord >.name(), pat::TriggerPath.name(), pat::TriggerAlgorithm.name(), DQMNet::WaitObject.name, DetIdAssociator.name(), cscdqm::Address.name(), python.rootplot.utilities.Hist.name, VIDSelectorBase.VIDSelectorBase.name(), AlpgenParameterName.name, VariableComputer.name(), config.Analyzer.name, MaterialAccountingGroup.name(), geometry.Structure.name, TrackingRegion.name(), IntegratedCalibrationBase.name(), hDigis.name, core.autovars.NTupleSubObject.name, cuy.divideElement.name, Capsule.name, cuy.plotElement.name, core.autovars.NTupleObject.name, Ceramic.name, cuy.additionElement.name, VersionedSelector< T >.name(), PhysicsTools::Variable.name, SiStripMonitorDigi.name, cms::DDFilteredView.name(), config.Service.name, BulkSilicon.name, cuy.superimposeElement.name, emtf::Huber.name(), Folder.name(), CaloSD::Detector.name, APD.name, nanoaod::FlatTable::Column.name, core.autovars.NTupleCollection.name, NanoAODDQM::SelGroupConfig.name, cuy.graphElement.name, BPHRecoBuilder::BPHRecoSource.name, FilterSelection.name(), BPHRecoBuilder::BPHCompSource.name, StraightTrackAlignment::RPSetPlots.name, BasicHepMCValidation::ParticleMonitor.name, cond::persistency::TAG_AUTHORIZATION::TAG_NAME.name, cond::persistency::TAG_AUTHORIZATION::ACCESS_TYPE.name, cond::persistency::TAG_AUTHORIZATION::CREDENTIAL.name, cond::persistency::TAG_AUTHORIZATION::CREDENTIAL_TYPE.name, InnerLayerVolume.name, emtf::PercentErrorSquared.name(), utils.KS.name, cond::payloadInspector::TagReference.name, trklet::VarBase.name(), RectangularEtaPhiTrackingRegion.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, cond::persistency::TAG_LOG::USER_TEXT.name, utils.Chi2.name, personalPlayback.FrameworkJob.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, utils.BinToBin1percent.name, hcaldqm::quantity::FlagQuantity.name(), DryAirTube.name, python.rootplot.utilities.RootFile.name, crabFunctions.CrabTask.name, MBCoolTube.name, hHits.name, MBManif.name, hcaldqm::quantity::LumiSection.name(), cscdqm::ParHistoDef.name, hcaldqm::quantity::LumiSectionCoarse.name(), hcaldqm::quantity::RunNumber.name(), hcaldqm::quantity::EventNumber.name(), hDeltaR.name, hcaldqm::quantity::EventType.name(), validation.Sample.name(), hTMaxCell.name, BeautifulSoup.Tag.name, dqm_interfaces.DirWalkerFile.name, hParam.name, hMuonStat.name, genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.name(), hTOF.name, hTDelay.name, hTimes< hTime >.name, SummaryOutputProducer::GenericSummary.name, BeautifulSoup.SoupStrainer.name, dataset.Dataset.name(), trackingPlots.Iteration.name(), validation.Sample.pileupNumber(), validation.Sample.pileupType(), CalibratedDigis.scenario, and validation.Sample.scenario().

531  def digest(self):
532  """Return a tuple uniquely identifying the sample, to be used e.g. as a key to dict"""
533  return (self.name(), self.pileupNumber(), self.pileupType(), self.scenario(), self.fastsim())
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 608 of file validation.py.

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

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

Definition at line 576 of file validation.py.

References validation.Sample._doBHadron.

577  def doBHadron(self):
578  return self._doBHadron
def validation.Sample.doConversion (   self)

Definition at line 573 of file validation.py.

References validation.Sample._doConversion.

574  def doConversion(self):
575  return self._doConversion
def validation.Sample.doElectron (   self)

Definition at line 570 of file validation.py.

References validation.Sample._doElectron.

571  def doElectron(self):
572  return self._doElectron
def validation.Sample.fastsim (   self)
Return True for FastSim sample

Definition at line 597 of file validation.py.

References validation.Sample._fastsim.

Referenced by validation.Sample.digest().

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

Definition at line 605 of file validation.py.

References validation.Sample._fastsimCorrespondingFullsimPileup.

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 623 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(), GEMELMap.version(), GEMeMap.version(), L1TUtmCutValue.version, PixelToFEDAssociateFromAscii.version(), PixelToFEDAssociate.version(), PixelToLNKAssociateFromAscii.version(), SiPixelFedCablingTree.version(), DTRecoUncertainties.version(), SiPixelFedCablingMap.version(), FEDHeader.version(), L1TUtmBin.version, FWConfigurableParameterizable.version(), LTCDigi.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(), L1TriggerRates.version(), L1TUtmCondition.version, cond::auth::DecodingKey.version(), options.ConnectionHLTMenu.version, MatrixInjector.MatrixInjector.version, Level1TriggerRates.version(), TrackerInteractionGeometry.version, SiPixelCPEGenericErrorParm.version(), HcalTrigTowerDetId.version(), L1CaloGeometry.version(), SiPixelGenErrorDBObject.version(), L1TUtmScale.version, online::Data_v1.version, SiPixel2DTemplateDBObject.version(), npstat::StorableMultivariateFunctor.version(), L1TUtmAlgorithm.version, online::Data_v2.version, confdbOfflineConverter.OfflineConverter.version, DcsStatus.version(), online::Data_v3.version, DTCCBConfig.version(), npstat::UniformAxis.version(), MatacqTBRawEvent::matacqHeader_t.version, DTLVStatus.version(), DTTPGParameters.version(), DTRangeT0.version(), DTT0.version(), DQMNet::CoreObject.version, GEMVFAT.version(), L1TUtmObject.version, npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >.version(), npstat::DualAxis.version(), npstat::NUHistoAxis.version(), SiPixelTemplateDBObject.version(), DTHVStatus.version(), L1TUtmCut.version, npstat::GridAxis.version(), EcalMatacqDigi.version(), DTTtrig.version(), XMLProcessor::_DBConfig.version, npstat::HistoAxis.version(), DTDeadFlag.version(), npstat::DualHistoAxis.version(), DTMtime.version(), DTStatusFlag.version(), DTPerformance.version(), FRDEventMsgView.version(), npstat::BoxND< Numeric >.version(), npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >.version(), L1TUtmTriggerMenu.version, ScalersEventRecordRaw_v1.version, ScalersEventRecordRaw_v2.version, ScalersEventRecordRaw_v3.version, sistrip::FEDDAQHeader.version(), ScalersEventRecordRaw_v4.version, ScalersEventRecordRaw_v5.version, npstat::LinInterpolatedTableND< Numeric, Axis >.version(), ScalersEventRecordRaw_v6.version, cmsHarvester.CMSHarvester.version, validation.Sample.version(), npstat::HistoND< Numeric, Axis >.version(), and npstat::ArrayND< Numeric, StackLen, StackDim >.version().

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

Definition at line 601 of file validation.py.

References validation.Sample._fastsim.

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

Definition at line 591 of file validation.py.

References validation.Sample._overrideGlobalTag.

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

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

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

Definition at line 585 of file validation.py.

References validation.Sample._scenario.

586  def hasScenario(self):
587  return self._scenario is not None
def validation.Sample.label (   self)

Definition at line 542 of file validation.py.

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

543  def label(self):
544  return self._sample
def validation.Sample.name (   self)
Get the sample name

Definition at line 538 of file validation.py.

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

Referenced by config.CFG.__str__(), geometryComparison.GeometryComparison.createScript(), validation.Sample.digest(), primaryVertexResolution.PrimaryVertexResolution.getRepMap(), primaryVertexValidation.PrimaryVertexValidation.getRepMap(), and zMuMuValidation.ZMuMuValidation.getRepMap().

539  def name(self):
540  """Get the sample name"""
541  return self._sample
def validation.Sample.overrideGlobalTag (   self)

Definition at line 594 of file validation.py.

References validation.Sample._overrideGlobalTag.

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

Definition at line 553 of file validation.py.

References validation.Sample.hasPileup().

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

Definition at line 549 of file validation.py.

References validation.Sample.hasPileup().

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

Definition at line 567 of file validation.py.

References validation.Sample._punum.

Referenced by validation.Sample.digest().

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

Definition at line 560 of file validation.py.

References validation.Sample._putype.

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

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

Definition at line 534 of file validation.py.

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

535  def sample(self):
536  """Get the sample name"""
537  return self._sample
def validation.Sample.scenario (   self)

Definition at line 588 of file validation.py.

References validation.Sample._scenario.

Referenced by validation.Sample.digest().

589  def scenario(self):
590  return self._scenario
def validation.Sample.version (   self,
  release = None 
)

Definition at line 579 of file validation.py.

References validation.Sample._version.

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

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

Member Data Documentation

validation.Sample._append
private

Definition at line 502 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._appendGlobalTag
private

Definition at line 512 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._doBHadron
private

Definition at line 523 of file validation.py.

Referenced by validation.Sample.doBHadron().

validation.Sample._doConversion
private

Definition at line 519 of file validation.py.

Referenced by validation.Sample.doConversion().

validation.Sample._doElectron
private

Definition at line 515 of file validation.py.

Referenced by validation.Sample.doElectron().

validation.Sample._dqmVersion
private

Definition at line 509 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._fastsim
private

Definition at line 506 of file validation.py.

Referenced by validation.Sample.datasetpattern(), validation.Sample.dirname(), validation.Sample.fastsim(), validation.Sample.filename(), and validation.Sample.fullsim().

validation.Sample._fastsimCorrespondingFullsimPileup
private

Definition at line 507 of file validation.py.

Referenced by validation.Sample.fastsimCorrespondingFullsimPileup().

validation.Sample._midfix
private

Definition at line 503 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._overrideGlobalTag
private

Definition at line 511 of file validation.py.

Referenced by validation.Sample.hasOverrideGlobalTag(), and validation.Sample.overrideGlobalTag().

validation.Sample._punum
private

Definition at line 505 of file validation.py.

Referenced by validation.Sample.pileupNumber().

validation.Sample._putype
private

Definition at line 504 of file validation.py.

Referenced by validation.Sample.dirname(), validation.Sample.hasPileup(), and validation.Sample.pileupType().

validation.Sample._sample
private

Definition at line 501 of file validation.py.

Referenced by validation.Sample.datasetpattern(), validation.Sample.filename(), validation.Sample.label(), validation.Sample.name(), and validation.Sample.sample().

validation.Sample._scenario
private

Definition at line 510 of file validation.py.

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

validation.Sample._version
private

Definition at line 508 of file validation.py.

Referenced by validation.Sample.version().