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, version="v1", dqmVersion="0001", scenario=None, overrideGlobalTag=None, appendGlobalTag="")
 
def datasetpattern (self, newRelease)
 
def digest (self)
 
def dirname (self, newRepository, newRelease, newSelection)
 
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
 
 _doConversion
 
 _doElectron
 
 _dqmVersion
 
 _fastsim
 
 _fastsimCorrespondingFullsimPileup
 
 _midfix
 
 _overrideGlobalTag
 
 _punum
 
 _putype
 
 _sample
 
 _scenario
 
 _version
 

Detailed Description

Represents a RelVal sample.

Definition at line 275 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,
  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)
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 280 of file validation.py.

280  version="v1", dqmVersion="0001", scenario=None, overrideGlobalTag=None, appendGlobalTag=""):
281  """Constructor.
282 
283  Arguments:
284  sample -- String for name of the sample
285 
286  Keyword arguments
287  append -- String for a variable name within the DWM file names, to be directly appended to sample name (e.g. "HS"; default None)
288  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)
289  putype -- String for pileup type (e.g. "25ns"/"50ns" for FullSim, "AVE20" for FastSim; default None)
290  punum -- String for amount of pileup (default None)
291  fastsim -- Bool indicating the FastSim status (default False)
292  fastsimCorrespondingFullSimPileup -- String indicating what is the FullSim pileup sample corresponding this FastSim sample. Must be set if fastsim=True and putype!=None (default None)
293  doElectron -- Bool specifying if electron-specific plots should be produced (default depends on sample)
294  doConversion -- Bool specifying if conversion-specific plots should be produced (default depends on sample)
295  version -- String for dataset/DQM file version (default "v1")
296  scenario -- Geometry scenario for upgrade samples (default None)
297  overrideGlobalTag -- GlobalTag obtained from release information (in the form of {"release": "actualRelease"}; default None)
298  appendGlobalTag -- String to append to GlobalTag (intended for one-time hacks; default "")
299  """
300  self._sample = sample
301  self._append = append
302  self._midfix = midfix
303  self._putype = putype
304  self._punum = punum
305  self._fastsim = fastsim
306  self._fastsimCorrespondingFullsimPileup = fastsimCorrespondingFullsimPileup
307  self._version = version
308  self._dqmVersion = dqmVersion
309  self._scenario = scenario
310  self._overrideGlobalTag = overrideGlobalTag
311  self._appendGlobalTag = appendGlobalTag
312 
313  if doElectron is not None:
314  self._doElectron = doElectron
315  else:
316  self._doElectron = (sample in _doElectronSamples)
317  if doConversion is not None:
318  self._doConversion = doConversion
319  else:
320  self._doConversion = (sample in _doConversionSamples)
321 
322  if self._fastsim and self.hasPileup() and self._fastsimCorrespondingFullsimPileup is None:
324 
_fastsimCorrespondingFullsimPileup
Definition: validation.py:306
def hasPileup(self)
Definition: validation.py:340

Member Function Documentation

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 452 of file validation.py.

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

452  def datasetpattern(self, newRelease):
453  """Return the dataset pattern
454 
455  Arguments:
456  newRelease -- String for CMSSW release
457  """
458  pileup = ""
459  fastsim = ""
460  digi = ""
461  if self.hasPileup():
462  pileup = "-PU_"
463  if self._fastsim:
464  fastsim = "_FastSim-"
465  digi = "DIGI-"
466  else:
467  fastsim = "*"
468  globalTag = _getGlobalTag(self, newRelease)
469  return "{sample}/{newrelease}-{pileup}{globaltag}{fastsim}{version}/GEN-SIM-{digi}RECO".format(
470  sample=self._sample, newrelease=newRelease,
471  pileup=pileup, globaltag=globalTag, fastsim=fastsim, digi=digi,
472  version=self.version(newRelease)
473  )
474 
def _getGlobalTag(sample, release)
Definition: validation.py:197
def hasPileup(self)
Definition: validation.py:340
def datasetpattern(self, newRelease)
Definition: validation.py:452
def version(self, release=None)
Definition: validation.py:371
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 325 of file validation.py.

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

