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 190 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 194 of file validation.py.

195  version="v1", dqmVersion="0001", scenario=None, overrideGlobalTag=None):
196  """Constructor.
197 
198  Arguments:
199  sample -- String for name of the sample
200 
201  Keyword arguments
202  append -- String for a variable name within the DWM file names, to be directly appended to sample name (e.g. "HS"; default None)
203  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)
204  putype -- String for pileup type (e.g. "25ns"/"50ns" for FullSim, "AVE20" for FastSim; default None)
205  fastsim -- Bool indicating the FastSim status (default False)
206  fastsimCorrespondingFullSimPileup -- String indicating what is the FullSim pileup sample corresponding this FastSim sample. Must be set if fastsim=True and putype!=None (default None)
207  version -- String for dataset/DQM file version (default "v1")
208  scenario -- Geometry scenario for upgrade samples (default None)
209  overrideGlobalTag -- GlobalTag obtained from release information (in the form of {"release": "actualRelease"}; default None)
210  """
211  self._sample = sample
212  self._append = append
213  self._midfix = midfix
214  self._putype = putype
215  self._fastsim = fastsim
216  self._fastsimCorrespondingFullsimPileup = fastsimCorrespondingFullsimPileup
217  self._version = version
218  self._dqmVersion = dqmVersion
219  self._scenario = scenario
220  self._overrideGlobalTag = overrideGlobalTag
221 
222  if self._fastsim and self.hasPileup() and self._fastsimCorrespondingFullsimPileup is None:
_fastsimCorrespondingFullsimPileup
Definition: validation.py:215

Member Function Documentation

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 341 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(), 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(), ora::PoolMainTable.version(), MatrixInjector.MatrixInjector.version, SiPixelTemplateDBObject::Reader.version(), LumiScalers.version(), Level1TriggerScalers.version(), FWConfiguration.version(), confdbOfflineConverter.OfflineConverter.version, L1TUtmBin.version, options.ConnectionHLTMenu.version, HcalTrigTowerDetId.version(), SiPixelCPEGenericErrorParm.version(), L1TriggerRates.version(), L1CaloGeometry.version(), Level1TriggerRates.version(), TrackerInteractionGeometry.version, SiPixel2DTemplateDBObject.version(), SiPixelGenErrorDBObject.version(), npstat::StorableMultivariateFunctor.version(), L1TUtmCondition.version, ora::MappingTree.version(), ora::MappingRawData.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::StorableHistoNDFunctor< Numeric, Axis, Converter >.version(), npstat::NUHistoAxis.version(), L1TUtmObject.version, DTTPGParameters.version(), DTRangeT0.version(), SiPixelTemplateDBObject.version(), npstat::DualAxis.version(), L1TUtmCut.version, EcalMatacqDigi.version(), npstat::GridAxis.version(), DTHVStatus.version(), npstat::HistoAxis.version(), FRDEventMsgView.version(), XMLProcessor::_DBConfig.version, npstat::DualHistoAxis.version(), DTTtrig.version(), DTPerformance.version(), DTStatusFlag.version(), npstat::StorableInterpolationFunctor< Numeric, Axis, Converter >.version(), npstat::BoxND< Numeric >.version(), DTDeadFlag.version(), L1TUtmTriggerMenu.version, DTMtime.version(), sistrip::FEDDAQHeader.version(), ScalersEventRecordRaw_v1.version, ScalersEventRecordRaw_v2.version, npstat::LinInterpolatedTableND< Numeric, Axis >.version(), ScalersEventRecordRaw_v3.version, ScalersEventRecordRaw_v4.version, ScalersEventRecordRaw_v5.version, ScalersEventRecordRaw_v6.version, validation.Sample.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.

