CMS 3D CMS Logo

Classes | Functions | Variables
tier0 Namespace Reference

Classes

class  ResponseError
 
class  Tier0Error
 
class  Tier0Handler
 

Functions

def _raise_http_error (curl, response, proxy, timeout, maxTime)
 
def test (url)
 
def unique (seq, keepstr=True)
 

Variables

 tier0Url = os.getenv('TIER0_API_URL', 'https://cmsweb.cern.ch/t0wmadatasvc/prod/')
 

Function Documentation

◆ _raise_http_error()

def tier0._raise_http_error (   curl,
  response,
  proxy,
  timeout,
  maxTime 
)
private

Definition at line 68 of file tier0.py.

68 def _raise_http_error( curl, response, proxy, timeout, maxTime ):
69  raise ResponseError( curl, response, proxy, timeout, maxTime )
70 
def _raise_http_error(curl, response, proxy, timeout, maxTime)
Definition: tier0.py:68

◆ test()

def tier0.test (   url)

Definition at line 206 of file tier0.py.

References print().

206 def test( url ):
207  t0 = Tier0Handler( url, 1, 5, 1, 10, None, debug=False)
208 
209  print(' fcsr = %s (%s)' % (t0.getFirstSafeRun(), type(t0.getFirstSafeRun()) ))
210  print(' reco_config = %s' % t0.getGlobalTag('reco_config'))
211  print(' express_config = %s' % t0.getGlobalTag('express_config'))
212  print('\n')
213 
214 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def test(url)
Definition: tier0.py:206

◆ unique()

def tier0.unique (   seq,
  keepstr = True 
)

Definition at line 24 of file tier0.py.

References nano_mu_local_reco_cff.bool, GetRecoTauVFromDQM_MC_cff.next, and submitPVValidationJobs.t.

Referenced by trackerTFP::KalmanFilter.accumulator(), BeamHaloNavigationSchool.addInward(), edm.addToMissingDictionariesException(), SiStripLatency.allLatencies(), SiStripLatency.allModes(), SiStripLatency.allUniqueLatencyAndModes(), CTPPSProtonReconstructionEfficiencyEstimatorData.analyze(), RPCTwinMuxDigiToRaw.beginRun(), mkfit::StdSeq.clean_cms_seedtracks_iter(), TrigObjTnPHistColl::FilterSelector.cleanTrigKeys(), EMTFSubsystemCollector.cluster_rpc(), SiStripThreshold.compact(), TriggerRatesMonitor.dqmBeginRun(), trklet::TripletEngine.execute(), EMTFSubsystemCollector.extractPrimitives(), CSCSegmentValidation.fillEfficiencyPlots(), FWGeoMaterialValidator.fillOptions(), FWDetailViewManager.findViewersFor(), PixelInactiveAreaFinder.getBadPixelDets(), FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >.getBestCombination(), tier0.Tier0Handler.getGlobalTag(), ESElectronicsMapper.GetListofFEDs(), edm::IndexIntoFile::IndexIntoFileItrImpl.getLumisInRun(), SiStripFEDMonitorPlugin.getMajority(), trklet::TrackletLUT.getSensorModules(), TTUTrackingAlg.ghostBuster(), TTClusterAssociationMap< T >.isCombinatoric(), TTClusterAssociationMap< T >.isGenuine(), TTClusterAssociationMap< T >.isUnknown(), trackerTFP::LayerEncoding.LayerEncoding(), TSToSCAssociatorByEnergyScoreImpl.makeConnections(), MultiClusterAssociatorByEnergyScoreImpl.makeConnections(), LCToSCAssociatorByEnergyScoreImpl< HIT >.makeConnections(), LCToCPAssociatorByEnergyScoreImpl< HIT >.makeConnections(), TSToSimTSAssociatorByEnergyScoreImpl.makeConnections(), ticl::PatternRecognitionbyCA< TILES >.makeTracksters(), fireworks::OptionNode.options(), edm::MergeableRunProductMetadata.preWriteRun(), magneticfield.printUniqueNames(), TTUEmulator.processTtu(), TTTrackAssociator< T >.produce(), TTStubAssociator< T >.produce(), TTClusterAssociator< T >.produce(), EgammaIsoESDetIdCollectionProducer.produce(), EgammaIsoHcalDetIdCollectionProducer.produce(), HLTJetCollForElePlusJets< T >.produce(), ReducedRecHitCollectionProducer.produce(), MuonDetCleaner< T1, T2 >.produce(), InterestingDetIdFromSuperClusterProducer.produce(), pat::PATPhotonProducer.produce(), InterestingDetIdCollectionProducer.produce(), pat::PATElectronProducer.produce(), SiStripPsuDetIdMap.RemoveDuplicateDetIDs(), SiStripDetVOffBuilder.removeDuplicates(), edm::eventsetup::EventSetupProvider.resetRecordPlusDependentRecords(), SiStripPsuDetIdMap.retrieveDcuDeviceAddresses(), emtf::Forest.saveSplitValues(), FWExpressionValidator.setType(), ClusterTPAssociation.sortAndUnique(), edm::eventsetup::ESProductResolverProvider::ESProductResolverContainer.sortEventSetupRecordKeys(), Phase2TrackerCabling.summaryDescription(), edm.throwMissingDictionariesException(), HGVHistoProducerAlgo.tracksters_to_SimTracksters(), TritonService.TritonService(), and ProvenanceDumper.work_().

24 def unique(seq, keepstr=True):
25  t = type(seq)
26  if t is str:
27  t = (list, t('').join)[bool(keepstr)]
28  try:
29  remaining = set(seq)
30  seen = set()
31  return t(c for c in seq if (c in remaining and not remaining.remove(c)))
32  except TypeError: # hashing didn't work, see if seq is sortable
33  try:
34  from itertools import groupby
35  s = sorted(enumerate(seq),key=lambda i_v1:(i_v1[1],i_v1[0]))
36  return t(next(g) for k,g in groupby(s, lambda i_v: i_v[1]))
37  except: # not sortable, use brute force
38  seen = []
39  return t(c for c in seq if not (c in seen or seen.append(c)))
40 
41 #note: this exception seems unused
def unique(seq, keepstr=True)
Definition: tier0.py:24

Variable Documentation

◆ tier0Url

tier0.tier0Url = os.getenv('TIER0_API_URL', 'https://cmsweb.cern.ch/t0wmadatasvc/prod/')

Definition at line 14 of file tier0.py.