CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 fastsim
 
def fastsimCorrespondingFullsimPileup
 
def filename
 
def fullsim
 
def hasOverrideGlobalTag
 
def hasPileup
 
def hasScenario
 
def label
 
def name
 
def overrideGlobalTag
 
def pileup
 
def pileupType
 
def sample
 
def scenario
 
def version
 

Private Attributes

 _append
 
 _dqmVersion
 
 _fastsim
 
 _fastsimCorrespondingFullsimPileup
 
 _midfix
 
 _overrideGlobalTag
 
 _putype
 
 _sample
 
 _scenario
 
 _version
 

Detailed Description

Represents a RelVal sample.

Definition at line 171 of file validation.py.

Constructor & Destructor Documentation

def validation.Sample.__init__ (   self,
  sample,
  append = None,
  midfix = None,
  putype = None,
  fastsim = False,
  fastsimCorrespondingFullsimPileup = None,
  version = "v1",
  dqmVersion = "0001",
  scenario = None,
  overrideGlobalTag = None 
)
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)
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)
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)

Definition at line 175 of file validation.py.

176  version="v1", dqmVersion="0001", scenario=None, overrideGlobalTag=None):
177  """Constructor.
178 
179  Arguments:
180  sample -- String for name of the sample
181 
182  Keyword arguments
183  append -- String for a variable name within the DWM file names, to be directly appended to sample name (e.g. "HS"; default None)
184  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)
185  putype -- String for pileup type (e.g. "25ns"/"50ns" for FullSim, "AVE20" for FastSim; default None)
186  fastsim -- Bool indicating the FastSim status (default False)
187  fastsimCorrespondingFullSimPileup -- String indicating what is the FullSim pileup sample corresponding this FastSim sample. Must be set if fastsim=True and putype!=None (default None)
188  version -- String for dataset/DQM file version (default "v1")
189  scenario -- Geometry scenario for upgrade samples (default None)
190  overrideGlobalTag -- GlobalTag obtained from release information (in the form of {"release": "actualRelease"}; default None)
191  """
192  self._sample = sample
193  self._append = append
194  self._midfix = midfix
195  self._putype = putype
196  self._fastsim = fastsim
197  self._fastsimCorrespondingFullsimPileup = fastsimCorrespondingFullsimPileup
198  self._version = version
199  self._dqmVersion = dqmVersion
200  self._scenario = scenario
201  self._overrideGlobalTag = overrideGlobalTag
202 
203  if self._fastsim and self.hasPileup() and self._fastsimCorrespondingFullsimPileup is None:
_fastsimCorrespondingFullsimPileup
Definition: validation.py:196

Member Function Documentation

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 322 of file validation.py.