342  def datasetpattern(self, newRelease):
343  """Return the dataset pattern
344 
345  Arguments:
346  newRelease -- String for CMSSW release
347  """
348  pileup = ""
349  fastsim = ""
350  digi = ""
351  if self.hasPileup():
352  pileup = "-PU_"
353  if self._fastsim:
354  fastsim = "_FastSim-"
355  digi = "DIGI-"
356  else:
357  fastsim = "*"
358  globalTag = _getGlobalTag(self, newRelease)
359  return "{sample}/{newrelease}-{pileup}{globaltag}{fastsim}{version}/GEN-SIM-{digi}RECO".format(
360  sample=self._sample, newrelease=newRelease,
361  pileup=pileup, globaltag=globalTag, fastsim=fastsim, digi=digi,
362  version=self.version(newRelease)
363  )
def _getGlobalTag
Definition: validation.py:133
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 224 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, geometrydata.GeometryData.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::TAG::TIME_TYPE.name, CmsTrackerStringToEnum.name(), listHistos.plotInfo.name, candidate_functions::CandidateCut.name(), cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::TAG::OBJECT_TYPE.name, SterneBinomialInterval.name(), FeldmanCousinsBinomialInterval.name(), genericValidation.GenericValidation.name, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, cond::persistency::TAG::SYNCHRONIZATION.name, preexistingValidation.PreexistingValidation.name, cond::persistency::GLOBAL_TAG::RELEASE.name, ora::RecordSpecImpl::Item.name, AxesNames.name(), MEPSet.name, cond::persistency::TAG::END_OF_VALIDITY.name, ExpressionEvaluatorCut.name(), cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, GeomDetType.name(), cond::persistency::TAG::DESCRIPTION.name, cond::persistency::GTEditorData.name, RecHitTopologicalCleanerBase.name(), SeedFinderBase.name(), MaxConsecLostHitsTrajectoryFilter.name(), MaxHitsTrajectoryFilter.name(), MaxLostHitsTrajectoryFilter.name(), ora::NamedReference.name(), edm::ModuleTime.name(), cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, DDSolidShapesName.name(), edm::service::NamedDestination.name(), cond::persistency::TAG::LAST_VALIDATED_TIME.name, FWTGeoRecoGeometry::Info.name, Types._Untracked.name, CaloValidationStatistics.name(), SeedExtensionTrajectoryFilter.name(), cond::persistency::TAG::INSERTION_TIME.name, tauImpactParameter::TrackParticle.name(), TrackingSlaveSD.name(), cond::persistency::TAG::MODIFICATION_TIME.name, ora::OraMainTable.name(), dataset.BaseDataset.name, ClopperPearsonBinomialInterval.name(), BlockElementLinkerBase.name(), PCaloHit.name(), OutputMEPSet.name, tauImpactParameter::LorentzVectorParticle.name(), LostHitsFractionTrajectoryFilter.name(), PixelModuleName.name(), edm::BaseWithDict.name(), personalPlayback.Applet.name, CaloSlaveSD.name(), HistoDef.name(), PdtEntry.name(), RegionalTrajectoryFilter.name(), ora::IDatabaseTable.name(), fit::RootMinuitCommand.name, edm::MemberWithDict.name(), ExpressionEvaluatorCutWithEventContent.name(), ctfseeding::SeedingLayer::SeedingLayerImpl.name(), MaxCCCLostHitsTrajectoryFilter.name(), EventSelector.name(), ParameterSet.name, production_tasks.Task.name, PixelDCSObject< class >::Item.name, FileData.name(), PacketData.name(), PreliminaryFit.name(), BlockElementImporterBase.name(), ChargeSignificanceTrajectoryFilter.name(), DDAxesNames.name(), L1TLossFunction.name(), PreshowerDetIdAssociator.name(), EcalDetIdAssociator.name(), HcalDetIdAssociator.name(), HODetIdAssociator.name(), pos::PixelConfigAlias.name(), analyzer.Analyzer.name, DQMRivetClient::LumiOption.name, LooperTrajectoryFilter.name(), MinHitsTrajectoryFilter.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(), alignment.Alignment.name, ALIFileOut.name(), DDI::rep_type< N, I >.name(), PixelBarrelNameUpgrade.name(), DCCTBDataField.name(), RHStopTracer::StopPoint.name, FileInPath.name(), reco::tau::RecoTauNamedPlugin.name(), ParSet.name, MuonSubDetector.name(), citk::IsolationConeDefinitionBase.name(), CalibratedHistogramXML.name(), CSCChannelMapperPostls1.name(), ThresholdPtTrajectoryFilter.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, ClassName< T >.name(), CSCChannelMapperStartup.name(), ctfseeding::SeedingLayer.name(), BeamSpotOnline.name(), XMLHTRZeroSuppressionLoader::_loaderBaseConfig.name, PhysicsTools::Source.name, pos::PixelDACScanRange.name(), XMLRBXPedestalsLoader::_loaderBaseConfig.name, DQMGenericClient::EfficOption.name, OmtfName.name(), CalibrationCategory< CI >.name(), cond::persistency::GTProxyData.name, core.autovars.NTupleObjectType.name, o2o.O2OJob.name, PixelEndcapName.name(), SummaryGenerator.name(), MyWatcher.name, TrajectoryFilter.name(), L1GctInternEmCand.name(), FWParameterBase.name(), edm::eventsetup::ModuleMakerTraits.name(), edm::PathTimingSummary.name, OpticalAlignParam.name(), PixelBarrelName.name(), BinomialInterval.name(), CSCIndexerStartup.name(), reco::CompositeCandidate.name(), dirstructure.Weighted.name, CompositeTrajectoryFilter.name(), LumiScalers.name(), lumi::TriggerInfo.name, DDName.name(), CSCChannelMapperBase.name(), pos::PixelROCMaskBits.name(), cond::TimeTypeSpecs.name, L1TriggerScalers.name(), PrintMaterialBudgetInfo.name, TransformFunction.name(), CSCIndexerPostls1.name(), edm::PathSummary.name, ALIFileIn.name(), ora::OraSequenceTable.name(), L1GctJetCand.name(), pos::PixelROCTrimBits.name(), PixelEndcapLinkMaker::Item.name, perftools::EdmEventSize::BranchRecord.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, FWTableViewManager::TableEntry.name, MinPtTrajectoryFilter.name(), cond::persistency::GLOBAL_TAG_MAP::RECORD.name, hcaldqm::quantity::Quantity.name(), PixelBarrelLinkMaker::Item.name, CaloDetIdAssociator.name(), reco::NamedCompositeCandidate.name(), Level1TriggerScalers.name(), Mapper::definition< ScannerT >.name, FWPhysicsObjectDesc.name(), EcalLogicID.name, edm::EventTime.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, funct::DefaultVariable.name(), CompositeLogicalTrajectoryFilter.name(), L1GctEtMiss.name(), L1GctJetCounts.name(), cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, ExpressionHisto< T >.name, funct::X.name(), BPhysicsSpectrum.name, cond::persistency::GTEditor.name(), python.rootplot.utilities.Hist2D.name, edm::eventsetup::heterocontainer::HCTypeTag.name(), SensitiveDetector.name, funct::Y.name(), XMLProcessor::_loaderBaseConfig.name, L1GctHtMiss.name(), DCCTBBlockPrototype.name(), edm::eventsetup::EventSetupRecordKey.name(), edm::TypeIDBase.name(), DQMGenericClient::ProfileOption.name, funct::Z.name(), cond::persistency::PAYLOAD::HASH.name, TreeCrawler.Package.name, Entry.name(), GlobalTrackingRegion.name(), L1GctEmCand.name(), L1TriggerRates.name(), CaloTrkProcessing::Detector.name, CkfBaseTrajectoryFilter.name(), cond::persistency::PAYLOAD::OBJECT_TYPE.name, fwlite::Record.name(), cond::persistency::PAYLOAD::DATA.name, DDValue.name(), MuonDetIdAssociator.name(), FWViewEnergyScale.name(), PrintGeomInfoAction.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, cond::persistency::PAYLOAD::VERSION.name, MagGeoBuilderFromDDD::volumeHandle.name, edm::eventsetup::SourceMakerTraits.name(), PrintGeomMatInfo.name, L1GtPatternLine.name(), options.ConnectionHLTMenu.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, SimpleL1MuGMTCand.name(), DQMGenericClient::NormOption.name, CalibratedObject.name(), Level1TriggerRates.name(), edm::TRandomAdaptor.name(), ora::PoolMainTable.name(), SeedingLayerSetsHits::SeedingLayer.name(), egHLT::MonElemContainer< T >.name(), OpticalObject.name(), ora::Container.name(), ora::OraMappingVersionTable.name(), emtf::Node.name, L1AcceptBunchCrossing.name(), HcalBaseDQClient.name(), LeastSquares.name(), tnp::ProbeVariable.name(), ora::Record.name(), edm::Path.name(), DQMGenericClient::CDOption.name, DeepFlavourJetTagsProducer::MVAVar.name, ora::DatabaseContainer.name(), CachingVariable.name(), edm::eventsetup::DataKey.name(), FastHFShowerLibrary.name, h4DSegm.name, PhysicsTools::Variable::Value.name, CSCIndexerBase.name(), PhysicsTools::Calibration::Variable.name, L1MuDTTrack.name(), FWGeometryTableManagerBase::NodeInfo.name(), L1MuGMTCand.name(), cond::TagInfo_t.name, ModifyObjectValueBase.name(), DcsStatus.name(), CounterChecker.name, EDMtoMEConverter.name, L1MuBMTrack.name(), FWViewType.name(), ProcTMVA::Method.name, looper.Looper.name, HLTPerformanceInfo::Path.name(), TreeSaver::Var.name, DDNameInterface.name(), BPhysicsValidation::ParticleMonitor.name, DDBase< N, C >.name(), python.rootplot.tree2hists.Plot.name, Vispa.Gui.PortWidget.PortWidget.name(), MEtoEDM< T >::MEtoEDMObject.name, ora::PoolSequenceTable.name(), cond::persistency::IOV::TAG_NAME.name, StripSubClusterShapeTrajectoryFilter.name(), cond::persistency::IOV::SINCE.name, ora::OraMappingElementTable.name(), TrackerSectorStruct.name, cond::persistency::IOV::PAYLOAD_HASH.name, PhysicsTools::TreeReader::Value.name, cond::persistency::IOV::INSERTION_TIME.name, cond::persistency::GTProxy.name(), edm::eventsetup::LooperMakerTraits.name(), classes.MonitorData.name, BPhysicsValidation.name, edm::TriggerResults.name(), MuonGeometrySanityCheckPoint.name, PhysicsTools::TrainProcessor.name, pat::TriggerCondition.name(), CutApplicatorBase.name(), edm::TypeWithDict.name(), Measurement.name(), DetGeomDesc.name(), FastTimerSD.name, BHMSD.name, L1GObject.name(), classes.OutputData.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(), GeometricDetExtra.name(), ora::OraContainerHeaderTable.name(), CosmicTrackingRegion.name(), PhysicsTools::MVATrainer.name, options.HLTProcessOptions.name, tnp::ProbeFlag.name(), pat::TriggerPath.name(), h2DSegm.name, TrackingRegion.name(), python.rootplot.utilities.Hist.name, VIDSelectorBase.VIDSelectorBase.name(), ora::PoolMappingElementTable.name(), AbsoluteDeviation.name(), VariableComputer.name(), config.Analyzer.name, BscSD.name, DetIdAssociator.name(), IntegratedCalibrationBase.name(), core.autovars.NTupleSubObject.name, ora::OraClassVersionTable.name(), DQMNet::WaitObject.name, AlpgenParameterName.name, Folder.name(), cscdqm::Address.name(), SiStripMonitorDigi.name, core.autovars.NTupleObject.name, FP420SD.name, geometry.Structure.name, hcaldqm::quantity::FlagQuantity.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, GeometricDet.name(), cond::persistency::TAG_LOG::ACTION.name, VersionedSelector< T >.name(), cond::persistency::TAG_LOG::USER_TEXT.name, config.Service.name, public_plots_tools.ColorScheme.name, ora::PoolContainerHeaderTable.name(), PhysicsTools::Variable.name, MaterialAccountingGroup.name(), BasicHepMCValidation::ParticleMonitor.name, PhysicsTools::TrainerMonitoring::Object.name, HRes1DHit.name, core.autovars.NTupleCollection.name, FastTimerService::LuminosityDescription.name, Selection< C, Selector, StoreContainer >.name(), Huber.name(), ora::PoolClassVersionTable.name(), hcaldqm::quantity::LumiSection.name(), RectangularEtaPhiTrackingRegion.name(), ora::OraNamingServiceTable.name(), utils.KS.name, hcaldqm::quantity::RunNumber.name(), ora::CondMetadataTable.name(), PercentErrorSquared.name(), validation.Sample.name(), utils.Chi2.name, hcaldqm::quantity::EventNumber.name(), personalPlayback.FrameworkJob.name, pos::PixelAliasList.name(), hcaldqm::quantity::EventType.name(), utils_v2.StatisticalTest.name, utils.BinToBin.name, HEff1DHit.name, plotscripts.SawTeethFunction.name, utils_v2.KolmogorovTest.name, dirstructure.Comparison.name, utils_v2.Chi2Test.name, @17808::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, @17804::Id.name, HEff2DHit.name, SummaryOutputProducer::GenericSummary.name, trackingPlots.Iteration.name(), TiXmlAttribute.name, BeautifulSoup.SoupStrainer.name, dataset.Dataset.name(), HRes4DHit.name, HEff4DHit.name, validation.Sample.pileupType(), and validation.Sample.scenario().