325  def digest(self):
326  """Return a tuple uniquely identifying the sample, to be used e.g. as a key to dict"""
327  return (self.name(), self.pileupNumber(), self.pileupType(), self.scenario(), self.fastsim())
328 
def name(self)
Definition: validation.py:333
def pileupType(self, release=None)
Definition: validation.py:355
def pileupNumber(self)
Definition: validation.py:362
def digest(self)
Definition: validation.py:325
def scenario(self)
Definition: validation.py:380
def fastsim(self)
Definition: validation.py:389
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 400 of file validation.py.

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

400  def dirname(self, newRepository, newRelease, newSelection):
401  """Return the output directory name
402 
403  Arguments:
404  newRepository -- String for base directory for output files
405  newRelease -- String for CMSSW release
406  newSelection -- String for histogram selection
407  """
408  pileup = ""
409  if self.hasPileup() and not self._fastsim:
410  pileup = "_"+self._putype
411  return "{newRepository}/{newRelease}/{newSelection}{pileup}/{sample}".format(
412  newRepository=newRepository, newRelease=newRelease, newSelection=newSelection,
413  pileup=pileup, sample=sample)
414 
def hasPileup(self)
Definition: validation.py:340
def dirname(self, newRepository, newRelease, newSelection)
Definition: validation.py:400
def validation.Sample.doConversion (   self)

Definition at line 368 of file validation.py.

References validation.Sample._doConversion.

368  def doConversion(self):
369  return self._doConversion
370 
def doConversion(self)
Definition: validation.py:368
def validation.Sample.doElectron (   self)

Definition at line 365 of file validation.py.

References validation.Sample._doElectron.

365  def doElectron(self):
366  return self._doElectron
367 
def doElectron(self)
Definition: validation.py:365
def validation.Sample.fastsim (   self)
Return True for FastSim sample

Definition at line 389 of file validation.py.

References validation.Sample._fastsim.

Referenced by validation.Sample.digest().

389  def fastsim(self):
390  """Return True for FastSim sample"""
391  return self._fastsim
392 
def fastsim(self)
Definition: validation.py:389
def validation.Sample.fastsimCorrespondingFullsimPileup (   self)

Definition at line 397 of file validation.py.

References validation.Sample._fastsimCorrespondingFullsimPileup.

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 415 of file validation.py.