References validation.Sample._fastsim, validation._getGlobalTag(), validation.Sample._sample, html.IndexSection._sample, validation.Sample.hasPileup(), ora::OraMainTable.version(), pos::PixelVersionAlias.version(), SiPixelFedCabling.version(), PixelToFEDAssociate.version(), SiPixelFedCablingTree.version(), PixelToFEDAssociateFromAscii.version(), PixelToLNKAssociateFromAscii.version(), DTRecoUncertainties.version(), FEDHeader.version(), SiPixelFedCablingMap.version(), FWConfigurableParameterizable.version(), LTCDigi.version(), MagFieldConfig.version, Phase2Tracker::FEDDAQHeader.version(), lumi::Lumi2DB::LumiSource.version, DTRecoConditions.version(), RPCReadOutMapping.version(), BeamSpotOnline.version(), L1TriggerScalers.version(), ora::PoolMainTable.version(), MatrixInjector.MatrixInjector.version, HcalTrigTowerDetId.version(), LumiScalers.version(), SiPixelTemplateDBObject::Reader.version(), Level1TriggerScalers.version(), FWConfiguration.version(), confdbOfflineConverter.OfflineConverter.version, SiPixelCPEGenericErrorParm.version(), L1TriggerRates.version(), options.ConnectionHLTMenu.version, L1CaloGeometry.version(), Level1TriggerRates.version(), TrackerInteractionGeometry.version, SiPixel2DTemplateDBObject.version(), SiPixelGenErrorDBObject.version(), npstat::StorableMultivariateFunctor.version(), ora::MappingTree.version(), ora::MappingRawData.version, DcsStatus.version(), npstat::UniformAxis.version(), MatacqTBRawEvent::matacqHeader_t.version, DTCCBConfig.version(), Vispa.Main.Application.Application.version(), DQMNet::CoreObject.version, DTLVStatus.version(), DTT0.version(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >.version(), npstat::NUHistoAxis.version(), DTTPGParameters.version(), DTRangeT0.version(), npstat::DualAxis.version(), SiPixelTemplateDBObject.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(), sistrip::FEDDAQHeader.version(), DTMtime.version(), ScalersEventRecordRaw_v1.version, ScalersEventRecordRaw_v2.version, conddblib.Payload.version, npstat::LinInterpolatedTableND< Numeric, Axis >.version(), ScalersEventRecordRaw_v3.version, ScalersEventRecordRaw_v4.version, ScalersEventRecordRaw_v5.version, validation.Sample.version(), ScalersEventRecordRaw_v6.version, pos::PixelAliasList.version(), cmsHarvester.CMSHarvester.version, npstat::HistoND< Numeric, Axis >.version(), python.rootplot.argparse._VersionAction.version, npstat::ArrayND< Numeric, StackLen, StackDim >.version(), TiXmlDeclaration.version, argparse.ArgumentParser.version, and python.rootplot.argparse.ArgumentParser.version.

323  def datasetpattern(self, newRelease):
324  """Return the dataset pattern
325 
326  Arguments:
327  newRelease -- String for CMSSW release
328  """
329  pileup = ""
330  fastsim = ""
331  digi = ""
332  if self.hasPileup():
333  pileup = "-PU_"
334  if self._fastsim:
335  fastsim = "_FastSim-"
336  digi = "DIGI-"
337  else:
338  fastsim = "*"
339  globalTag = _getGlobalTag(self, newRelease)
340  return "{sample}/{newrelease}-{pileup}{globaltag}{fastsim}{version}/GEN-SIM-{digi}RECO".format(
341  sample=self._sample, newrelease=newRelease,
342  pileup=pileup, globaltag=globalTag, fastsim=fastsim, digi=digi,
343  version=self.version(newRelease)
344  )
def _getGlobalTag
Definition: validation.py:115
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 205 of file validation.py.

References validation.Sample.fastsim(), ElectronMVAID.ElectronMVAID.name, OAQualityTranslator.name(), FP420HitsObject.name(), TrackerHitsObject.name(), counter.Counter.name, entry.name, average.Average.name, histograms.Histograms.name, RPCGeomServ.name(), funct::Parameter.name(), SymmetryFit.name(), TmModule.name, cond::persistency::GLOBAL_TAG::NAME.name, core.autovars.NTupleVariable.name, cond::persistency::TAG::NAME.name, cond::persistency::TAG::TIME_TYPE.name, CmsTrackerStringToEnum.name(), candidate_functions::CandidateCut.name(), cond::persistency::GLOBAL_TAG::VALIDITY.name, listHistos.plotInfo.name, genericValidation.GenericValidation.name, cond::persistency::TAG::OBJECT_TYPE.name, FeldmanCousinsBinomialInterval.name(), SterneBinomialInterval.name(), cond::persistency::GLOBAL_TAG::DESCRIPTION.name, preexistingValidation.PreexistingValidation.name, cond::persistency::COND_LOG_TABLE::EXECTIME.name, cond::persistency::TAG::SYNCHRONIZATION.name, cond::persistency::GLOBAL_TAG::RELEASE.name, ora::RecordSpecImpl::Item.name, cond::persistency::COND_LOG_TABLE::IOVTAG.name, cond::persistency::COND_LOG_TABLE::USERTEXT.name, AxesNames.name(), cond::persistency::TAG::END_OF_VALIDITY.name, ExpressionEvaluatorCut.name(), cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, cond::persistency::GTEditorData.name, edm::service::NamedDestination.name(), cond::persistency::TAG::DESCRIPTION.name, GeomDetType.name(), RecHitTopologicalCleanerBase.name(), SeedFinderBase.name(), MaxConsecLostHitsTrajectoryFilter.name(), MaxHitsTrajectoryFilter.name(), MaxLostHitsTrajectoryFilter.name(), ora::NamedReference.name(), cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, edm::ModuleTime.name(), DDSolidShapesName.name(), cond::persistency::TAG::LAST_VALIDATED_TIME.name, FWTGeoRecoGeometry::Info.name, CaloValidationStatistics.name(), Types._Untracked.name, cond::persistency::TAG::INSERTION_TIME.name, tauImpactParameter::TrackParticle.name(), TrackingSlaveSD.name(), cond::persistency::TAG::MODIFICATION_TIME.name, ora::OraMainTable.name(), ClopperPearsonBinomialInterval.name(), BlockElementLinkerBase.name(), PCaloHit.name(), tauImpactParameter::LorentzVectorParticle.name(), PixelModuleName.name(), NodeCut.NameLine.name(), edm::BaseWithDict.name(), personalPlayback.Applet.name, CaloSlaveSD.name(), HistoDef.name(), PdtEntry.name(), LostHitsFractionTrajectoryFilter.name(), MinHitsTrajectoryFilter.name(), RegionalTrajectoryFilter.name(), ora::IDatabaseTable.name(), fit::RootMinuitCommand.name, CombinedMVAJetTagComputer::Computer.name, edm::MemberWithDict.name(), ExpressionEvaluatorCutWithEventContent.name(), ctfseeding::SeedingLayer::SeedingLayerImpl.name(), EventSelector.name(), ParameterSet.name, PixelDCSObject< class >::Item.name, FileData.name(), PacketData.name(), BlockElementImporterBase.name(), ChargeSignificanceTrajectoryFilter.name(), DDAxesNames.name(), EcalDetIdAssociator.name(), HcalDetIdAssociator.name(), HODetIdAssociator.name(), PreshowerDetIdAssociator.name(), pos::PixelConfigAlias.name(), analyzer.Analyzer.name, DQMRivetClient::LumiOption.name, MagCylinder.name, CharmTagger::MVAVar.name, HcalForwardLibWriter::FileHandle.name, rpcrawtodigi::ReadoutError.name(), RPCLinkSynchroStat::LinkBoard.name(), PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.name, PrintSensitive.name, Filter.name(), PFClusterEnergyCorrectorBase.name(), PFCPositionCalculatorBase.name(), ClusterShapeTrajectoryFilter.name(), JetResolution.name(), LooperTrajectoryFilter.name(), alignment.Alignment.name, ALIFileOut.name(), PixelBarrelNameUpgrade.name(), DDI::rep_type< N, I >.name(), DCCTBDataField.name(), RHStopTracer::StopPoint.name, reco::tau::RecoTauNamedPlugin.name(), FileInPath.name(), ParSet.name, MuonSubDetector.name(), citk::IsolationConeDefinitionBase.name(), CalibratedHistogramXML.name(), ThresholdPtTrajectoryFilter.name(), CSCChannelMapperPostls1.name(), PixelEndcapNameUpgrade.name(), edm::FunctionWithDict.name(), pat::helper::OverlapTest.name(), runEdmFileComparison.EdmObject.name, DQMRivetClient::ScaleFactorOption.name, reco::ElectronSeed.name(), HLTPerformanceInfo::Module.name(), L1GctEtHad.name(), L1GctEtTotal.name(), rpcrawtodigi::DataRecord.name(), SingleObjectCondition.name, EgHLTOfflineSummaryClient::SumHistBinData.name, ctfseeding::SeedingLayer.name(), ClassName< T >.name(), CSCChannelMapperStartup.name(), BeamSpotOnline.name(), PhysicsTools::Source.name, DQMGenericClient::EfficOption.name, cond::persistency::GTProxyData.name, CalibrationCategory< CI >.name(), pos::PixelDACScanRange.name(), MinPtTrajectoryFilter.name(), core.autovars.NTupleObjectType.name, XMLHTRZeroSuppressionLoader::_loaderBaseConfig.name, XMLRBXPedestalsLoader::_loaderBaseConfig.name, PixelEndcapName.name(), SummaryGenerator.name(), MyWatcher.name, TrajectoryFilter.name(), L1GctInternEmCand.name(), PixelBarrelName.name(), FWParameterBase.name(), edm::eventsetup::ModuleMakerTraits.name(), edm::PathTimingSummary.name, OpticalAlignParam.name(), BinomialInterval.name(), CSCIndexerStartup.name(), reco::CompositeCandidate.name(), dirstructure.Weighted.name, CompositeTrajectoryFilter.name(), LumiScalers.name(), cond::TimeTypeSpecs.name, lumi::TriggerInfo.name, DDName.name(), pos::PixelROCMaskBits.name(), CSCChannelMapperBase.name(), PrintMaterialBudgetInfo.name, edm::PathSummary.name, ALIFileIn.name(), CSCIndexerPostls1.name(), ora::OraSequenceTable.name(), L1GctJetCand.name(), L1TriggerScalers.name(), pos::PixelROCTrimBits.name(), PixelEndcapLinkMaker::Item.name, perftools::EdmEventSize::BranchRecord.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, FWTableViewManager::TableEntry.name, CaloDetIdAssociator.name(), PixelBarrelLinkMaker::Item.name, reco::NamedCompositeCandidate.name(), cond::persistency::GLOBAL_TAG_MAP::RECORD.name, Level1TriggerScalers.name(), Mapper::definition< ScannerT >.name, FWPhysicsObjectDesc.name(), CkfBaseTrajectoryFilter.name(), EcalLogicID.name, edm::EventTime.name(), CompositeLogicalTrajectoryFilter.name(), funct::DefaultVariable.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, L1GctEtMiss.name(), L1GctJetCounts.name(), ExpressionHisto< T >.name, BPhysicsSpectrum.name, funct::X.name(), McSelector.name, cond::persistency::GTEditor.name(), cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, python.rootplot.utilities.Hist2D.name, XMLProcessor::_loaderBaseConfig.name, edm::eventsetup::heterocontainer::HCTypeTag.name(), SensitiveDetector.name, funct::Y.name(), RecoSelector.name, L1GctHtMiss.name(), GlobalTrackingRegion.name(), DCCTBBlockPrototype.name(), edm::eventsetup::EventSetupRecordKey.name(), edm::TypeIDBase.name(), DQMGenericClient::ProfileOption.name, cond::persistency::PAYLOAD::HASH.name, funct::Z.name(), Entry.name(), TreeCrawler.Package.name, L1GctEmCand.name(), CaloTrkProcessing::Detector.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, fwlite::Record.name(), L1TriggerRates.name(), cond::persistency::PAYLOAD::DATA.name, DDValue.name(), FWViewEnergyScale.name(), PrintGeomInfoAction.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, MuonDetIdAssociator.name(), MagGeoBuilderFromDDD::volumeHandle.name, cond::persistency::PAYLOAD::VERSION.name, L1GtPatternLine.name(), cond::persistency::PAYLOAD::INSERTION_TIME.name, edm::eventsetup::SourceMakerTraits.name(), PrintGeomMatInfo.name, SimpleL1MuGMTCand.name(), DQMGenericClient::NormOption.name, tnp::ProbeVariable.name(), CalibratedObject.name(), Level1TriggerRates.name(), edm::TRandomAdaptor.name(), ora::PoolMainTable.name(), SeedingLayerSetsHits::SeedingLayer.name(), OpticalObject.name(), egHLT::MonElemContainer< T >.name(), ora::Container.name(), ora::OraMappingVersionTable.name(), HcalBaseDQClient.name(), ora::Record.name(), options.ConnectionHLTMenu.name, L1AcceptBunchCrossing.name(), edm::Path.name(), DQMGenericClient::CDOption.name, ora::DatabaseContainer.name(), FastHFShowerLibrary.name, CachingVariable.name(), edm::eventsetup::DataKey.name(), h4DSegm.name, PhysicsTools::Calibration::Variable.name, L1MuDTTrack.name(), CSCIndexerBase.name(), PhysicsTools::Variable::Value.name, FWGeometryTableManagerBase::NodeInfo.name(), L1MuGMTCand.name(), looper.Looper.name, ModifyObjectValueBase.name(), DcsStatus.name(), cond::TagInfo_t.name, EDMtoMEConverter.name, FWViewType.name(), HLTPerformanceInfo::Path.name(), ProcTMVA::Method.name, TreeSaver::Var.name, BPhysicsValidation::ParticleMonitor.name, DDNameInterface.name(), Vispa.Gui.PortWidget.PortWidget.name(), python.rootplot.tree2hists.Plot.name, config.Analyzer.name, DDBase< N, C >.name(), MEtoEDM< T >::MEtoEDMObject.name, ora::PoolSequenceTable.name(), cond::persistency::IOV::TAG_NAME.name, StripSubClusterShapeTrajectoryFilter.name(), cond::persistency::IOV::SINCE.name, TrackerSectorStruct.name, ora::OraMappingElementTable.name(), cond::persistency::IOV::PAYLOAD_HASH.name, PhysicsTools::TreeReader::Value.name, cond::persistency::IOV::INSERTION_TIME.name, edm::eventsetup::LooperMakerTraits.name(), BPhysicsValidation.name, cond::persistency::GTProxy.name(), MuonGeometrySanityCheckPoint.name, PhysicsTools::TrainProcessor.name, edm::TriggerResults.name(), pat::TriggerCondition.name(), CutApplicatorBase.name(), Measurement.name(), edm::TypeWithDict.name(), FastTimerSD.name, BHMSD.name, L1GObject.name(), config.Service.name, TotemSD.name, ora::PoolMappingVersionTable.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(), core.autovars.NTupleSubObject.name, GeometricDetExtra.name(), ora::OraContainerHeaderTable.name(), CosmicTrackingRegion.name(), tnp::ProbeFlag.name(), PhysicsTools::MVATrainer.name, pat::TriggerPath.name(), core.autovars.NTupleObject.name, h2DSegm.name, TrackingRegion.name(), python.rootplot.utilities.Hist.name, options.HLTProcessOptions.name, VIDSelectorBase.VIDSelectorBase.name(), ora::PoolMappingElementTable.name(), DetIdAssociator.name(), VariableComputer.name(), BscSD.name, IntegratedCalibrationBase.name(), ora::OraClassVersionTable.name(), DQMNet::WaitObject.name, AlpgenParameterName.name, Folder.name(), cscdqm::Address.name(), SiStripMonitorDigi.name, core.autovars.NTupleCollection.name, FP420SD.name, cond::persistency::TAG_MIGRATION::SOURCE_ACCOUNT.name, cond::persistency::TAG_MIGRATION::SOURCE_TAG.name, cond::persistency::TAG_MIGRATION::TAG_NAME.name, GeometricDet.name(), cond::persistency::TAG_MIGRATION::STATUS_CODE.name, cond::persistency::TAG_MIGRATION::INSERTION_TIME.name, VersionedSelector< T >.name(), public_plots_tools.ColorScheme.name, ora::PoolContainerHeaderTable.name(), PhysicsTools::Variable.name, MaterialAccountingGroup.name(), BasicHepMCValidation::ParticleMonitor.name, HRes1DHit.name, PhysicsTools::TrainerMonitoring::Object.name, FastTimerService::LuminosityDescription.name, Selection< C, Selector, StoreContainer >.name(), cond::persistency::PAYLOAD_MIGRATION::SOURCE_ACCOUNT.name, cond::persistency::PAYLOAD_MIGRATION::SOURCE_TOKEN.name, cond::persistency::PAYLOAD_MIGRATION::PAYLOAD_HASH.name, ora::PoolClassVersionTable.name(), cond::persistency::PAYLOAD_MIGRATION::INSERTION_TIME.name, RectangularEtaPhiTrackingRegion.name(), ora::OraNamingServiceTable.name(), conddblib.Tag.name, utils.KS.name, validation.Sample.name(), conddblib.GlobalTag.name, ora::CondMetadataTable.name(), utils.Chi2.name, personalPlayback.FrameworkJob.name, pos::PixelAliasList.name(), utils_v2.StatisticalTest.name, utils.BinToBin.name, HEff1DHit.name, plotscripts.SawTeethFunction.name, utils_v2.KolmogorovTest.name, dirstructure.Comparison.name, utils_v2.Chi2Test.name, @16915::Id.name, dqm_interfaces.DirID.name, utils.BinToBin1percent.name, FastTimerService::ProcessDescription.name, python.rootplot.utilities.RootFile.name, Vispa.Views.PropertyView.Property.name(), hTMaxCell.name, HRes2DHit.name, cscdqm::ParHistoDef.name, dqm_interfaces.DirWalkerFile.name, BeautifulSoup.Tag.name, @16911::Id.name, HEff2DHit.name, dataset.Dataset.name(), TiXmlAttribute.name, BeautifulSoup.SoupStrainer.name, HRes4DHit.name, HEff4DHit.name, validation.Sample.pileupType(), and validation.Sample.scenario().

206  def digest(self):
207  """Return a tuple uniquely identifying the sample, to be used e.g. as a key to dict"""
208  return (self.name(), 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 267 of file validation.py.

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

268  def dirname(self, newRepository, newRelease, newSelection):
269  """Return the output directory name
270 
271  Arguments:
272  newRepository -- String for base directory for output files
273  newRelease -- String for CMSSW release
274  newSelection -- String for histogram selection
275  """
276  pileup = ""
277  if self.hasPileup() and not self._fastsim:
278  pileup = "_"+self._putype
279  return "{newRepository}/{newRelease}/{newSelection}{pileup}/{sample}".format(
280  newRepository=newRepository, newRelease=newRelease, newSelection=newSelection,
281  pileup=pileup, sample=sample)
def validation.Sample.fastsim (   self)
Return True for FastSim sample

Definition at line 256 of file validation.py.

References validation.Sample._fastsim.

Referenced by validation.Sample.digest().

257  def fastsim(self):
258  """Return True for FastSim sample"""
259  return self._fastsim
def validation.Sample.fastsimCorrespondingFullsimPileup (   self)

Definition at line 264 of file validation.py.

References validation.Sample._fastsimCorrespondingFullsimPileup.

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 282 of file validation.py.

References validation.Sample._append, validation.Sample._dqmVersion, validation.Sample._fastsim, validation._getGlobalTag(), validation.Sample._midfix, validation.Sample._sample, html.IndexSection._sample, validation.Sample._scenario, validation._stripRelease(), validation.Sample.hasPileup(), validation.Sample.pileupType(), ora::OraMainTable.version(), 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(), lumi::Lumi2DB::LumiSource.version, DTRecoConditions.version(), RPCReadOutMapping.version(), BeamSpotOnline.version(), HcalTrigTowerDetId.version(), L1TriggerScalers.version(), ora::PoolMainTable.version(), MatrixInjector.MatrixInjector.version, LumiScalers.version(), SiPixelTemplateDBObject::Reader.version(), Level1TriggerScalers.version(), FWConfiguration.version(), confdbOfflineConverter.OfflineConverter.version, SiPixelCPEGenericErrorParm.version(), L1TriggerRates.version(), options.ConnectionHLTMenu.version, L1CaloGeometry.version(), Level1TriggerRates.version(), TrackerInteractionGeometry.version, SiPixel2DTemplateDBObject.version(), SiPixelGenErrorDBObject.version(), npstat::StorableMultivariateFunctor.version(), ora::MappingTree.version(), ora::MappingRawData.version, DcsStatus.version(), npstat::UniformAxis.version(), MatacqTBRawEvent::matacqHeader_t.version, DTCCBConfig.version(), Vispa.Main.Application.Application.version(), DQMNet::CoreObject.version, DTLVStatus.version(), DTT0.version(), npstat::NUHistoAxis.version(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >.version(), DTTPGParameters.version(), DTRangeT0.version(), npstat::DualAxis.version(), SiPixelTemplateDBObject.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(), sistrip::FEDDAQHeader.version(), DTMtime.version(), ScalersEventRecordRaw_v1.version, ScalersEventRecordRaw_v2.version, conddblib.Payload.version, npstat::LinInterpolatedTableND< Numeric, Axis >.version(), ScalersEventRecordRaw_v3.version, ScalersEventRecordRaw_v4.version, ScalersEventRecordRaw_v5.version, validation.Sample.version(), ScalersEventRecordRaw_v6.version, pos::PixelAliasList.version(), cmsHarvester.CMSHarvester.version, npstat::HistoND< Numeric, Axis >.version(), python.rootplot.argparse._VersionAction.version, npstat::ArrayND< Numeric, StackLen, StackDim >.version(), TiXmlDeclaration.version, argparse.ArgumentParser.version, and python.rootplot.argparse.ArgumentParser.version.

Referenced by cuy.ValElement.__init__().

283  def filename(self, newRelease):
284  """Return the DQM file name
285 
286  Arguments:
287  newRelease -- String for CMSSW release
288  """
289  pileup = ""
290  fastsim = ""
291  midfix = ""
292  scenario = ""
293  sample = self._sample
294  if self._append is not None:
295  midfix += self._append
296  if self._midfix is not None:
297  midfix += "_"+self._midfix
298  if self.hasPileup():
299  if self._fastsim:
300  #sample = sample.replace("RelVal", "RelValFS_")
301  # old style
302  #pileup = "PU_"
303  #midfix += "_"+self.pileupType(newRelease)
304  # new style
305  pileup = "PU"+self.pileupType(newRelease)+"_"
306  else:
307  pileup = "PU"+self.pileupType(newRelease)+"_"
308  if self._fastsim:
309  fastsim = "_FastSim"
310  if self._scenario is not None:
311  scenario = "_"+self._scenario
312 
313  globalTag = _getGlobalTag(self, newRelease)
314 
315  fname = 'DQM_V{dqmVersion}_R000000001__{sample}{midfix}__{newrelease}-{pileup}{globaltag}{scenario}{fastsim}-{version}__DQMIO.root'.format(
316  sample=sample, midfix=midfix, newrelease=_stripRelease(newRelease),
317  pileup=pileup, globaltag=globalTag, scenario=scenario, fastsim=fastsim,
318  version=self.version(newRelease), dqmVersion=self._dqmVersion
319  )
320 
321  return fname
def _getGlobalTag
Definition: validation.py:115
def _stripRelease
Definition: validation.py:108
def validation.Sample.fullsim (   self)
Return True for FullSim sample

Definition at line 260 of file validation.py.

References validation.Sample._fastsim.

261  def fullsim(self):
262  """Return True for FullSim sample"""
263  return not self._fastsim
def validation.Sample.hasOverrideGlobalTag (   self)

Definition at line 250 of file validation.py.

References validation.Sample._overrideGlobalTag.

251  def hasOverrideGlobalTag(self):
252  return self._overrideGlobalTag is not None
def validation.Sample.hasPileup (   self)
Return True if sample has pileup

Definition at line 220 of file validation.py.

References validation.Sample._putype.

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

221  def hasPileup(self):
222  """Return True if sample has pileup"""
223  return self._putype is not None
def validation.Sample.hasScenario (   self)

Definition at line 244 of file validation.py.

References validation.Sample._scenario.

245  def hasScenario(self):
246  return self._scenario is not None
def validation.Sample.label (   self)

Definition at line 217 of file validation.py.

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

218  def label(self):
219  return self._sample
def validation.Sample.name (   self)
Get the sample name

Definition at line 213 of file validation.py.

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

Referenced by cuy.divideElement.__init__(), cuy.plotElement.__init__(), cuy.additionElement.__init__(), cuy.superimposeElement.__init__(), cuy.graphElement.__init__(), config.CFG.__str__(), and validation.Sample.digest().

214  def name(self):
215  """Get the sample name"""
216  return self._sample
def validation.Sample.overrideGlobalTag (   self)

Definition at line 253 of file validation.py.

References validation.Sample._overrideGlobalTag.

Referenced by confdb.HLTProcess.customize().

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

Definition at line 224 of file validation.py.

References validation.Sample.hasPileup().

225  def pileup(self):
226  """Return "PU"/"noPU" corresponding the pileup status"""
227  if self.hasPileup():
228  return "PU"
229  else:
230  return "noPU"
def validation.Sample.pileupType (   self,
  release = None 
)
Return the pileup type

Definition at line 231 of file validation.py.

References validation.Sample._putype.

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

232  def pileupType(self, release=None):
233  """Return the pileup type"""
234  if isinstance(self._putype, dict):
235  return self._putype.get(release, self._putype["default"])
236  else:
237  return self._putype
def validation.Sample.sample (   self)
Get the sample name

Definition at line 209 of file validation.py.

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

210  def sample(self):
211  """Get the sample name"""
212  return self._sample
def validation.Sample.scenario (   self)

Definition at line 247 of file validation.py.

References validation.Sample._scenario.

Referenced by validation.Sample.digest().

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

Definition at line 238 of file validation.py.

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

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

239  def version(self, release=None):
240  if isinstance(self._version, dict):
241  return self._version.get(release, self._version["default"])
242  else:
243  return self._version

Member Data Documentation

validation.Sample._append
private

Definition at line 192 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._dqmVersion
private

Definition at line 198 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._fastsim
private

Definition at line 195 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 196 of file validation.py.

Referenced by validation.Sample.fastsimCorrespondingFullsimPileup().

validation.Sample._midfix
private

Definition at line 193 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._overrideGlobalTag
private

Definition at line 200 of file validation.py.

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

validation.Sample._putype
private

Definition at line 194 of file validation.py.

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

validation.Sample._sample
private

Definition at line 191 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 199 of file validation.py.

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

validation.Sample._version
private

Definition at line 197 of file validation.py.

Referenced by validation.Sample.version().