225  def digest(self):
226  """Return a tuple uniquely identifying the sample, to be used e.g. as a key to dict"""
227  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 286 of file validation.py.

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

287  def dirname(self, newRepository, newRelease, newSelection):
288  """Return the output directory name
289 
290  Arguments:
291  newRepository -- String for base directory for output files
292  newRelease -- String for CMSSW release
293  newSelection -- String for histogram selection
294  """
295  pileup = ""
296  if self.hasPileup() and not self._fastsim:
297  pileup = "_"+self._putype
298  return "{newRepository}/{newRelease}/{newSelection}{pileup}/{sample}".format(
299  newRepository=newRepository, newRelease=newRelease, newSelection=newSelection,
300  pileup=pileup, sample=sample)
def validation.Sample.fastsim (   self)
Return True for FastSim sample

Definition at line 275 of file validation.py.

References validation.Sample._fastsim.

Referenced by validation.Sample.digest().

276  def fastsim(self):
277  """Return True for FastSim sample"""
278  return self._fastsim
def validation.Sample.fastsimCorrespondingFullsimPileup (   self)

Definition at line 283 of file validation.py.

References validation.Sample._fastsimCorrespondingFullsimPileup.

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

Arguments:
newRelease -- String for CMSSW release

Definition at line 301 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(), L1TUtmCutValue.version, lumi::Lumi2DB::LumiSource.version, DTRecoConditions.version(), RPCReadOutMapping.version(), BeamSpotOnline.version(), L1TriggerScalers.version(), ora::PoolMainTable.version(), MatrixInjector.MatrixInjector.version, SiPixelTemplateDBObject::Reader.version(), LumiScalers.version(), confdbOfflineConverter.OfflineConverter.version, Level1TriggerScalers.version(), FWConfiguration.version(), options.ConnectionHLTMenu.version, L1TUtmBin.version, SiPixelCPEGenericErrorParm.version(), HcalTrigTowerDetId.version(), L1TriggerRates.version(), L1CaloGeometry.version(), TrackerInteractionGeometry.version, SiPixelGenErrorDBObject.version(), Level1TriggerRates.version(), SiPixel2DTemplateDBObject.version(), npstat::StorableMultivariateFunctor.version(), L1TUtmCondition.version, ora::MappingTree.version(), ora::MappingRawData.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(), npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >.version(), L1TUtmObject.version, npstat::NUHistoAxis.version(), DTTPGParameters.version(), DTRangeT0.version(), SiPixelTemplateDBObject.version(), npstat::DualAxis.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, validation.Sample.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__().