References validation.Sample._append, validation.Sample._appendGlobalTag, validation.Sample._dqmVersion, validation.Sample._fastsim, validation._getGlobalTag(), validation.Sample._midfix, validation.Sample._sample, html.IndexSection._sample, validation._stripRelease(), validation.Sample.hasPileup(), validation.Sample.pileupType(), pos::PixelVersionAlias.version(), SiPixelFedCabling.version(), PixelToFEDAssociate.version(), SiPixelFedCablingTree.version(), PixelToFEDAssociateFromAscii.version(), PixelToLNKAssociateFromAscii.version(), FEDHeader.version(), DTRecoUncertainties.version(), SiPixelFedCablingMap.version(), LTCDigi.version(), FWConfigurableParameterizable.version(), MagFieldConfig.version, Phase2Tracker::FEDDAQHeader.version(), L1TUtmCutValue.version, lumi::Lumi2DB::LumiSource.version, DTRecoConditions.version(), RPCReadOutMapping.version(), BeamSpotOnline.version(), L1TriggerScalers.version(), MatrixInjector.MatrixInjector.version, SiPixelTemplateDBObject::Reader.version(), LumiScalers.version(), confdbOfflineConverter.OfflineConverter.version, Level1TriggerScalers.version(), FWConfiguration.version(), L1TUtmBin.version, options.ConnectionHLTMenu.version, HcalTrigTowerDetId.version(), SiPixelCPEGenericErrorParm.version(), L1TriggerRates.version(), L1CaloGeometry.version(), Level1TriggerRates.version(), SiPixel2DTemplateDBObject.version(), TrackerInteractionGeometry.version, SiPixelGenErrorDBObject.version(), npstat::StorableMultivariateFunctor.version(), L1TUtmCondition.version, L1TUtmAlgorithm.version, DcsStatus.version(), npstat::UniformAxis.version(), L1TUtmScale.version, MatacqTBRawEvent::matacqHeader_t.version, DTCCBConfig.version(), Vispa.Main.Application.Application.version(), DQMNet::CoreObject.version, DTLVStatus.version(), DTT0.version(), L1TUtmObject.version, npstat::NUHistoAxis.version(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >.version(), DTTPGParameters.version(), DTRangeT0.version(), SiPixelTemplateDBObject.version(), npstat::DualAxis.version(), L1TUtmCut.version, EcalMatacqDigi.version(), npstat::GridAxis.version(), DTHVStatus.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.

415  def filename(self, newRelease):
416  """Return the DQM file name
417 
418  Arguments:
419  newRelease -- String for CMSSW release
420  """
421  pileup = ""
422  fastsim = ""
423  midfix = ""
424  sample = self._sample
425  if self._append is not None:
426  midfix += self._append
427  if self._midfix is not None:
428  midfix += "_"+self._midfix
429  if self.hasPileup():
430  if self._fastsim:
431  #sample = sample.replace("RelVal", "RelValFS_")
432  # old style
433  #pileup = "PU_"
434  #midfix += "_"+self.pileupType(newRelease)
435  # new style
436  pileup = "PU"+self.pileupType(newRelease)+"_"
437  else:
438  pileup = "PU"+self.pileupType(newRelease)+"_"
439  if self._fastsim:
440  fastsim = "_FastSim"
441 
442  globalTag = _getGlobalTag(self, newRelease)
443 
444  fname = 'DQM_V{dqmVersion}_R000000001__{sample}{midfix}__{newrelease}-{pileup}{globaltag}{appendGlobalTag}{fastsim}-{version}__DQMIO.root'.format(
445  sample=sample, midfix=midfix, newrelease=_stripRelease(newRelease),
446  pileup=pileup, globaltag=globalTag, appendGlobalTag=self._appendGlobalTag, fastsim=fastsim,
447  version=self.version(newRelease), dqmVersion=self._dqmVersion
448  )
449 
450  return fname
451 
def _getGlobalTag(sample, release)
Definition: validation.py:197
def hasPileup(self)
Definition: validation.py:340
def filename(self, newRelease)
Definition: validation.py:415
def pileupType(self, release=None)
Definition: validation.py:355
def _stripRelease(release)
Definition: validation.py:190
def version(self, release=None)
Definition: validation.py:371
def validation.Sample.fullsim (   self)
Return True for FullSim sample

Definition at line 393 of file validation.py.

References validation.Sample._fastsim.

393  def fullsim(self):
394  """Return True for FullSim sample"""
395  return not self._fastsim
396 
def fullsim(self)
Definition: validation.py:393
def validation.Sample.hasOverrideGlobalTag (   self)

Definition at line 383 of file validation.py.

References validation.Sample._overrideGlobalTag.

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

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

340  def hasPileup(self):
341  """Return True if sample has pileup (for HTML generation)"""
342  return self._putype is not None
343 
def hasPileup(self)
Definition: validation.py:340
def validation.Sample.hasScenario (   self)

Definition at line 377 of file validation.py.

References validation.Sample._scenario.

377  def hasScenario(self):
378  return self._scenario is not None
379 
def hasScenario(self)
Definition: validation.py:377
def validation.Sample.label (   self)

Definition at line 337 of file validation.py.

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

337  def label(self):
338  return self._sample
339 
def label(self)
Definition: validation.py:337
def validation.Sample.name (   self)
Get the sample name

Definition at line 333 of file validation.py.

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

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

333  def name(self):
334  """Get the sample name"""
335  return self._sample
336 
def name(self)
Definition: validation.py:333
def validation.Sample.overrideGlobalTag (   self)

Definition at line 386 of file validation.py.

References validation.Sample._overrideGlobalTag.

386  def overrideGlobalTag(self):
387  return self._overrideGlobalTag
388 
def overrideGlobalTag(self)
Definition: validation.py:386
def validation.Sample.pileup (   self)
Return "PU"/"noPU" corresponding the pileup status

Definition at line 348 of file validation.py.

References validation.Sample.hasPileup().

348  def pileup(self):
349  """Return "PU"/"noPU" corresponding the pileup status"""
350  if self.hasPileup():
351  return "PU"
352  else:
353  return "noPU"
354 
def hasPileup(self)
Definition: validation.py:340
def pileup(self)
Definition: validation.py:348
def validation.Sample.pileupEnabled (   self)
Return True if pileup plots are enabled (for plot generation)

Definition at line 344 of file validation.py.

References validation.Sample.hasPileup().

344  def pileupEnabled(self):
345  """Return True if pileup plots are enabled (for plot generation)"""
346  return self.hasPileup()
347 
def hasPileup(self)
Definition: validation.py:340
def pileupEnabled(self)
Definition: validation.py:344
def validation.Sample.pileupNumber (   self)

Definition at line 362 of file validation.py.

References validation.Sample._punum.

Referenced by validation.Sample.digest().

362  def pileupNumber(self):
363  return self._punum
364 
def pileupNumber(self)
Definition: validation.py:362
def validation.Sample.pileupType (   self,
  release = None 
)
Return the pileup type

Definition at line 355 of file validation.py.

References validation.Sample._putype.

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

355  def pileupType(self, release=None):
356  """Return the pileup type"""
357  if isinstance(self._putype, dict):
358  return self._putype.get(release, self._putype["default"])
359  else:
360  return self._putype
361 
def pileupType(self, release=None)
Definition: validation.py:355
def validation.Sample.sample (   self)
Get the sample name

Definition at line 329 of file validation.py.

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

329  def sample(self):
330  """Get the sample name"""
331  return self._sample
332 
def sample(self)
Definition: validation.py:329
def validation.Sample.scenario (   self)

Definition at line 380 of file validation.py.

References validation.Sample._scenario.

Referenced by validation.Sample.digest().

380  def scenario(self):
381  return self._scenario
382 
def scenario(self)
Definition: validation.py:380
def validation.Sample.version (   self,
  release = None 
)

Definition at line 371 of file validation.py.

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

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

371  def version(self, release=None):
372  if isinstance(self._version, dict):
373  return self._version.get(release, self._version["default"])
374  else:
375  return self._version
376 
def version(self, release=None)
Definition: validation.py:371

Member Data Documentation

validation.Sample._append
private

Definition at line 301 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._appendGlobalTag
private

Definition at line 311 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._doConversion
private

Definition at line 318 of file validation.py.

Referenced by validation.Sample.doConversion().

validation.Sample._doElectron
private

Definition at line 314 of file validation.py.

Referenced by validation.Sample.doElectron().

validation.Sample._dqmVersion
private

Definition at line 308 of file validation.py.

Referenced by validation.Sample.filename().

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

Definition at line 306 of file validation.py.

Referenced by validation.Sample.fastsimCorrespondingFullsimPileup().

validation.Sample._midfix
private

Definition at line 302 of file validation.py.

Referenced by validation.Sample.filename().

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

Definition at line 304 of file validation.py.

Referenced by validation.Sample.pileupNumber().

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

Definition at line 309 of file validation.py.

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

validation.Sample._version
private

Definition at line 307 of file validation.py.

Referenced by validation.Sample.version().