302  def filename(self, newRelease):
303  """Return the DQM file name
304 
305  Arguments:
306  newRelease -- String for CMSSW release
307  """
308  pileup = ""
309  fastsim = ""
310  midfix = ""
311  scenario = ""
312  sample = self._sample
313  if self._append is not None:
314  midfix += self._append
315  if self._midfix is not None:
316  midfix += "_"+self._midfix
317  if self.hasPileup():
318  if self._fastsim:
319  #sample = sample.replace("RelVal", "RelValFS_")
320  # old style
321  #pileup = "PU_"
322  #midfix += "_"+self.pileupType(newRelease)
323  # new style
324  pileup = "PU"+self.pileupType(newRelease)+"_"
325  else:
326  pileup = "PU"+self.pileupType(newRelease)+"_"
327  if self._fastsim:
328  fastsim = "_FastSim"
329  if self._scenario is not None:
330  scenario = "_"+self._scenario
331 
332  globalTag = _getGlobalTag(self, newRelease)
333 
334  fname = 'DQM_V{dqmVersion}_R000000001__{sample}{midfix}__{newrelease}-{pileup}{globaltag}{scenario}{fastsim}-{version}__DQMIO.root'.format(
335  sample=sample, midfix=midfix, newrelease=_stripRelease(newRelease),
336  pileup=pileup, globaltag=globalTag, scenario=scenario, fastsim=fastsim,
337  version=self.version(newRelease), dqmVersion=self._dqmVersion
338  )
339 
340  return fname
def _getGlobalTag
Definition: validation.py:133
def _stripRelease
Definition: validation.py:126
def validation.Sample.fullsim (   self)
Return True for FullSim sample

Definition at line 279 of file validation.py.

References validation.Sample._fastsim.

280  def fullsim(self):
281  """Return True for FullSim sample"""
282  return not self._fastsim
def validation.Sample.hasOverrideGlobalTag (   self)

Definition at line 269 of file validation.py.

References validation.Sample._overrideGlobalTag.

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

Definition at line 239 of file validation.py.

References validation.Sample._putype.

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

240  def hasPileup(self):
241  """Return True if sample has pileup"""
242  return self._putype is not None
def validation.Sample.hasScenario (   self)

Definition at line 263 of file validation.py.

References validation.Sample._scenario.

264  def hasScenario(self):
265  return self._scenario is not None
def validation.Sample.label (   self)

Definition at line 236 of file validation.py.

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

237  def label(self):
238  return self._sample
def validation.Sample.name (   self)
Get the sample name

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

233  def name(self):
234  """Get the sample name"""
235  return self._sample
def validation.Sample.overrideGlobalTag (   self)

Definition at line 272 of file validation.py.

References validation.Sample._overrideGlobalTag.

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

Definition at line 243 of file validation.py.

References validation.Sample.hasPileup().

244  def pileup(self):
245  """Return "PU"/"noPU" corresponding the pileup status"""
246  if self.hasPileup():
247  return "PU"
248  else:
249  return "noPU"
def validation.Sample.pileupType (   self,
  release = None 
)
Return the pileup type

Definition at line 250 of file validation.py.

References validation.Sample._putype.

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

251  def pileupType(self, release=None):
252  """Return the pileup type"""
253  if isinstance(self._putype, dict):
254  return self._putype.get(release, self._putype["default"])
255  else:
256  return self._putype
def validation.Sample.sample (   self)
Get the sample name

Definition at line 228 of file validation.py.

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

229  def sample(self):
230  """Get the sample name"""
231  return self._sample
def validation.Sample.scenario (   self)

Definition at line 266 of file validation.py.

References validation.Sample._scenario.

Referenced by validation.Sample.digest().

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

Definition at line 257 of file validation.py.

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

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

258  def version(self, release=None):
259  if isinstance(self._version, dict):
260  return self._version.get(release, self._version["default"])
261  else:
262  return self._version

Member Data Documentation

validation.Sample._append
private

Definition at line 211 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._dqmVersion
private

Definition at line 217 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._fastsim
private

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

Referenced by validation.Sample.fastsimCorrespondingFullsimPileup().

validation.Sample._midfix
private

Definition at line 212 of file validation.py.

Referenced by validation.Sample.filename().

validation.Sample._overrideGlobalTag
private

Definition at line 219 of file validation.py.

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

validation.Sample._putype
private

Definition at line 213 of file validation.py.

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

validation.Sample._sample
private

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

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

validation.Sample._version
private

Definition at line 216 of file validation.py.

Referenced by validation.Sample.version().